Skip to Content

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

Binding Combo and DropDown box data on table load

I have a sapUI5 table that has columns using a combo box and a dropdown box control.  I'm able to bind the items to the control, select a value and save any selected items to back to the database.

PROBLEM:

I am not able to bind the database data coming in to the controls on the sapui5 table.  We are using a flyout filter and changed the bind rows; which we believe caused this issue.

any assistance would be deeply appreciated.  thanks KellySioux

VIEW:

var ddWogSizeTarget = new sap.ui.commons.ComboBox("ddMsmWogSizeTarget", {

    items: {

              path: "/WOGSIZETGT",

              template: new sap.ui.core.ListItem({ key: "{WOG_SIZE_TARGET}", text: "{RANGE_DESCR}"  })

              },

              change: function(event) {

                    oController.rowChange(this, event);

                    }

          });

ddWogSizeTarget.setModel(pps.config.ppsODataModel);

ddWogSizeTarget.bindProperty('value', 'WOG_SIZE_TARGET');

oTableMtrlSpc.addColumn

CONTROLLER:      *** here I can see the data objects populating. values are there from the database for combo box and drop down control table column, but do not populate.

    var oModel = new sap.ui.model.json.JSONModel();

    oModel.setData({modelData: data});

    gd.bindRows("/modelData");

    gd.rerender();

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