Workflow 5 how to get the feature from Geocortex Web feature context menu and pass the OBJECTID as featureids to a layer report using Run Report Activity
I try to create a workflow which can be launched from Geocortex Web Feature context menu and create a report for that feature.
I know I can use Get Workflow Inputs and access the feature using $getWorkflowInputs1.inputs.context. What should I do to get the appropriate data to be passed as Feature Ids input to the Run Report Activity?
-
The easiest way to do this is to:
- Open Web Designer
- Select the Map component
- Select the Layer Extension for the layer of interest
- Click "Add Menu Item" in the Feature Actions
- Select "Create New"
- Select "Report"
- Select one of the "- Workflow Parameterized" templates
- Complete the form
This will generate you a report based on the current layer and a workflow that collects the object IDs from the current feature and wires it all together. From here you can modify your report and workflow to suit your needs.
--Ryan
0 -
Hi Ryan, Thank you for your quick response. I am using on-premises Geocortex Web 5.8.0, Geocortex Workflow 5.16.2, and Geocortex Reporting 5.6.0. I don’t see “Create New” option on the “Add Menu Item” form. The options available to me are selecting predefined commands, workflows, and reports as shown in the screenshot. [cid:image002.jpg@01D68829.35998AE0] Is there anything I should do to have that “Create New” option available. Thanks, Michelle Michelle Wang| Senior Application Developer - GIS |• (408) 918-2906 | • michelle.wang01@tss.sccgov.org County of Santa Clara, Technology Services and Solutions [tss-email-signature-logo-rgb] NOTICE: This email message and/or its attachments may contain information that is confidential or restricted. It is intended only for the individuals named as recipients in the message. If you are NOT an authorized recipient, you are prohibited from using, delivering, distributing, printing, copying, or disclosing the message or content to others and must delete the message from your computer. If you have received this message in error, please notify the sender by return email. 0 -
Same issue. I do no have the "Create New" option as well. What is the solution?
0 -
@Oh, Jenny
The OG comment here just has the order mixed up. Fix below:
- Open Web Designer
- Select the Map component
- Select the Layer Extension for the layer of interest
- Click "Add Menu Item" in the Feature Actions
- Select "Reports"
- Select "Create a new report" at the bottom of the pop up
- View drop down for the 'Select a Report Template' and choose a "- Workflow Parameterized" templates
- Complete the form
0 -
@... I am on the latest version of Web (5.26) and Reporting (5.21.2) and do not have the option to Create a new report. I do have Create a new workflow on the workflow tab. How do I get access to these templates?
0 -
Web designer only offers this option it can find Reporting at a relative URL like ../../reporting/. If reporting is on a different server or is hosted under a different virtual path this check will fail and you won't see the option.
0 -
That would explain it, thanks. Is the virtual directory something I can just change in the post-installer without breaking anything? I haven't really used Printing and Reporting yet, but they were installed at Vertigisstudio instead of Geocortex like Web and Workflow.
0 -
Yes, it can be changed via the post installer. However, this would be a breaking change for all existing print/report template items that you (or any other users) have created. Each print/report item gets stamped with the URL of the printing/reporting application. In your case where there aren't many/any existing templates it should be fine. If there are some that you'd like to keep, you can just open each print/report template item in ArcGIS Online/Portal and edit its URL property to have the updated URL.
0 -
Great, thanks Ryan!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
9 Kommentare