Skip to main content

Print Templates - Showing Imagery Dates

Comments

3 comments

  • Permanently deleted user

    Hi Aled,

    This is possible using Workflow.

    First, you'll have to set up an editable text field in your report. Add the text box where you'd like it to display, and set the DataField property to a value of your choosing. In Rest Manager, edit your print template and go to the Text Fields tab. Add the text box, give it a Display Name, and set it to be editable.

    In your workflow, use a GetLayerVisibility activity to get the visibility of a layer in your aerial service. Make sure that you set the Effective Visibility property to True, so that it will be True when the service is on, and False when the service is not visible. Then, if the visibility is True, query your polygon layer for the attribute that holds the date. It will not matter if this layer is visible, or even added to your site. Pass the resulting date to the TextFields property on the PrintMap activity either by adding it to a dictionary, or using the following syntax:

    New System.Collections.Generic.Dictionary(Of String, String) From { { "tb1", imageDate } }

    where imageDate is the string variable holding the value of the date, and tb1 is the display name of the Text Field that you set up in Manager. Finally, use a Display Hyperlink activity to allow the user to download the print.

    A sample workflow can be downloaded (https://support.geocortex.com/Data/Sites/1/media/forumfiles/printwithdate.zip) here.

    -Victoria

     

     

    0
  • Permanently deleted user

    Hi Victoria,

    That looks like exactly what I need. However, the issue here is that I do not have a Get Layer Visibility option. I am on 3.12, so was this option released after this? If so, is it possible to work around it by using a combination of something like the Set Layer Visiblity?

    Thanks,

    Aled

    0
  • Permanently deleted user

    Hi Aled,

    Get Layer Visibility was added in Essentials 3.13. I don't believe there is another way to get the current visibility of a layer using workflow. However, you could use a form to ask the user whether they want to include the aerial imagery in the print or not, and then use Set Layer Visibility to turn the layer on or off depending on their selection.

    Alternatively, you could have two print options in the Viewer, "Print Map" and "Print Map with Aerial Imagery", and again use Set Layer Visibility to turn on the aerial layer if they choose to print with aerial imagery.

    -Victoria

    0

Please sign in to leave a comment.