Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically creating sub-rows

Status
Not open for further replies.

needahand

IS-IT--Management
Dec 7, 2011
4
GB
Good afternoon,

I have a page displaying rows from a table. The user can add a new task and enter data into various fields. The user should also be able to add sub-tasks when creating a task. The rows for the sub-tasks need to be dynamically added, by the user being able to click a + or 'Add Sub-Task'.

The Insert page would look something like this.

Rowid Field1 Field 2 Field3 Field 4 Field5

(Add Sub-Task)
Field 6 Field 7
8
10
Field 11 Field 12

By the user being able to add sub-rows, the user can determine how many sub-rows need to be added without me creating a precise number of sub-rows. The main row of tasks would of course be displayed while the sub-rows are being added by the user. Once the number of sub-rows are all added, the user can save and the insert statement in the 'action page' would perform the insert into the database. The user can create a maximum of 20 sub-tasks.

I hope this is clear. Thank you in advance for any help. Please ask if you need me to clarify any of the points.

Many thanks.
 
It sounds like you want to add a row to the table without reloading the page?

That will be a task for javascript.

See this thread in the javascript forum:
Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Thanks, for your suggestion. I had a look and trying to get a grip on it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top