Snippets

Jakub Hettler Update GEOMETRY to NULL and refresh features

Created by Jakub Hettler last modified

This formAction

  1. calls the trigger setGeomToNullActionTrigger
  2. shows the IG.notify message after the trigger is succesfully finished
  3. reloads defined features after the trigger is succesfully finished
<FormAction name="fmaSetGeomToNull" action="SCRIPT[IG.trigger({triggerNames:['setGeomToNullActionTrigger'], urlParams:{geometryId:{FORM.ID}}}).done(function () {
    IG.notify('Geometry has been set to NULL', {fadeOut: false, delay:10000, hidePrevious: true}).show();
    IG.reloadFeatures([201,202]);
})]" 
/>

Workflow trigger

<WorkflowTrigger name="setGeomToNullActionTrigger" type="SqlTrigger" method="action">
    <Param name="Sql" value="UPDATE TABLE set GEOMETRY = null where ID = {REQUESTCONTEXT.geometryId}"/>
</WorkflowTrigger>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.