gonren
Posts: 7
|
Posted: 01/12/2016, 8:52 AM |
|
Hi,
I want to know if there is a way in CCS 5.1 to create a form that contains different steps (Step 1 > Step 2 > Step 3).
Thanks in advance for your help.
Gonzalo
_________________
|
|
|
robertmann
Posts: 109
|
Posted: 01/12/2016, 12:50 PM |
|
Create several pages with different fields for each form/page.
Insert the record on the first page, then update it on each next one.
You may only need to retrieve the inserted key after inserting the record on the first page: http://forums.yessoftware.com/search.php?s_keyword=last...or=&s_forum[]=6
_________________
Robert |
|
|
gonren
Posts: 7
|
Posted: 01/12/2016, 1:11 PM |
|
Thanks Robert,
Each of the Steps will save the data in a different table (Step 1 to People, Step 2 to Machinery, Step 3 to Materials). it is about the control of expenses of the tasks of a project. For the task 1, I have to do Step 1,2 and 3.
So I think I would need to retrieve different tables for each step.
Would it still work in the same way?
Thanks for your comments.
Gonzalo
_________________
|
|
|
robertmann
Posts: 109
|
Posted: 01/12/2016, 1:58 PM |
|
Each page or form always saves data to own table(s) that you configure for it, so you don't seem to do anything different than every application. I mean that every form in CCS needs to be assigned a table.
You may only need to figure out how to make the data in each table relate to each other and save that value in each of the tables.
_________________
Robert |
|
|
gonren
Posts: 7
|
Posted: 01/12/2016, 2:03 PM |
|
OK Robert, I understand.
The link for each table will be the Task number.
Many Thanks, Gonzalo
_________________
|
|
|
eratech
Posts: 513
|
Posted: 01/12/2016, 3:38 PM |
|
Ganzalo - there is also an example in the CCS Example pack called 'Multi-Step User Registration' an the online version is here:
http://examples.codecharge.com/ExamplePack/MultiStepReg...trationGrid.php
I used this method for a project and it worked exactly as robertmann advised (Insert on first step to get overall ID and Update records for each other step) Later steps updated different tables, so you set up the form for that table and pass the ID from Step 1 (again as robertmann advised)
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |
|
|
gonren
Posts: 7
|
Posted: 01/14/2016, 7:11 AM |
|
Thanks Erick,
Now I am working with this example and trying to connect to the different tables as Robert recommended.
Many Thanks, Gonzalo
_________________
|
|
|
|