Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamic checkboxes

I have 2 checkboxes.I want to show if first checkbox is selected then only second will be visible.I have written following code

View xml

   <CheckBox text="APO" selected="{Apo}" id="cbk3" change="oncbch"/>

<CheckBox text="MM" selected="{Mm}" id="cbk7"/>

Controller View

oncbch:function(oControlEvent)

   {

   debugger;

   var state  = oControlEvent.getParameters().state;

   this.byId("cbk7").setVisible(!state);

   },

but its not woking Please help

Former Member
Former Member replied

  this.byId("cbk7").setVisible(this.getView().byId("cbk3").getSelected());

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question