Waspman
Posts: 948
|
| Posted: 10/29/2012, 8:10 AM |
|
Ok a page with a label and a form with an empty textbox
I can populate the label with
$container->lable1->SetValue(CCGetSession("value");
but I cant populate the textbox in the same way.
Any ideas?
_________________
http://www.waspmedia.co.uk |
 |
 |
Waspman
Posts: 948
|
| Posted: 10/29/2012, 8:19 AM |
|
I tried it at various stages of the form, "before show" and "before insert"
But no joy
Difficult stuff no probs, but simple stuff like this!!!!
I'd forgotten how frustrating CCS can be haha
_________________
http://www.waspmedia.co.uk |
 |
 |
bannedone
Posts: 273
|
| Posted: 10/29/2012, 8:34 AM |
|
Hi
I am suprised this worked for your label
$container->lable1->SetValue(CCGetSession("value");
It actually should be like this
$Container->lable1->SetValue(CCGetSession("value"));
If that format does not work for your textbox in your Custom Code, try using in the BeforeShow event the Retrieve Value For Control action.
Select the control name and the type as session and put the session name in the properties values.
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
 |
 |
Waspman
Posts: 948
|
| Posted: 10/29/2012, 8:39 AM |
|
Yep sorry John, that is how I typed it (banging on the keys) the syntax was right. I rebuilt the pages so that the cart is zero'd on the previous page and it worked.
Heyho!
:)
_________________
http://www.waspmedia.co.uk |
 |
 |
bannedone
Posts: 273
|
| Posted: 10/29/2012, 8:45 AM |
|
Cool Tony..
That is great!!!
_________________
John Real
CodeCharge Studio Support, Training, Consulting, Development, Web based solutions
http://realsites.biz
http://ccselite.com
Other Banned IDs on this Forum. jjrjr1, jjrjr2 |
 |
 |
|