Skip to Content

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

Radio Button Aggregation Binding


In my application i need to bind multiple cards to radio button which works fine when i use Radio button group but in addition i need to display one more radio button "New Card" which is static to the same group. This new card is not returned by the oData service.  At a time user should be able to select only one radio button either New Card or existing card which is returned by the odata service.

Can someone please help to understand how i can add the New Card to radio button group.

  //Create Radio Buttons to for Saved Cards

     var oCardRB = new sap.ui.commons.RadioButtonGroup({

      id: "CardRBG" ,

      tooltip : "Cards",

      select : function(){





     var oItemTemplate1 = new sap.ui.core.Item({id: "CardItem"});


     oItemTemplate1.bindProperty("text", {

      parts: [

              {path: "CardModel>Card_holder_name", type: new sap.ui.model.type.String()},

              {path: "CardModel>Card_type", type: new sap.ui.model.type.String()},

              {path: "CardModel>Card_Key", type: new sap.ui.model.type.String()},


            formatter: function(Card_holder_name, Card_type, Card_Key ){

            return Card_holder_name +  " " + Card_type + " " + Card_Key ;



     oCardRB.bindItems("CardModel>/PaymentCardSet?$filter=UCRN%20eq%20'XXXXXX'", oItemTemplate1 );



Helpful Answer

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