Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3218

how to get seleteditem from table dialog

$
0
0

Hi experts please help me


I want get selected data from table selcet dialog, but i have some error

 

when i didn't give name jsonmodel. it worked.

 

but when i give name to json model, it has problems

oModel2.read("/GhoVendorShlpSet",null,null,true,function(oData,repsonse){

          oJsonModel2.setData(oData);

          });

          sap.ui.getCore().setModel(oJsonModel2, "vendorDialog"); //this part i give name "vendorDiaolog" to Jsonmodel2

 

 

 

this is function to call selected item. this part have problem

 

Confirm: function(oEvent) {

 

var oContext = oEvent.getParameter("selectedItem");

  var path = oContext.getBindingContext("vendorDialog");

 

  var Lifnr = this.getView().getModel().getProperty("Lifnr", path);  // Problem! this part didn't work

  var Name1 = this.getView().getModel().getProperty("Name1", path); // Problem! this part didn't work

 

};

 

 

dialog.fragment.xml

 

<cells>

  <Text text = "{vendorDialog>Lifnr}" />

  <Text text="{vendorDialog>Name1}" />

  <CheckBox />

  </cells>


Viewing all articles
Browse latest Browse all 3218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>