Numerical counter

Asked

Viewed 244 times

0

I am making a control page for entry and exit of company equipment.
I’m using Boostrap as a framework, you could let me know how I do a counter to manage the OS number. Or some help link on the internet, video, etc.
I imagine that with Jquery is possible but I have no experience with this tool.

By the little knowledge I have in web programming I know I need a comic and something to communicate the page with this comic.pagina
Thanks in advance.

3 answers

1


  • Gabriel good morning, Thanks for your attention I’ll take a look a friend of mine informed programmer who will help me too.

0

Your architectural tactic using the bootstrap framework supports your vision layer rendering requirements, but your strategy to meet other back-end requirements is not listed.

Usually this counter is not implemented in the view layer because there may be an error between what is rendered on the screen and the database data.

I suggest implementing this count as close as possible to the database entity. In case your back-end architectural tactic for Java EE, the counter can be persisted in the database and so will have a field in the JPA Entity to store itlo, or include a transient field to perform the count if it is not interesting to persist this data that can be inferred by other persistent data.

0

Can you already search, insert or change something from the database? Have you done this on any screen?

If yes, you can create a field in your database of the whole type, not allowing null values and auto increment and as table PK.

This way it will always exist, it will be unique and will be in the register order.

So it would just fetch the field in the bank and show on the screen.

I believe this would solve your problem... now if the user wants to change the data, do not put the field as Primary Key (PK).

  • Isabela good morning, Thank you for your attention, a friend of mine informed you the same that you mentioned he will also help me thank you very much for your attention.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.