leo
|
Posted: 04/05/2005, 3:28 PM |
|
I am using CC studio 2.3.2.24 and Java.
I have created an editablegrid with a textbox above it. They are in the same form. I placed some code to view the textbox in the beforeexecuteupdate event. I always got a null. The textbox has a default value of "something".
Control tc = e.getEditableGrid().getControl("TextBox2");
if ( tc != null )
{
String m = Utils.convertToString(tc.getValue());
if ( m != null)
System.out.println("textbox2 = " + m );
else
System.out.println("textbox2 = null" );
}
Any ideas ?
thanks!
leo
|
|
|
miko
Posts: 50
|
Posted: 04/05/2005, 10:25 PM |
|
Leo,
default value in CCS has meaning only in show mode and it ia applied to controls before BeforeShow event. If you need default value for update operation you should use custom operation and default value for corresponding parameter.
_________________
Regards,
Michael |
|
|
|