Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3560

Sapui5 TableSelect Dialog Model

$
0
0

Hi Team, I am not able to bind the model for the table select model. Please see the code below

 

i will get responce when user clicks and that esponce i am setting model to dialog:

 

opendialog : function(response){

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

  oModel.setData(response);

  if (! this._oDialog) {

  this._oDialog = sap.ui.xmlfragment("ven.app.view.Dialog", this);

  this._oDialog.setModel(oModel);

  }

 

  this.getView().addDependent(this._oDialog);

  this._oDialog.open();

  }

 

But i see no records found, even though there are records in response

 

this is fragment

 

<core:FragmentDefinition

  xmlns="sap.m"

  xmlns:core="sap.ui.core">

  <TableSelectDialog

  noDataText="No Products Found"

  title="Tax Codes"

  items="{'/results'}">

  <ColumnListItem>

  <cells>

  <Text text="{DocumentNo}" />

  <Text text="{TaxCode}" />

  </cells>

  </ColumnListItem>

  <columns>

  <Column width="12em">

  <header>

  <Text text="DocumentNo" />

  </header>

  </Column>

  <Column width="12em">

  <header>

  <Text text="TaxCode" />

  </header>

  </Column>

  </columns>

  </TableSelectDialog>

</core:FragmentDefinition>

 

 

Also i want to remove search option, but i dont see any way to remove that.

 

Thanks in advance


Viewing all articles
Browse latest Browse all 3560

Trending Articles



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