Hexagon Geospatial
MENU

GeoMedia Smart Client

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 
Reply
Regular Contributor
Posts: 170
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">
<NewActions>
<GeometryAction name="GE_NEWPOLYGON"/>
</NewActions>
<EditActions>
<GeometryAction name="GE_NEWPOLYGON"/>
</EditActions>
</FormGeometry>

Staff
Posts: 1,036
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

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Staff
Posts: 36
Registered: ‎12-14-2016

Re: NewActions vs EditActions

Hi

 

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.

Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.