on 07-20-2018 9:54 PM
Hi experts,
in the view of my smarttable I declare to display some fields
(initiallyVisibleFields = "Vkorg, Vbeln, Posnr, Banfn, Bnfpo, Name1, Matnr, QtdConfirmed")
but when trying to read the value of a field that is declared there, however it exists in the table does not return me value.
(var selected = this.getView (). byId ("table1"). getSelectedItems (); var meins = selected [0] .getBindingContext (). getProperty ("Meins"); )
however if I set the field to be displayed in smarttable the above command works normally.
my question is, how do I get the value of a field that is not being displayed in the smarttable but does it exist in the table?
HI ,
As Cristian above said u have already included a property
initiallyVisibleFields = "Vkorg, Vbeln, Posnr, Banfn, Bnfpo, Name1, Matnr, QtdConfirmed" in smart table ,
also include property requestAtLeastFields="Meins".
Then try
var selected = this.getView (). byId ("table1"). getSelectedItems ();
var meins = selected [0] .getBindingContext (). getProperty ("Meins"); // hope it works!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Smarttable, has a property called requestAtLeast.
Check on the api.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.