Geocortex Essentials Manager Site Information Custom Properties
I'm trying to access the abouve properties within a workflow. I assume the code would be aproximatly along this line - Geocortex.Essentials.Client.Site.Properties("MyPropertyName")
I've added the directory location of my workflow folder as I'd like to refer to/call it in my workflow.
Thanks
0
-
Nope! If you try to stick that code into a workflow activity (as I'm sure you know) you are going to have a bad time :(. That code is trying to access site property "MyPropertyName" in the .NET codebase, not the application that's being run in the client. Which property are you looking for? 0 -
Hi Zack
Thanks for you reply.
I'm trying to access the custom properties that are created on the site information tab in the Geocortex Essentials manager.Thanks
Greg0 -
Did anybody solve this problem? I am trying the same.
Thanks,
Luuk0 -
Hi Luuk,
No sorry I was not able to find an answer to this. Perhaps others have some input here?
Regards
Greg0 -
Hi Folks,
(https://docs.geocortex.com/essentials/4.9/dev-help/Default.htm#ge/dev/custom-properties.htm) Custom properties do not have any logic associated with them, which means there is no guarantee that a viewer/api would give you access to the properties.
In Workflow, there is no way to obtain a Site property. However, there is a way to get a Layer property:
https://docs.geocortex.com/essentials/workflow/4.9/help/Default.htm#wf/help/wf_A_GetLayerProperty.htm
The Get Layer Property activity will let you obtain one of the custom properties of a Layer object. It is a <T> activity so you must know ahead of time what the object type is for that Property. I recommend sticking with String here rather than trying to encode a complex object.
Regards,
-Malcolm0 -
Copy and paste the 2 parts before and after continued together in one xaml file to recreate the workflow. Also search for the string <yoursitename> and change this to the name of your own site to make the workflow work.
Good luck.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
6 kommentarer