Search Support
-
Shirisha PyarasaniMarch 14, 2020 at 7:59 pm #5717
Hi There,
I have a requirement where on adding a new row to the table, the boolean ‘Yes/NO’ radio button group (NVP) in the table should be pre-populated(based on a service output). I have tried several ways i.e. by binding and through UI. In both the ways the selection is moving to the latest added row.
Tried the following
_this.context.binding.get(“value”).get(“appointmentEntityDetails”).get(rID).get(“jciAffiliate”).set(‘name’,’No’);
&&
On load of the radio button
me.setData(‘Yes’);
&&
_this.jciAffliate = function (me){
console.log(“inside affiliate”)
var index=me.ui.getIndex();
console.log(‘index’+ index);
//me.setItem(index,’Yes’, ‘Yes’);
_this.ui.get(“/Tax_Template_R31/DOCRCV1/AppointmentDetails/Yes[“+index+”]”).setSelected();}
With all the above cases the selection is moved to the latest added roe.
Request you suggest a solution for the above problem.
Thanks,
SPARK SupportMarch 16, 2020 at 10:15 am #5721Hi Shirisha,
If you have several Radio Buttons displayed within a Table control, say Yes and No for each Table row, the Radio Buttons most likely consider themselves to be all part of the same Radio Button Group. Try setting the Radio Button Group on load using a variable for the Group Name such as “RBGroup” + me.ui.getIndex(). This way, the Group Name should be configured to make each row it’s own group.
Regards,
Stephen P.
-
|
You must be logged in to reply to this topic.