MadPhilly
Posts: 19
|
Posted: 06/11/2008, 12:58 AM |
|
I have a form header that contains a few fields that need to be repeated for every line of detail. For example, one of the forms has 10 lines and we don't want to enter the header info 10 times.
Is there a way we can enter that header once and submit it at the end of the detail filling.
Note: The header info is stored in the same DB as the detail so would need to be submitted for every line.
Thanks in advance
Andy
|
|
|
wkempees
Posts: 1679
|
Posted: 06/11/2008, 4:14 AM |
|
Andy,
Your post is not entirely clear (to me)
Do you mean to create an includable page and include that in a grid after each line of data?
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
MadPhilly
Posts: 19
|
Posted: 06/11/2008, 5:37 AM |
|
Example:
I have a paper based form, at the top are three boxes; Name, Date, Serial Number,
Under these is a table containing 10 lines of data. I need to record all of this data on a form but don't want to have to type out the Name, Date and Serial number 10 times, however it does need to be part of each record when submitted to the database.
Hope this helps
|
|
|
wkempees
Posts: 1679
|
Posted: 06/11/2008, 5:43 AM |
|
Help, Not really.
To get your metaphores right, have a look at the CCS components Grid and EditableGrid.
What I guess you want is a Editable Grid
A Page containing a recordForm (Name Date Serial) that would act as a filter on a EditableGrid on the same page.
Youw ould enter data in the Record/SearchForm, submit.
That would open up an editable grid with datafields primed by the data entered in the Record/SearchForm.
Sounds any good/close?
HTH
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
MadPhilly
Posts: 19
|
Posted: 06/11/2008, 5:48 AM |
|
That does sound close actually, so anything I entered in the editable grid would be preceded by the data in the recordForm when submitted??
|
|
|
wkempees
Posts: 1679
|
Posted: 06/11/2008, 5:56 AM |
|
It could be made to act that way, yes.
General: An editable grid will show (previously entered) data from a table, offering empty rows to add new rows.
The number of empty rows is 'setable' so in your case it could be 10, or one and autoadd.
Assume each row in that table should have name, date, serialnr, x, y, z.
Your editable grid could be x, y, z, and upon insert/update write name, date, serial, x, y, z.
Without going into details, it could be hidden fields( name, date, serialnr) or you could add them easily in a customInsert, customUpdate.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
MadPhilly
Posts: 19
|
Posted: 06/11/2008, 5:59 AM |
|
Thanks for your help and patience Walter
I'll check out the customInsert and customUpdate
|
|
|
wkempees
Posts: 1679
|
Posted: 06/11/2008, 6:20 AM |
|
You're welcome.
Please try and delete the doubly posted post in the other forum....
Or, add a link there to this thread.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
|