tim
|
| Posted: 07/31/2002, 6:27 AM |
|
Hey I just started using CCS and big changes but like it. I just can't figure out how to do things I used to do in CC. I want to pass a variable to the next page. Forum example I want to pass the topic from the viewthread page to the reply page and make the reply a pre-filled label. This was simple in cc but I can't find out how to do it know. Can anyone help pls.
|
|
|
 |
Nicole
|
| Posted: 08/01/2002, 6:54 AM |
|
Hello,
I suppose the approach is similar to CC one. You should put the topic field into session and then assign session var value to the topic field on the reply form.
Here is the scenario:
- add Hidden type field to the Grid form with the initial tread and assign it to "message_title" field.
- create Before Show Row event for this form and put title value into custom session variable. E.g. for ASP
Session("title") = forum_messages1.<hidden_field_name>.Value
- create Before Show event for the message_topic field on the Reply page and retrieve session value:
ASP
messages.topic.Value = "Re:" & Session("title")
|
|
|
 |
NR
|
| Posted: 08/01/2002, 7:37 AM |
|
If you want to put a parameter in the link that calls the next page so you can use its value on the next page do this:
- Click in the Source/Parameters properties;
- In the 'Href Source' page, where you set the destination page, click '+' in 'Link Parameters:';
- Fill in the 'Source type' (for instance 'Form' to use a form field);
- Fill in the 'Parameter source' with the source field name;
- Fill in the 'Parameter name' with the actual name that you want ot use as parameter, for instance "topic";
In the other page set the default value of the required field with:
- CCGetParam("topic","")
That will set the default value of the field to whatever you have passed as "topic" parameter
|
|
|
 |
|