html5 results table events
A couple questions about configuration of html5 viewer interface. I'm interested in configuring the event mappings for the Results Table. For example, I'd like to execute a workflow when the user clicks a record in the results table. Below is the section of the json config file that controls this behaviour. Questions:
1) Is it possible to invoke a workflow here? what is the syntax? And what is the syntax to call a workflow with an argument? I'd like to use the "ResultsTableFeatureClickedEvent" event.
2) Is it possible to use field tokens here? For example, I may want to reference the objectid of the record the user clicks and pass that to my workflow as an argument.
{
"moduleName" : "Results",
"moduleType" : "geocortex.essentialsHtmlViewer.mapping.modules.results.ResultsModule",
"configuration" : {
"resultMappings" : {
"Identify" : [ "ShowResultsList" ],
"MapTip" : [ "ShowResultsList" ],
"Workflow" : [ "ShowResultsList" ],
"Search" : [ "ShowResultsList" ]
},
"eventMappings" : {
"ResultsListFeatureClickedEvent" : [ "ShowFeatureDetails", "ZoomToFeature", "HighlightFeatureDefault" ],
"ResultsListFeaturePressedEvent" : [ "ShowFeatureDetails", "ZoomToFeature", "HighlightFeatureDefault" ],
"ResultsTableFeatureClickedEvent" : [ "ZoomToFeature", "HighlightFeatureDefault" ],
"ResultsTableFeaturePressedEvent" : [ "ZoomToFeature", "HighlightFeatureDefault" ]
}
}
-
Folks-
I have the same type question. using the html5 viewer how to i right click on a record in a table and popup a context menu with a list of actions to take such as get selected or run a workflow? i have a few apps that the user right clicks on a record in the results table and runs a workflow based on that record. does anyone have an html5 syntax example of invoking a workflow from a right click on a record in a results table or from the maptip popup? This was am identified gap in our silverlight to html5 transition. Jeff
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar