CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Steps in Form

Print topic Send  topic

Author Message
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
_________________

View profile  Send private message
robertmann

Posts: 103
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
View profile  Send private message
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


_________________

View profile  Send private message
robertmann

Posts: 103
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
View profile  Send private message
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
_________________

View profile  Send private message
eratech


Posts: 510
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
View profile  Send private message
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
_________________

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.