M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Contributor
Posts: 33
Registered: ‎02-02-2018
Accepted Solution

Activate a form by clicking on a vector

Good Day Community,

 

Is it possible to execute a workflow by clicking on a vector?

 

before_active_click.JPG

after_click.JPG

form.JPG

 

I would ultimately like to be able to assign values to a certain vector and it should 'fit', 'select' and 'activate' the specific vector i clicked on. As you can see in the examaple above i clicked on polygon number 30 and would like to start the form on that specific id.

 

Any help or guidance on this matter would be greatly appreciated.

 

Thanx,

Hannes 

Highlighted
Staff
Posts: 1,088
Registered: ‎10-18-2015

Re: Activate a form by clicking on a vector

Hi Annes,

 

you can define the action in the "feature" context in your actionset definition. The action will be available using a right click on the selected feature. You can limit the availability of this action setting min and max selection to 1 (with more than one feature or no features selected the action will not be displayed). 

 

Capture.PNG

 

Please refer to the documentation for additional details.

HTH,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 33
Registered: ‎02-02-2018

Re: Activate a form by clicking on a vector

Thank you very much Stefano for responding so quickly.

 

This is exactly the answer i was looking for.  

 

Thank you,

Hannes

Highlighted
Contributor
Posts: 33
Registered: ‎02-02-2018

Re: Activate a form by clicking on a vector

Hey Stefano,

 

I have a follow-up question.

 

Can you select multiple vectors in the active layer and run an actionset you mentioned which only filters through the vectors you set active? It will act like a where statement, but only where the vectors are active.

 

multiple_selections.JPG

 

 

sql_statement_click.JPG

 

This is the output i would like. 

 

list.JPG

 

Thank you,

Hannes

 

 

Highlighted
Staff
Posts: 1,088
Registered: ‎10-18-2015

Re: Activate a form by clicking on a vector

Hi Hannes,

 

in the list filter property should be enough to set something like 

 

gid in ({SESSION.Map.MapSelection})

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 33
Registered: ‎02-02-2018

Re: Activate a form by clicking on a vector

Fantastic! It works great.

 

Thank you very much Stefano.

 

Kind Regards,

Hannes