GMSC Discussions

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Regular Contributor
Posts: 197
Registered: ‎07-07-2016
Accepted Solution

NewActions vs EditActions


In gmsc2016 documentation, I've found the following description of form NewAction and EditAction


"Each form that interacts with the Smart Client needs a FormGeometry element. The name of the FormGeometry defines the geometry column name of the current entity, and the layer defines the feature name or the featureId of the feature that should be edited. Furthermore, you have to define which actions should be available in case that it is a new entry or the geometry is null (NewActions) and which actions should be available in case of an existing entry (EditActions)."


But, still I don't know what is the difference between GE_POLYGON in NewActions and in EditActions. What does it mean that "it is a new entry "? What factor decides that it is a new entry? Should some javascript code be executed for it?


<FormGeometry name="GEOMETRYCOLUMNNAME" layer="ENTITY_NAME of the feature">
<GeometryAction name="GE_NEWPOLYGON"/>
<GeometryAction name="GE_NEWPOLYGON"/>

Posts: 1,132
Registered: ‎10-18-2015

Re: NewActions vs EditActions

if the currently selected object does not have a geometry then NewActions will be available. In case there is already a geometry you should use EditActions.



Stefano Turcato
Presale Engineer
Hexagon Geospatial
Posts: 38
Registered: ‎12-14-2016

Re: NewActions vs EditActions



The decision, if the entry is new or not, is based on the ID field. If you load your form and the ID field is not taken from the database it is a new object (you can use for example emptyform=true in WorkflowSettings). If you click on a feature, open your form and the form is filled out with the information of your feature, then you'll edit the feature. SmartClient decides itself if it has to use edit or new actions.