Skip to main content
Skip table of contents

Passing parameters to a page

One way to pass parameters to a page is to use Angular Route syntax with colons (“:”) in the URL.

For example, a project called policy in the Convertigo Studio, can be accessed as:

TEXT
http://localhost:18080/convertigo/projects/policy/DisplayObjects/mobile/index.html#/policy-request/:id

policy-request is the name of the Segment property of the Mobile Application page.

:id is the name of the variable to be replaced by its value in the iframe src attribute.

CODE
http://localhost:18080/convertigo/projects/policy/DisplayObjects/mobile/index.html#/policy-request/123456789

The value of the variable can be accessed when the page is loaded (onDidEnter event) in a customAction component or directly in a TS property with:

TYPESCRIPT
page['navParams'].get('id')

Then, a click button event can be fired to call a Convertigo Sequence with this value to insert values in your DB.

Here is a sample project to demonstrate how to retrieve parameters and send them to a sequence: policy (Mobile Application has to be built in the Studio first)

An other way is to use the Page data property of the RootPage, PushPage, ModalPage components to transmits a data object to the Page.

Data can be retrieved using the TS code:

TYPESCRIPT
page.navParams.data

Or using the Show Actions Sources in the Source Picker tab:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.