02-05-2017 07:07 PM
Hi Stefano,
I just checked the geometries as suggested. I assume STIsValid returns 0 if a geometry is not valid. If that is so, then I believe all my geometries are valid. I ordered by the IsValid function return and the list begins with 1 (no zeros).
See attached SQL script and results.
02-06-2017 12:18 AM
Hi Jonny,
are you able to insert rows in your table by script? What coordinate system is your table supposed to use? And what is the CS for the map?
Looks like a conversion issue in SQLServer...
ciao,
Stefano
02-06-2017 01:40 AM
Hey Stefano,
I have still the same error.
Best Regards,
Wim
02-06-2017 02:51 AM
sorry Wim,
I did not notice it before: can you please check you have your primary key in the form definition? I guess it is gid, you can set it as visible="hidden".
Thanks,
Stefano
02-06-2017 04:40 AM
Hey Stefano,
Yes, I have the gid in my form. It was defined as visible, but I set it to hidden now. Still the same error message :
Best Regards,
Wim
02-06-2017 05:11 AM
would be simpler if you can post the workflow configuration xml files. You can find them (FormSettings and WorkflowSettings) in
[M.App Enterprise warehouse folder]\[tenant name]\Workflows\
02-06-2017 05:20 AM
Hey Stefano,
Attached the FormSettings and WorkflowSettings as requested.
Thank you,
Wim
02-06-2017 07:07 AM
Hi Wim,
please confirm you changed the visibility for gid to "hidden" or "true", because in the form you posted is set to "false" and that means it is not part of the form during the post.
Also please change your script action in this way to provide the primary key as parameter:
SC.digitize('bagtiel', {commands: ['NEWPOLYGON']}, [{FORM.gid}])
thanks,
Stefano
02-06-2017 08:56 AM
Hey Stefano,
I changed the "Action" script, to your example. I did set the gid field back to visible=true. I get the following error:
- I don't get the possiblity to add a new geomtry. It is not possible to draw a new building.
- No error on screen. Nothing happens
- Desktop Client Log : Internal server error.
- M.App Enterprise Studio Log: Object reference not set to an instance of an object.
I have also added a video.
Thanks,
Wim
02-06-2017 09:17 AM
Hey Stefano,
Hereby also my current worflow and form settings.
Best Regards,
Wim