Skip to Content

Disable RadioButtonGroupByKey

Good morning fórum.

I need a help.

Attached document my douts.

Thank you.

Help.txt.zip (566 B)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 09, 2014 at 03:45 PM

    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.

    Keyvalue01English02Chinese

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

    Keyvalue01male02Female

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.