on 06-24-2010 11:44 PM
Hello,
I want to make some of the inputfield mandatory for the user, so I selected "required" in the propery status, after that, it do nothing. Also, I have 3 buttons.
The question is, How can I make this works when I clic in one of this buttons? How can I do the validation when the user clic some of this buttons? The button have to be related with some kind of validation function?
Thanks & Regards
SU
Hi,
Create a action for the button:go to Layout - > and select the button properties - > action:ClickButton.
In the implementation tab:
OnActionClickButton(..)
{
String strIfld = wdContext.currentContextElement().getInputFld();
if(strIfld !== null & strIfld.length() == 0)
{
wdComponentAPI().getMessageManager().reportException("Please entre the filed");
}
else{ {Write your code} }
}
Regards,
Lavanya.G
Edited by: Lavanya Goriga on Jun 25, 2010 6:33 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.