CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 CC+JSP: empty sAction variable

Print topic Send  topic

Author Message
Gianni
Posted: 10/18/2002, 3:37 AM

CC 2.0.5 + templates

Why does sAction contains an empty string?
Isn't it supposed to equals to "insert", "update" and so on?

I need to test this variable to check if I'm inserting a new or updating an existing record.

In generated JSP code sAction is initialized in this way:
String sAction = getParam(request, "FormAction");

Adding a
System.out.println(sAction);
after the mentioned line, nothing is printed in my log files.

Definitly: how do I test if I'm in insert or update mode?

Thank you
Gianni
Nicole
Posted: 10/19/2002, 1:09 AM

Hello,
sAction variable gets the value only after the form is submitted. I suppose that you’ve printed it in one for "Show" events and got empty value.
To check the form mode when the page is displayed check the value of bPK variable in the form Open event. If it is "true" the form is set in the update mode.

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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