Retrieving a parameter's value from a Gadget's URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2020 11:16 AM
Is it possible to retrieve a parameter value from the gadget url?
e.g. with the below example - how would you retrieve the value of the parameters "myparameter"?
Can this be done using the finesse.utilities.Utilities.getParameterByName(str, name)?
Can anyone give a simple example?
Example Gadget Config on Finesse Admin Desktop
<tab>
<id>Sample</id>
<label>Sample Gadget</label>
<gadgets>
<gadget>https://mywebserver.mydomain.com/gadgets/sample/sample.xml?myparameter1=blah</gadget>
</gadgets>
</tab>
Regards,
Gerry
- Labels:
-
Finesse

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2020 09:05 AM
Hi Gerry,
Please take a look at the _initializeGadgetURLParams method of the WebexTeams sample gadget. It uses
document.location.href.split("?")[1].split("&");
Thanx,
Denise
