cancel
Showing results for 
Search instead for 
Did you mean: 

Disable RadioButtonGroupByKey

carlos_valentini3
Participant
0 Kudos

Good morning fórum.

I need a help.

Attached document my douts.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

abdul_rahman5
Explorer
0 Kudos

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

carlos_valentini3
Participant
0 Kudos

This message was moderated.

carlos_valentini3
Participant
0 Kudos

Good afternoon Abdul, thanks for the help.

If I give my e-mail here will be moderate.

But all my data on my profile.

If you can send the project I am grateful.

abdul_rahman5
Explorer
0 Kudos

Hi carlos,

I have send you the project by mail. Please check and let me know if you have any issues.

Thanks

Abdul

Answers (0)