cancel
Showing results for 
Search instead for 
Did you mean: 

get value from a column that is not showing on smarttable SAP UI5

0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

fioriios
Member
0 Kudos

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!!

0 Kudos

Thanks a lot.

Answers (1)

Answers (1)

CristianBabei
Contributor
0 Kudos

Hello,

Smarttable, has a property called requestAtLeast.

Check on the api.

Regards