Display multiple images from a 1 to many relationship
Hi all
I don't know if this is possible in Geocortex, but I'm guesing it should be...
ok, here's my question:
I have added a service that has images only in a 1 to many relationship, so one point may have 3 pictures. is there a way to add a token ( I can make it work for a 1 to 1 relationship) that allows you to view the multiple images in a page-like view? so to explain this more, when the piece of code is added to the 'Feature Long Description' for instance, once a point is clicked, one image appears, and the 'Details' link takes to other links each for another image.
From a user perspective, it would be better to be able to scroll across the same 'Results' window to view all available images for this feature.
Has anyone worked on something like this before? I am guessing it should be possible but can't get it to work.
Thanks guys
Ryan
0
-
Hi Ryan,
You can display a one-to-one relationship in the map tip with no problems, but it becomes more difficult with a one-to-many relationship. The most you can do in the feature description is set it up to display one of the many pictures you have attached to the feature, but it would always only display one picture.
I would suggest running a workflow instead to display your attachments. You can create a workflow that runs from the maptip and when clicked, it displays all the attachments in a display form. The Attachment Manager workflow (https://support.geocortex.com/essentialsGSCCodeGallery?sub-nav=codegall&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA4600000004EWZCA2) would also work for showing multiple attachments for a feature.
I hope this helps.
Carmen0 -
Hi Carmen
Thanks for your answer.
I guess you are right about the workflow being the last resort. To me, the problem highlighted here is in the way the dataset was built, meaning that it wasn't necessarily set for the purpose we're discussing here. I thought about going through and adding ids fields for the picture to each record, where it applies, but this is obviously a time consuming task...
I'll take the advice and try the workflow and will feed back about the results.
Kind regards
Ryan0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer