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

Re: Disable RadioButtonGroupByKey

$
0
0

Hi Carlos,

 

Provide your mail id i will send the webdynpro java project for your reference.

 

 

Step 1:  Create  the dictionary simple type movie with the enumeration as mentioned in the table.

 

Keyvalue
01English
02Chinese

 

Step 2:  Create  the dictionary simple type gender  with the enumeration as mentioned in the table.

 

Keyvalue
01male
02Female

 

Step 3 : Create the context attribute named flag with type boolean

 

Step 4 : Create the context attribute named InputField and map it to the dictionary simple type movie (create in  step1)

 

Step 5: Create  the ui element dropdownbykey in the layout of the view


Step 6:  create the ui element radiobuttongroupbykey bind the context attribute flag to the read only property and map the simple type gender to the selectedkey property of the radiobuttongroupbykey  and create the method onActionDisablemethod

 

Implement this code in your onActionmethod of dropdown by key.

 

if (wdContext.currentTestFieldElement().getInputField() != null) {

 

 

  if (wdContext.currentTestFieldElement().getInputField().equals("01")) {

 

 

  wdContext.currentTestFieldElement().setFlag(true);

 

 

  }

 

 

  if (wdContext.currentTestFieldElement().getInputField().equals("02")) {

 

 

  wdContext.currentTestFieldElement().setFlag(false);

 

 

  }

 

 

  }

 

Message was edited by: Abdul Rahman


Viewing all articles
Browse latest Browse all 8545

Trending Articles



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