Skip to Content
-1

How to enable Smart table Persistency Key

Hi Experts,

I have configured smart table with oData service having vocabulary annotaions. Now we want to enable variant management for smart Table which will enable by providing the 'persistencyKey' for the Table.

Can any one explain the process creating the 'persistencyKey' which can be used by smart table.

Thanks in advance..

Regards,

Mahitheja.

Add comment
10|10000 characters needed characters exceeded

  • Thanks I have got a solution.

  • Former Member

    sorry,first ,my English is bad;

    I want to know how to solve it, i face same problem about samrt variants , maybe share your solution and code,TKS!

  • Hi Jerry,

    For which scenario you are using Smart Variant.

    Variant management as know enables to save inputs or filter based on individual user. For this you need to provide a unique name(Can be any specific) at persistence key parameter, this will enables the variant management once you deploy into launchpad.

    Thanks,

    Mahitheja.

  • Get RSS Feed

1 Answer

  • Jan 10 at 05:41 PM

    Hi Mahi,

    This is the official SAPUI5 documentation on Smart Variant Management. There you will see that "percistencyKey" is the value for keyName that is used internally by the backend system to store the search variant ID. Once your UI sends a POST to store the variant, it sends its Name to the OData service. This in turn generates a key (GUID) for the variant that would be specific to the logged on user (same concept as saving variants on SAPGui). When you reload the UI, the Smart Table will retrieve all variants for the logged on user and display them. If you ever need to edit some of them the OData will send the GUID instead of a name.

    Hope this clarifies.

    Regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Karthik,

      AFAIK: It should work just as well. Of topic: IE doesn't prevent you from running Fiori Applications just as long as if you are running it on a compatible version (I know IE11 works with the launchpad). I prefer running an Fiori application on top of the Launchpad because it give you the possibility to theme the application, integrated logon/logoff features, role based application groups, etc. Besides, it doesn't make a lot of sense delivering a Fiori App with a zillion features because it is not what the Fiori Design Principles tell us. Rather, one should design apps focused on simple tasks that can be accomplished with as little as 3 navigation clicks or less. So it makes more sense having several applications for each user than having just a single app that does it all.

      Back to the original question: You may call service (name in SICF is: /SAP/BC/LREP) directly using the GET method like so: <host:port>/sap/bc/lrep/content/?sap-client=XXX. This will give you a json string with the application name, variant name and variant contents. Test this with different users to see how the system works.

      Best regards,
      Ivan