Accessing custom url within a nanoflow

0
 Hi everyone, How would I be able to access the specific url for a page (stored in page properties) within a nanoflow so I could pass the url to a javascript action? Thanks, Jon
asked
4 answers
1

Hi Jonathan,

Using the API doc https://apidocs.rnd.mendix.com/8/client/mx.html

mx.appUrl

You can use page url or deeplinks to direct to the content.

Or if you page already have a page using page URLs, you can also use window.location

https://www.w3schools.com/js/js_window_location.asp

Use a JavaScript action to get the details you want.

Cheers, Andries

 

answered
0

Hi Jonatha,

Have you tried SetURL from the appstore?

answered
0

Download NanoflowCommons, which will give you the Javascript Action ‘OpenURL’

answered
0

Hi Jonathan,

Not exactly sure what your page url template is, but if it includes the Mendix ID than you could use the GetGuid from the NanoflowCommons to build your url.  I think your baseURL of the application can come from a constant which is available to the client. 

 

answered