Hoppa till huvudinnehållet

Geocortex Essentials Manager Site Information Custom Properties

Kommentarer

6 kommentarer

  • Zack Robison
    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
  • Permanently deleted user

    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

     

    Greg
    0
  • Luuk Schaminée
    Did anybody solve this problem? I am trying the same.

     

     

    Thanks,

     

    Luuk
    0
  • Permanently deleted user
    Hi Luuk,

     

    No sorry I was not able to find an answer to this. Perhaps others have some input here?

     

    Regards

     

    Greg
    0
  • Permanently deleted user
    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,

     

    -Malcolm
    0
  • Luuk Schaminée
    Copy and paste the 2 parts before and after continued together in one xaml file to recreate the workflow. Also search for the string &lt;yoursitename&gt; 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.