CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 CCS Examples and Tutorials.

Print topic Send  topic

Author Message
Rocket

Posts: 45
Posted: 10/07/2010, 11:16 PM

In an effort to minimize hastling everyone with newbie questions, I thought I'd go over the examples and solutions again and with more diligence. I have a question that seems to be confusing and in error: In the Mutli-step registration, step 2 says this:

Page 2 (MultiStepRegistration1):
1.Use the Record Builder to create ... In Step 3 of the Record Builder, check the following options: Allow Insert, Allow Update and Allow Cancel .

4.In the Format tab of the Properties window, set the Value property of the Add and Submit buttons to Next >> .

7.Add the appropriate programming code in the Record form's After Insert event as shown in the example.

In the first step why do we need Insert & Update? Then we set the text to NEXT>>> for both buttons - this seems odd to have and Insert and Update (Insert makes sense),

The next step (4) is confusing and is part of the previous question, both labels will say NEXT >>>

Finally, in step 7, i undertand After Insert, but am not sure of the function to use and how the result is actually passed to the next page. I'm thinking I have to use CCDLookUp and use the USERID session variable to get the latest inserted record (I suppose I could use basic SQL, but using the builtin featuers seems to make more sense).

In any case, if this is the right function to use, how does the next page know to receive the input data from the table, or maybe more correctly - where do I tell CCS to do this? OR, why can't we just use the USERID?

I hope this is somewhat clear, i am confused and it's likely because of my lack of experience.

Thanks for the assistance and patience, it'll come - we hope...
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 10/21/2010, 2:35 PM

I just can give you an advice when learning from CCS

examples, not try to do everything as it says, read it over yes,

and then create a solution.

Maybe some parts of it aren´t useful for your examples and other does.

Take only what you need.

Quote Rocket:
In an effort to minimize hastling everyone with newbie questions, I thought I'd go over the examples and solutions again and with more diligence. I have a question that seems to be confusing and in error: In the Mutli-step registration, step 2 says this:

Page 2 (MultiStepRegistration1):
1.Use the Record Builder to create ... In Step 3 of the Record Builder, check the following options: Allow Insert, Allow Update and Allow Cancel .

4.In the Format tab of the Properties window, set the Value property of the Add and Submit buttons to Next >> .

7.Add the appropriate programming code in the Record form's After Insert event as shown in the example.

In the first step why do we need Insert & Update? Then we set the text to NEXT>>> for both buttons - this seems odd to have and Insert and Update (Insert makes sense),

The next step (4) is confusing and is part of the previous question, both labels will say NEXT >>>

Finally, in step 7, i undertand After Insert, but am not sure of the function to use and how the result is actually passed to the next page. I'm thinking I have to use CCDLookUp and use the USERID session variable to get the latest inserted record (I suppose I could use basic SQL, but using the builtin featuers seems to make more sense).

In any case, if this is the right function to use, how does the next page know to receive the input data from the table, or maybe more correctly - where do I tell CCS to do this? OR, why can't we just use the USERID?

I hope this is somewhat clear, i am confused and it's likely because of my lack of experience.

Thanks for the assistance and patience, it'll come - we hope...

_________________
Best Regards
Entrepeneur | NT Consultant
View profile  Send private message
andrewi

Posts: 162
Posted: 10/21/2010, 3:52 PM

I think that multi-step registration form has three pages. You can fill each page in, up to page 3, then decide you want to go back to page 1 and change something there if you want to.

I think the record is actually saved to database the first time you leave the first page. Therefore, the first time you click 'Next' on Page 1, you're carrying out a database Insert. If you go back to Page 1 and click 'Next' again, you're doing a database Update. Codecharge automatically shows the relvant button (depending on the state of the record being edited); in this case, you always want the button to say 'Next', so you give the same caption to both buttons. - try giving them different captions, and you'll see what's going on.

Actually, I'd guess it's quite common to give both the Insert and Update buttons the same caption - "Save". You can do two different saving operations with a record form - insert and update. Codecharge knows they're different operations, and you have the flexibility of responding to each action differently (by setting different properties for the two buttons) but if you don't want to bother the user with the difference, you can give both the same caption.
View profile  Send private message
Rocket

Posts: 45
Posted: 10/21/2010, 4:14 PM

Thanks everyone, the step that I didn't perform (or missed in the docs), was to actually OPEN the solution or examples in CCS. When I did that, then eveything became 100% clear.

And yes, read, read and re-read. I'm finding that doing so helps one to "Not Miss A Step" or instruction.

Again, many thanks and it will come.

Cheers...
View profile  Send private message
CodeChargeMVP

Posts: 473
Posted: 10/23/2010, 12:42 PM

keep it the good work :-D

Quote Rocket:
Thanks everyone, the step that I didn't perform (or missed in the docs), was to actually OPEN the solution or examples in CCS. When I did that, then eveything became 100% clear.

And yes, read, read and re-read. I'm finding that doing so helps one to "Not Miss A Step" or instruction.

Again, many thanks and it will come.

Cheers...

_________________
Best Regards
Entrepeneur | NT Consultant
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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