|
POST
|
The subtle thing here is: Red Company is already logged in to Red Company's Enterprise Portal - they want to stay logged in here, they don't want to explicitly log into Blue Company's AGOL Portal (they need to see all Red Company's assets and see the collaboration assets via Blue Company) - but Pro forces the user to key in the credentials for that Online Portal if they want to actually add the data into the map (a little dialog window appears asking for credentials). This is not a good UX. I need this to be a slick single sign on process - i.e so the user doesn't have to remember credentials for Blue Company but can stay logged into their active Enterprise Portal at all times i.e. no switching of active portals.
... View more
01-21-2021
08:42 AM
|
0
|
0
|
3591
|
|
POST
|
Hi Here is the scenario (I have written it as a basic story just to make it easier to envisage the problem): We have some content stored in our company AGOL account (lets call this company Blue Company Ltd) , in a group with permissions given to it with the following credentials: FooUser FooSecretPassword Another company (called Red Company Ltd) - would really like to see this data in Blue Company's AGOL via their Enterprise Portal by using a collaboration. Both companies agree the collaboration and everything is sweet. Blue Company also says, use this add-in to add our data in from our AGOL, it's got lots of nice tools to allow you to search for data and other exciting things. A user in Red Company, called Billy, opens Pro and signs into Red Company enterprise portal, he also uses the add-in provided by Blue Company - he can see the data that is shared by Blue Company in the add-in and he tries to add it to the map. :pouting_face: Now Billy is mad, because when he tries to add the data, it prompts him for credentials for AGOL that only Blue Company knows about and they forgot to tell him and they didn't realise that they missed out that whole bit of functionality anyway! How embarrassing! Billy complains to Blue Company about this and the developers frantically try to find in a solution to Billy's problem. ....so there are 2 main questions: 1. In the Pro SDK can you code in the credentials before you try to add data into the map (from a group in AGOL which is shared in a collaboration)? This would be nice, in order to save the user having to remember the credentials every time they want to add data/use the add-in, especially if its been a while between sessions (I appreciate there is some long lived token here or something). 2. The credentials that you are prompted for are stored in Pro somewhere, in a token or cookie or something, and I have no idea how to reset that. I would like to test my code as if the user has used the add-in for the first time and is trying to add data also for the first time. How can I do this? Code example The following is where I envisage any credential info going (perhaps?) when I try to add data from portal: public static async Task AddLayer(string layerId) { FeatureLayer featureLayer = null; Item testLayer = ItemFactory.Instance.Create(layerId, ItemFactory.ItemType.PortalItem); await QueuedTask.Run(() =>{ if (LayerFactory.Instance.CanCreateLayerFrom(testLayer)) { featureLayer = LayerFactory.Instance.CreateLayer(testLayer, MapView.Active.Map, 0) as FeatureLayer; } else { log.Error($"Failed to add layer {layerId}"); } }); return featureLayer; }
... View more
01-21-2021
07:16 AM
|
1
|
12
|
4432
|
|
POST
|
Hi, I have trawled through the documentation and I cannot for the life of me find how to set the min and max values when you wat to use esriRasterStretch_PercentMinimumMaximum. Has this not been exposed in API? If it can't be done that's as much an answer as a positive response - as I don't want to spend any more time on this, as I have lost valuable time already (on what seems a lost cause). I'm looking at ESRI staff here to possibly help out here, as I suspect this kind of niche. This was already asked on GIS Stack Exchange - but turned up a blank: https://gis.stackexchange.com/questions/57651/how-to-set-min-and-max-value-for-stretchtype-esrirasterstretch-percentminimumma
... View more
11-30-2020
12:06 PM
|
1
|
0
|
456
|
|
POST
|
Hi, Can someone from ESRI just give me an idea where to go with this - it would be much appreciated.
... View more
10-15-2020
03:50 AM
|
0
|
0
|
1198
|
|
POST
|
Is there a sure fire way to discern whether the users logged in portal is enterprise or AGOL? I thought about a string test against portalInfo.OrganizationId == "0123456789ABCDEF" which I believe is always Enterprise - but could this value ever change and as a result break my test? Or there is portalInfo.PortalName which returns "ArcGIS Enterprise" - but could this be changed too? Anyway if there is someone who knows more than me, I'm all ears Simon.
... View more
10-13-2020
04:09 AM
|
0
|
3
|
1249
|
|
POST
|
Thats really excellent news - and thank you for getting back to me. It's really appreciated.
... View more
07-28-2020
03:30 AM
|
0
|
0
|
2113
|
|
POST
|
Hi Steve, You say the issue looks like it's "know" - do you have a NIM number for this bug - and any idea when it will be fixed? The NIM number would be good for us to track at the very least. Cheers Simon.
... View more
07-20-2020
07:36 AM
|
0
|
0
|
1835
|
|
POST
|
Yes - I seem to be getting duplicates still - but the count is almost complete. In order to get a complete set I have to re-issue the query request multiple times. The following is list of the amount of re-queries required to get a full result set. Each row is a new session of Pro: 2 queries 3 queries 2 queries 2 queries 1 - first complete result set! 5 - queries 2 - queries So 1 in 7 attempts I managed to get a full result set back without duplicates. Hope that makes sense - I could do more more tests - but I think the trend is obvious.
... View more
07-16-2020
05:08 AM
|
0
|
0
|
1835
|
|
POST
|
It gave almost full unique results - but it took 3 goes. 1699/1700 1698/1700 1700/1700 I don't have that much confidence this is going to work 100% of the time really.
... View more
07-15-2020
03:19 PM
|
0
|
2
|
1835
|
|
POST
|
Good to know it can be reproduced. I have been speaking to a colleague - we thought it may be something to do with ordering the paging? It's not. I'm out of ideas thats for sure.
... View more
07-15-2020
12:29 AM
|
0
|
5
|
1835
|
|
POST
|
This is an urgent request for help as I am trying to release my addin in the next week. I am absolutely pulling my hair out with the seemingly random results and duplicate entities from from AGOL (ArcGIS Online). I have 1700 layer files published in our ArcGIS Online account. There are no duplicates of our layer files when I look in AGOL. I query for them using the following code: var query = PortalQueryParameters.CreateForItemsOfTypes(new List<PortalItemType>() { PortalItemType.Layer }, "", PortalUtils.GroupID, "");
var portalItems = new List<PortalItem>();
while (query != null)
{
//run the search
PortalQueryResultSet<PortalItem> results = await portal.SearchForContentAsync(query);
portalItems.AddRange(results.Results);
query = results.NextQueryParameters;
}
foreach (var pi in portalItems)
{
//Do something with the portal items
System.Diagnostics.Debug.WriteLine($"{pi.Id}, {pi.Name}");
} When I look at the debug output above - I get 1700 results back, which on the face of it seems correct, but when I look closely at the results (I have code to look for dupes) there appears to be some objects that have duplicate item ID's and of course names. Not only this - it's NOT THE SAME DUPLICATES EVERY TIME I QUERY! They are different in the number of duplicates and the actual layers that are duplicated. I have also manually looked at the names and sorted the results in Excel - so I know for sure duplicates are occurring - if nothing else it appears in my UI ultimately - hence why I am trying to debug and get to the bottom of this problem. I am at a loss as to what to do here. I cannot understand it at all and it's making me pretty nervous. If you can help I would really appreciate it.
... View more
07-14-2020
12:56 PM
|
0
|
7
|
1935
|
|
POST
|
Just so you know, I tried the dockwith with my own dockpane ids - between two dockpanes so they would dock with each other and vice-versa - but that did not work.
... View more
06-09-2020
05:57 AM
|
0
|
0
|
1416
|
|
POST
|
but I have no way of knowing which dockpane I should dock with - there a 5 dockpanes so any of those could dock with any other of those if you see what I mean.
... View more
06-08-2020
12:04 PM
|
0
|
0
|
1416
|
|
POST
|
Hi, I have 5 dockpanes that I have made that I want to dock together (if more than one is visible), is this possible? I know you can dock with ESRI dockpanes - but what about your own dockpanes? Also can you dock the first dockpane (that's made visible) to dock at the bottom of a MapPane? Not the whole of the bottom of the Pro application? Kind regards
... View more
06-08-2020
08:10 AM
|
0
|
3
|
1482
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 12-18-2023 10:11 AM | |
| 1 | 08-22-2025 02:27 AM | |
| 2 | 12-19-2023 01:36 AM | |
| 1 | 12-21-2023 04:02 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|