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.
|
|
|
 |
|