Building a list of items
Workflowers.
Pardon my ignorance if this is an easy one to answer, but I'm seeking advice on building a combo or list box of values that have no relation to a map service. For example I need to present a list of scales to the user, and or a list of map templates from which to choose. Is there an easy way to create an ad-hoc/pre-canned list to the user without having to hit a map service end point and subsequent query?
regards
Gareth
-
Here are a couple ideas:
You can build one by adding values.
or you could build a configuration table and add it to a map service. The configuration table would hold lists of items that you want to use in your workflows. So your fields would be SCALES, TEMPLATES, ETC. You would query the table Where Templates <> Null.
0 -
Here's (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&id=9066000000008o9AAA) another thread that might provide some insight on getting values from tables that are in the map service.
0 -
You can add the values in the form designer as mentioned by Sonia, but you can also "inject" the values into the form by using the "Input Data" section of the Display Form activity.
For every ListBox or ComboBox in the form, there will be a matching input argument that allows you to assign a list of DataItems. How you assemble this list is up to you, but it could come form a database, another activity, a geocode result, a geoprocess, etc.
For a good example look at the MailingReport workflow. It shows how the geocode results are converted and passed in to the form to display in a ListBox.
Cheers,
Chris.
0 -
Thank you Sonia and Chris,
I'm trying to avoid the use of a published service altogether, so ideally I would add the data manually - there aren't really a lot of values that warrant setting up and maintaining a map service or two that would need to be rolled out across our dev/uat/prod environs...
I've seen the mailing report and looked at how the values are passed in to the listbox - that bit made sense,and a great way to populate the list. I'm just after something very simple.
cheers again
Gareth
0 -
This could be interesting too..
(https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&id=9066000000008o9AAA) using query layers in ArcMap
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer