Inscrit le: 01 Sep 2017
|Posté le: 18/10/2017 04:39:00 Sujet du message: Dynamically Add rows to a Commission Copy’ HTML Table finall
|Hello to everybody
What a long subject
Actually this is a many hints with tips request
Subject in detail: a commission copy, formerly an order copy, is a module where you write (insert) item that are ordered to some supplier.
Each item has some columns
Quantity, article code (if any), article name, price (if any)
In one order the item can be just one, but in another they could be many items (rows)
So the ideal input page/form is made by an HTML table where the cells will act as input text(s)
So a button is needed. Add new row. While when opening the New Order Page, it will be prompted the table with just one row. If a new row is needed, Add New Row button will append one row to the table
When the order is filled and complete we have n rows, the requirement is to INSERT INTO the order_details MySQL table all the HTML Table row's cells content
I think that AJAX will help so much in this case, because a plus is to have a checkbox in an additional cell at the end or at the begin of each row, let's call it "action", that would b associated with two buttons "Remove" to delete the row (if needed) and "Edit" if something is wrong.
I didn't find the right solution