cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering a SAPUI5 Fiori Elements Smart Table Using A Variable Informed in log on.

jualcant4
Discoverer
0 Kudos

I have a SAPUI5 Fiori Elements app that depends on tabs (quickSelectionVariantX) instead of a filterBar.

And a column of table is “emailUsuario”. Depending on this column items should be visible or not in app, so that, for example, if a log in BTP and access this app, when my user email is loaded, only I can see items related to my email. To filter using tabs, I’ve used annotations, using SelectionVariants.

The filters I've used before were hardcoded strings, but this one is a variable, it should change depending on user. If i hardcode my email it works, but when i try to use a model, like a i18n (String="{@i18n>EMAIL_USUARIO}"), it doesnt work, it takes literally the string, not the variable of the model.

I even tried using onAfterRendering function to get all info of tables in tabs, read entity set and bind it with JSONModel. But this is not very efficient and its not possible to bind a JSONModel to a Smart Table.

Is it possible to do this kind of approach in a Fiori Elements List Reports App? I know how to do this in a MVC app. Could you help us with a way to do this?

Accepted Solutions (0)

Answers (0)