Follow along by setting up the Geocortex Mobile SDK and editing the minimal layout and app config provided.
If you just need to make a small change to the layout and app config of an existing application, you can download the config and layout files for the application, tweak them, and then re-upload them.
The following example demonstrates changing the
onFeatureDelete property of the
<feature-details> component. The default value of this property is the command chain,
We are going to extend this behavior to add a notification that says "Feature has been deleted". The
onFeatureDelete property is not available to edit through the Geocortex Mobile Designer, but can be edited through the use of app config.
First, let's create a basic map with a feature details component using the layout and app config.
- App Config
Next, configure the
onFeatureDetails property of the feature details component to replicate the default behavior. You can test this behavior out by deleting a fire hydrant feature from the map.
Finally, add a
ui.display-notification command after the existing command that displays the message "Feature has been deleted".
- App Config
Congratulations! You just changed the default behavior for a built in component using config. All components can be configured through the app config JSON in this manner.
Check out the relevant Geocortex Mobile SDK Samples:
Geocortex Mobile comes with many built-in commands and operations to help you accomplish your goal. If these are not enough, Geocortex Workflow can help you implement custom behaviors without writing custom code. If you cannot create the behavior you want with Geocortex Workflow, it might be time to look into using the Geocortex Mobile SDK to implement a custom command or operation.
Commands and Operations
Learn more about commands and operations
Change Geocortex Mobile's Default Map Click Behavior
Learn how to Geocortex Workflow to override Geocortex Mobile's default map click behavior
Learn more about Geocortex Workflow
Commands, Operations, and Events API
Check out the available commands and operations