Hi,
I have a URL. Example:
datalink.html?param1=1¶m2=2¶m3=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.