Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9656

SAPUI5 get URL parameters

$
0
0

Hi,

 

I have a URL.  Example:

 

 

datalink.html?param1=1&param2=2&param3=3

 

 

The URL points to a .HTML with a SAPUI5 view placed in the body content.  In the .HMTL I also include some .js files.  Within a .js file I am trying to get the parameters of the URL, using:

 

 

$.request.parameters.get("param1"')

 

 

The view displays OK however viewing the browser console I see a runtime error indicating "request" is undefined.  All I'm trying to do is retrieve the URL parameters, I have searched SCN, google and a quick scan of the SAPUI5 developer guide without joy.  I really must be missing a trick.

 

Note I am not trying to get URL parameters from within an XSJS service (where above jQuery works fine).  It is from within pure SAPUI5 (or rather .JS files included in the HTML).

 

 

Many thanks.

Jon-Paul.


Viewing all articles
Browse latest Browse all 9656

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>