Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to pass input parameter values from one view to another?

Hi Everyone,

I have created two views.

In first View, I have created panel to get input parameters and now I want to pass these input parameter values to my second view to perform other operations using the input.

How can I achieve this?

Regards,

Vivek

replied

Hi Vivek,

I think you could use this options:

Option 1. View parameter routing:

Documentation/AdvancedTopics/Navigation – SAPUI5 Wiki (TIP CORE User Interface)

Option 2. Global model (cross-view):

Documentation/AdvancedTopics/DataBinding/UsageInApp – SAPUI5 Wiki (TIP CORE User Interface)

sap.ui.getCore().setModel(oModel);

Option 3. JSViews. viewData param. Please refer to:

https://sapui5.hana.ondemand.com/sdk/docs/guide/MVC.html

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.core.mvc.View

In my opinion, the more elegant/polite option is no. 1

Hope this helps,

Kind regards

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question