Do we have any global variable to access Portal object like this.appConfig or this.map in widgets of Web AppBuilder?

1448
1
05-04-2016 10:20 PM
Vara_PrasadM_S
Occasional Contributor II

Hi,

1. Could anyone one please let me know if there is any way to easily access ArcGIS Portal object in custom widgets just similar to this.map or this.appConfig. I found that we can access portalURL using this.appConfig.portalURL but no portal object or we need to simply create it where ever it is necessary.

2. Do we have any code written to fetch Web Maps that a logged in Portal user has access to in Web AppBuilder?

Thanks & Regards,

Vara Prasad.

1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Vara,

  There is global vars available for this that I am aware of. But there are a couple of jimu utility classes that you should look at.

  1. portalUtils.js
  2. portalUrlUtils.js
0 Kudos