Resumen
Crowdsource Polling is useful in submitting comments or feedback on plans, events or proposals. The app also allows voting, and stores the quantity of submitted votes through the web application. The Vote button must be displayed in Crowdsource Polling through the hosted feature layer published using ArcGIS Pro as the Vote button is not available by default in the web application.
This article provides instructions to configure the Vote button for Crowdsource Polling using ArcGIS Pro.
Procedimiento
- In ArcGIS Pro, create a new file geodatabase to store the data required for the workflow.
- Create a new feature class in the file geodatabase created in Step 1, and drag the feature class to the Catalog pane. In this example, a point feature class is created.
- Add features to the feature class. In this example, point features are added to the point feature class.
- Click the Edit tab, and click Create.
- In the Create Features pane, under Templates, click the point feature class drop-down list, and select the Point icon.
- Hover the cursor on the map, and click any part of the map to add the point features.
- Use the Create Table (Data Management) tool to create a new table in the file geodatabase created in Step 1, and drag the table to the Catalog pane.
- Use the Add Global IDs tool to add a global ID field to the feature class created in Step 2. Select the feature class created in Step 2 for Input Datasets, and click Run.
- Add a new field with the Short or Long field type to the attribute table of the feature class created in Step 2.
- Right-click the feature class, and click Attribute Table.
- Click the Add Field icon to add a new Short or Long field to the attribute table.
- Type Vote for Field Name .
- Select Short or Long from the Data Type drop-down list.
- Click the Save icon to save the new field.
- Add a new field with the Guid field type to the table created in Step 2.
- Right-click the feature class, and click Attribute Table.
- Click the Add Field icon to add a new Guid field to the table.
- Type Guid for Field Name.
- Select Guid from the Data Type drop-down list.
- Click the Save icon to save the new field.
- Use the Create Relationship Class tool to create a relationship class between the feature class created in Step 2 and the table created in Step 4.
- Select the feature class created in Step 2 for Origin Table.
- Select the table created in Step 4 for Destination Table.
- Specify a name for Output Relationship Class.
- Select Simple for Relationship Type.
- Select ONE_TO_MANY for Cardinality.
- Select GlobalID for Origin Primary Key.
- Select Guid for Origin Foreign Key.
- Click Run to execute the tool.
Note:
The Forward Path Label, Backward Path Label, and Message Direction parameters are automatically filled. Refer to ArcGIS Pro: Create Relationship Class (Data Management) for more information.
- Share the map as web map to ArcGIS Online.
- Log in to ArcGIS Online, and create a Crowdsource Polling web application using the hosted feature layer published in Step 9.
Note:
Ensure the Enable editing check box is checked so the hosted feature layer remains editable. Refer to ArcGIS Online: Allow others to edit for more information.
- Navigate to Content > My Content and open the hosted feature layer published in Step 9 in a new Map Viewer.
- Click Save > Save as and fill in the required details to save the web map, and click Share.
- In the Share dialog box, check the check boxes of the desired groups to share the web map with, and click CREATE A WEB APP.
- In the Create a New Web App dialog box, navigate to the Configurable Apps tab, and select Crowdsource Polling.
- In Crowdsource Polling, select the Options tab, and set the parameters as follows:
- For Polling feature layer, select the hosted feature layer published in Step 9.
- For Field storing the vote tally for each report, select Vote.
- For Field used for sorting the list of features, select Vote.
- Click Save. The Vote button is now available for the point features.
- Click Launch to run the application.