on 12-09-2014 2:19 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.
Key | value |
---|---|
01 | English |
02 | Chinese |
Step 2: Create the dictionary simple type gender with the enumeration as mentioned in the table.
Key | value |
---|---|
01 | male |
02 | Female |
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.