Search Tables in a Workflow
Hi, I'm creating a form to search and display records from a Search Table. It is on a secured site using arcgis portal authentication. I can use the global search to get the records but having trouble accessing the search table via the SearchTableParameterQuery. I get a user access error so something is wrong with my token.
How do I get a token to access the Search Table? Have tried to use the same one I use to access a secured map service that has the data link connection and no dice. Seems like I need the token to access the site, not the service...
Thanks!
David
0
-
Hi David,
Try the GetRequestInfo activity, and using the token property from the resulting variable (eg, requestInfo1.token). That will get you an Essentials token. A search table is an Essentials REST endpoint, so that's usually the token that it needs.0 -
Thanks Amanda that did the trick to get the token for the Search Table. Having trouble displaying the results properly now!
I have the results from the SearchTableParameterQuery in a featureset and am using the featureset in a SelectFeatures activity. I can display the Search Table record but when I click on the details of the result I don't see the related parent record at the bottom like when I use the Global Search. Maybe I'm not selecting the correct Layer? Tried several combos...
David0 -
Hi David,
Unfortunately when you provide map service/layer information to the SelectFeatures activity, it only looks for matching layers or map services. It won't be able to match your results to a search table or data link (and therfore link it back to the related layer).
Something like that might be possible if you were using an ArcGIS Server table (with a relationship to the layer) instead of a search table, because then the table could have its own map service id/layer id in the site.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare