on 11-20-2007 11:30 AM
Is it possible to implement client side eventing, specifically the ON_BLUR event in a Java Web Dynpro?
Rob,
NO.
Web Dynpro doesn't support frontend validations (java script), like On-BLUR, Key in....etc.
But simple validations like Input field validations like Fixed Length, integer validations, date max and min...etc. validations we can get using Dynpro Simple Types.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/internationalization%20of%20web%20dynpro%20applications.pdf">Example for Simple Type</a>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is possible in the following way:
if(String.valueOf(wdContext.currentContextElement().getTest1()).length() >= 2){
IWDInputField inp = (IWDInputField) viewObj.getElement("InputField5");
inp.requestFocus();
}
where Test1 is the attribute bound to your 1st inputField and is type of integer.
As you press enter after entering 2 digits or more, it will go to the next input field having id "InputField5"
This code you have to put in onEnter action of the inputField.
thanks & regards,
Manoj
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.