SAP Cloud SDK : Enable disable Textbox based on Radiobutton
We have developed the embed component as shown below.
Now we have requirement to enable / disable or Visible true /false Inputbox based on Radio button.
How i can achieve this.
Initially both inputbox disable by default.
My requirement is when user click on Radiobutton "InputBox 1" the Inputbox 1 enable for input.
and when click on radiobutton "Inputbox 2" Inputbox 2 enable for input and Inputbox 1 disable.
Anyone have idea how to achieve it.
Ludger Bünger replied
Use UI Scripting.
1. Bind the radio button to a field containing a code list
2. Set the "enabled"-property of the input fields to "Advanced" and select a calculation rule
3. As invalidation trigger (lower part of the dialog) select the field bound to the radio buttons
4. as calculation rule, use something like this:
if $data.radiobutton == "InputBox_1"
result = true
result = false
with $data.radiobutton being the field bound to the radio button and "InputBox_1" being the code value for the selected radio button