Skip to Content

How to retrieve data from url parameters in custom card of overview page?

Hi Experts,

After navigation from one app to ovp app successfully able to send data in url. But how to get the data from the url in custom card?

Here is the link that how I created the custom cards.

https://blogs.sap.com/2017/05/21/create-your-own-custom-card-in-a-sap-fiori-overview-page/

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Dec 12, 2018 at 12:52 PM

    I solved it using the following code :

    var startupParams = this.getComponentData().startupParameters;

    var sdata= (startupParams.data);

    and set a model at sap.ui.getCore() as follows

    sap.ui.getCore().setModel(sdata, "name");

    and retrieve it at controller using sap.ui.getCore().getModel("name")

    Add comment
    10|10000 characters needed characters exceeded