Kubas
Kubas

Reputation: 91

SAPUI5 Get context/model property for smarttable row

i have a smart table where i add some tooltip for an Icon. In my table i display COL1 COL2 and COL3, moreover COL4 and COL5 is not visible (but still in the model - OData is generated by CDS View). Now, for a line i try to get the property which is not visible in the table:

            var oContext = oItem.getBindingContext();
            var oLine = oContext.getObject(oContext.getPath());

oLine object contains only COL1 COL2 and COL3 properties, no acces to COL4 and COL5. Is there any chance to fetch then ? I guess the data is somehow buffered already, isn't it ?

Upvotes: 0

Views: 1933

Answers (1)

Andrew Naumovich
Andrew Naumovich

Reputation: 1450

Try using requestAtLeastFields property of a SmartTable control.

Upvotes: 1

Related Questions