|
POST
|
Thanks Robert, In this sample, how do I instantiate "portalUser" if I already log in into the web application. ? I want to add this code to check the groups from an user that already logged in. require([ "dojo/_base/array", ... ], function(array, ... ) { portalUser.getFolders().then(function(folders){ array.forEach(folders,function(folder){ if(folder.title === 'javascript'){ folderid = folder.id; } }); }); ... }); http://ncsiapps.ncsi.gov.om/arcgis_js_api/sdk/jsapi/portaluser-amd.html
... View more
03-21-2017
11:21 AM
|
0
|
1
|
3104
|
|
POST
|
Class: PortalUser has a method: getGroups() Deferred Find all the groups that the portal user has permissions to access. https://developers.arcgis.com/javascript/3/jsapi/portaluser-amd.html
... View more
03-21-2017
11:10 AM
|
0
|
0
|
550
|
|
POST
|
Hello everyone, I do not understand very well the notation for this function: function (portalUser){ The parameter "portalUser" where is it populated and declared? Is there any online converted that changes from AMD to other structure easier to read? This function is used in this sample: https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html Thanks function displayItems(){ new arcgisPortal.Portal(info.portalUrl).signIn().then( function (portalUser){ console.log("Signed in to the portal: ", portalUser); domAttr.set("userId", "innerHTML", portalUser.fullName); domStyle.set("anonymousPanel", "display", "none"); domStyle.set("personalizedPanel", "display", "block"); queryPortal(portalUser); } ).otherwise( function (error){ console.log("Error occurred while signing in: ", error); } );
... View more
03-21-2017
10:43 AM
|
0
|
20
|
7388
|
|
POST
|
Can I use my AGOL to test this list_admins.py? http://[my Organization].maps.arcgis.com or does it work only with a local portal? I am trying to test it with: portalUrl = "http://[my Organization].maps.arcgis.com/arcgis" or "http://[my Organization].maps.arcgis.com" portalAdminUser = "my User Id" portalAdminPassword = "my Password" and it shows the following error message: Traceback (most recent call last): File "C:\Workspace\portalpy-master\list_admins.py", line 32, in <module> portal = portalpy.Portal(portalUrl, portalAdminUser, portalAdminPassword) File "C:\Workspace\portalpy-master\portalpy.py", line 121, in __init__ referer, proxy_host, proxy_port) File "C:\Workspace\portalpy-master\portalpy.py", line 1800, in __init__ self.login(username, password, expiration) File "C:\Workspace\portalpy-master\portalpy.py", line 1815, in login newtoken = self.generate_token(username, password, expiration) File "C:\Workspace\portalpy-master\portalpy.py", line 1809, in generate_token resp = self.post('generateToken', postdata, ssl=True) File "C:\Workspace\portalpy-master\portalpy.py", line 2016, in post resp = opener.open(url, data=encoded_postdata) File "C:\Python27\ArcGISx6410.2\lib\urllib2.py", line 410, in open response = meth(req, response) File "C:\Python27\ArcGISx6410.2\lib\urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "C:\Python27\ArcGISx6410.2\lib\urllib2.py", line 448, in error return self._call_chain(*args) File "C:\Python27\ArcGISx6410.2\lib\urllib2.py", line 382, in _call_chain result = func(*args) File "C:\Python27\ArcGISx6410.2\lib\urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found
... View more
03-21-2017
06:04 AM
|
0
|
1
|
3681
|
|
POST
|
Does it run only in ArcGIS 10.5? In 10.2.2 the library "import portalpy" is missing. Thanks
... View more
03-20-2017
12:53 PM
|
0
|
1
|
3681
|
|
BLOG
|
I tested it with Web Maps and it works fine. Can it be used with Apps or Layers?
... View more
03-20-2017
12:26 PM
|
0
|
0
|
3177
|
|
POST
|
Hello everyone, I am trying to run this Rest API to list details of an user: http://[myOrganization].arcgis.com/sharing/rest/community/users/username/[myUserId] And no result is displayed. I am not using a portal. I am using this link as a sample: http://resources.arcgis.com/en/help/arcgis-rest-api/#/User/02r3000000m2000000/ Any ideas of why it does not return any result. http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] http://[myOrganization]/sharing/rest/community/users/username/[myUserId] Hello everyone, I am trying to run this Rest API to list details of an user: http://[myOrganization]/sharing/rest/community/users/username/[myUserId] And no result is displayed. I am using this link as a sample: http://resources.arcgis.com/en/help/arcgis-rest-api/#/User/02r3000000m2000000/
... View more
03-20-2017
12:10 PM
|
1
|
0
|
831
|
|
POST
|
Hello everyone, I am testing the following Rest Group Api: http://[my organization].arcgis.com/sharing/rest/community/groups/[my group ID] It does not return any data. What is missing? It returns the screen attached: ArcGIS Portal Directory API Reference
... View more
03-20-2017
11:37 AM
|
0
|
0
|
742
|
|
POST
|
Hello everyone, I am using an AGOL [my organization].maps.arcgis.com , where can I find the Application ID? I want to test this sample: https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_popup.html Thanks
... View more
03-20-2017
10:51 AM
|
0
|
1
|
3984
|
|
POST
|
Hello everyone, How can I check if the current user belongs to a specific group in WAP. I need to change some editable fields to read only for a group and allow editions for another group. I was thinking of changing the source code in the Edit Widget checking the editor's group. Scope: For regular users the field is not editable, and populated with a default value. For administrators, the field is editable. Any ideas on how to implement this functionality? Thanks
... View more
03-16-2017
12:56 PM
|
0
|
1
|
1235
|
|
POST
|
Hello everyone, All tests are done inside the development server, opening IE or Google Chrome. Using AGOL I created an ArcGIS Online Application under MyContent, option "Add Item" --> "An Application" for testing purposes I filled the section "Web Mapping Application Settings" with 2 different url. - http://localhost/[AGOLwebApplication] , this format works - http://[developement server]/[AGOLwebApplication], this format fails Then I went to Overview, View Application to open the application. When AGOL opens the Application, two scenarios: - it opens http://localhost/[AGOLwebApplication], It shows a popup window "Please sign in to continue". We I select "OK" it works!!! - it opens http://[developement server]/[AGOLwebApplication] . In this case it shows a popup window "Please sign in to continue". We I select "OK" the popup returns an error message "ArcGIS Portal Directory ... Invalid redirect_uri". This is the URL with error: https://mdc.maps.arcgis.com/sharing/oauth2/authorize?client_id=zhTXYHod2BqMxg1X&response_type=token&state=%7B%22portalUrl%22%3A%22http%3A%2F%2Fmdc.maps.arcgis.com%22%7D&expiration=20160&redirect_uri=http%3A%2F%2Fs096v115%2FMyAPP%2Fjimu.js%2Foauth-callback.html
... View more
03-16-2017
11:11 AM
|
0
|
2
|
4247
|
|
POST
|
Hello everyone, I am getting the following error when clicking on login on the deployment server, when I open the web application from my desktop in IE or Google Chrome. It works fine if I open the web application directly on the server. I assume that it is a permissions issue. Failed to load resource: the server responded with a status of 404 (Not Found) main.js?wab_dv=2.2:173 jimu.js init... http://[server]/[application]/widgets/WASDTools/manifest.json?wab_dv=2.2 Failed to load resource: the server responded with a status of 404 (Not Found) ConfigLoader.js?wab_dv=2.2:833 Widget is removed because it is not loaded successfully. widgets/WASDTools/Widget (anonymous) @ ConfigLoader.js?wab_dv=2.2:833 ConfigManager.js?wab_dv=2.2:127 Lo
... View more
03-15-2017
12:04 PM
|
0
|
0
|
985
|
|
POST
|
Hello everyone, How can I check if an user id belongs to an AGOL group? Is there a way to change a field from editable to non editable at run-time following the user id's group. Thanks
... View more
03-13-2017
12:42 PM
|
0
|
0
|
583
|
|
POST
|
Thanks Robert, I use feature layers linked to local SDE feature services in my WBA, not feature hosted layers, this is why I was not able to see this options. Thanks.
... View more
03-13-2017
11:33 AM
|
0
|
0
|
1093
|
|
POST
|
Hello everyone, Where can I find these options to configure editor permission on feature services? Is it done in ArcGIS Server or AGOL? Do I need a specific version of ArcGIS Server? What kind of editing is allowed? Add, update, and delete featuresOnly update feature attributesOnly add new features What features can editors see? Editors can see all featuresEditors can only see their own features (requires tracking)Editors can't see any features, even those they add What features can editors edit? Editors can edit all featuresEditors can only edit their own features (requires tracking) What access do anonymous editors (not signed in) have? The same as signed in editorsOnly add new features, if allowed above (requires tracking)
... View more
03-13-2017
11:09 AM
|
0
|
2
|
1815
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 05-01-2026 12:34 PM | |
| 1 | 12-02-2022 08:17 AM | |
| 1 | 12-26-2025 05:02 AM | |
| 1 | 08-05-2025 04:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|