What is the syntax for a relationship replacement token in a Map Tip?
Does anybody know this? We're trying to get a field from a relationship that has been included in the realtinoship configuration of the rest manager. I tried everything that I found in the "replacement tokens" page in the API ref (https://docs.geocortex.com/essentials/4.9/admin-help/Default.htm#ge/admin/replacement-tokens.htm) and have been unsuccessful at getting anything to appear. It seems that a configured relationship should be accessable by a {realtionship.field}-type toekn but we're not getting it to work. Ideas?
0
-
Hi Zack,
This is possible to do. In the feature description or feature long description of the layer with the relationship, the token is of the type {relationship.field} as you say.
If you look at the ArcGIS Rest Endpoint of your layer, towards the bottom of the page you should see:
"Relationships:" and a list of any related tables.
So for the token, use the name of the related table as the first part of your token - i.e. {relationship.
Then for the field part, click on your related table and choose a field name from in here.
If everything is valid, then this should show a result on your viewer.
I hope this helps,
Marion.0 -
Thank you for the help Marion, but you were only 99% right! The first part of the token is the display name of the relationship, not the relationship name as seen at the AGS REST endpoint. Now, I had tried this earlier but there must have been some operator error for that test because while I would have sworn that it didn't work two days ago it is working this morning.
My fun fact for the day: I am aparently illiterate. C'est la vie!0
Please sign in to leave a comment.
Comments
2 comments