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: 31
Registered: ‎03-16-2020

Modify multiple point geometry of selected features

Hello,

 

in the desktop application, I want to modify multiple point geometry of the selected features of the map

 

I know there is a function called SC.digitize

 

SC.digitize('ASSETS', {commands: ['MODIFY'],  startOnLoad:'MODIFY'}, [{FORM.id}])

 

but it modifies one point of the form id only but I need to modify of all selected features of the map

 

is there a simple way to do this?

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

Re: Modify multiple point geometry of selected features

you have to provide the list of IDs to the digitize method. An array of IDs can be for instance collected in a formTable. 

 

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 31
Registered: ‎03-16-2020

Re: Modify multiple point geometry of selected features

[ Edited ]

Hello @sturcato,

 

Thanks for your response but can you help me with the right XML code or screenshot in workflow

 

that will help me very much Smiley Happy

Highlighted
Contributor
Posts: 31
Registered: ‎03-16-2020

Re: Modify multiple point geometry of selected features

hello @sturcato,

 

I have followed your instruction and make formtable wich select features by SESSION.MAP.MapSelection

 

but I have got this error

 

 error.PNG

 

and here is my javascript code 

 

SC.digitize('ASSETS', {commands:['MODIFY'], startOnLoad:'MODIFY'},[{SESSION.MAP.MapSelection}])

where is the wrong step?

and there is no log!!

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

Re: Modify multiple point geometry of selected features

try to use the formtable to be passed to the digitize action, I'm not sure what is the format of the session variable.

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 31
Registered: ‎03-16-2020

Re: Modify multiple point geometry of selected features

[ Edited ]

@sturcato 

I have tried to use the formtable to be passed to the digitize action and got same error!

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

Re: Modify multiple point geometry of selected features

did you check the log file?

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 31
Registered: ‎03-16-2020

Re: Modify multiple point geometry of selected features

I have checked the logs in security tap and there is nothing about this error

is there txt file store the logs?

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

Re: Modify multiple point geometry of selected features

it is the client log file, you can open it from the button on the bottom right corner of the desktop app

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 31
Registered: ‎03-16-2020

Re: Modify multiple point geometry of selected features

[ Edited ]

Hello @sturcato,

yes I found this log but I can't find where the problem

please check the attached file

and there is something else I would mention for, the EPSG in the database of the layer is 4326 but in the desktop application is 3857

is that the reason for the problem?