CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Populate form fields with session variables

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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
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.