on 10-23-2008 9:41 AM
Hi All,
I am using a integer for an input field as assigned defualt value as 1, but if user changes it to any char eg:a, this is resulting in a error message
"Value a contains non-numeric characters "
which is given by Webdyn pro, and blocking the remaining functionality untill the value is changed to integer value.
Please suggest me how can i overcome this
Thanks
-
Nagaraju
Hi,
go to action tab of view,
right click on the action associated with the button and edit
check without validation check box.
deploy the new archive and see if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if input field does not require any input from user apart from the default one then first you can set the enable property of input field to false.
and Webdynpro framework validation applies when your action event handler is created with Without validation option unchecked.
try checking this option of event handler.
Siddharth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Create a context attribute and set the data type as integer
and put the validation logic on onEnter action
Thanks
Anup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
take the help of this sample cod, once you achived this functionalty then set a boolean type flag as true, and use this flag for rest of the procdure.
i mean once this flag is true then put a condition to skip the rest of the process.
DecimalFormat pattern = new DecimalFormat( "#,##0;(#,##0)" );
String numberString = "(1,234)";
Number n = null;
try
{
n = pattern.parse( numberString );
}
catch ( ParseException e )
{
//( "oops:" + numberString );
// n = new Integer( 0 );
for more details
check this link
Thanks
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.