cancel
Showing results for 
Search instead for 
Did you mean: 

Implement Client Side Eventing in Web Dynpro

Former Member
0 Kudos

Is it possible to implement client side eventing, specifically the ON_BLUR event in a Java Web Dynpro?

Accepted Solutions (0)

Answers (2)

Answers (2)

sridhar_k2
Active Contributor
0 Kudos

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>

Former Member
0 Kudos

No.

Armin

Former Member
0 Kudos

Ok, is there any way of moving the cursor between fields automatically after entering data. For example after entering 2 digits the cursor tabs on one field?

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

No , but you can use simple types to restrict entries.

Client side of webdynpro is not yet exposed to play around with so far....

Regards

Ayyapparaj