Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Re: webdynpro java validation in portal 7.0

$
0
0

Hi Vanitha,

 

 

Can you try changing the context type of the input field to String and create the validation method on the onenter event

 

Please  find the below sample code. Let me know if this not covered your requirement

String value = wdContext.currentContextElement().getNumbervalue();

 

  if (value != null) {

 

 

  if (value.length() == 1) {

  value = "000" + value ;

  wdContext.currentContextElement().setNumbervalue(value);

  }

}

 

 

Thanks

Abdul Rahman


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>