10-22-2018 04:21 PM - edited 10-22-2018 05:48 PM
Hi,
I finally could display my form correctly but the save action is not working properly. It occurs 'Object reference not set to an instance of an object'. Altough, if I Edit a record will go back to the overview panel without error but it wont commit any modification.
I'm working with GMSC2015 and my form design is the following::
<Form name="EnquireForm" table="MY_TABLE" idfield="H_id">
<FormGeometry name="Geometry_SPA" layer="2" />
<FormTab name="EnquireTab" label="Details">
<FormGroup name="EnquireGroup" label="Enquire Details">
<FormField name="H_id" datatype="number" visible="hidden" />
<FormField name="FirstName" visible="form" />
<FormField name="LastName" visible="form" />
<FormField name="Comments" type="textarea" visible="form" />
</FormGroup>
<FormGroup name="MapGroup" label="Public Maps">
<FormMapViewer name="MapViewer" label=" " baseurl="http://servername/GMSC/Public/" site="GMSCTEST" project="MyProject">
<FormAction name="SetEnquire" label="Set Enquire Position" action="SCRIPT[IG.getItemById('MapViewer').activatePointDraw()]" image="ig-icon-new"/>
</FormMapViewer>
</FormGroup>
</FormTab>
<FormAction name="Save" action="SCRIPT[IG.getItemById('MapViewer').saveGeometry().done(function(){IG.navigate();})]" visible="form" ></FormAction>
<FormAction name="Cancel" label="Cancel" action="abort" visible="form" />
</Form>
Cancel action is not working as well.. Am I missing something here?
(by the way is the tutorial of 'Standalone Workflows and Public Maps in GeoMedia Smart Client 2015' .webf file available for download?)
Unexpected Error
Exception | A public action method 'SaveGeometry' was not found on controller 'Intergraph.Emea.Workflows.Extensions.GeometryController'. |
Controller | Geometry |
Action | SaveGeometry |
StackTrace | at System.Web.Mvc.Controller.HandleUnknownAction(String actionName) at System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) |
And for Cancel:
Unexpected Error
Exception | A public action method 'abort' was not found on controller 'Intergraph.Emea.Workflows.FormController'. |
Controller | Form |
Action | abort |
StackTrace | at System.Web.Mvc.Controller.HandleUnknownAction(String actionName) at System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) |
Thank you.
PS: Please remove the duplicated post as it is on a wrong discussion.
10-22-2018 03:06 PM
Hi,
I finally could display my form correctly but the save action is not working properly. It occurs 'Object reference not set to an instance of an object'. Altough, if I Edit a record will go back to the overview panel without error but it wont commit any modification.
I'm working with GMSC2015 and my form design is the following::
<Form name="EnquireForm" table="MY_TABLE" idfield="H_id">
<FormGeometry name="Geometry_SPA" layer="2" />
<FormTab name="EnquireTab" label="Details">
<FormGroup name="EnquireGroup" label="Enquire Details">
<FormField name="H_id" datatype="number" visible="hidden" />
<FormField name="FirstName" visible="form" />
<FormField name="LastName" visible="form" />
<FormField name="Comments" type="textarea" visible="form" />
</FormGroup>
<FormGroup name="MapGroup" label="Public Maps">
<FormMapViewer name="MapViewer" label=" " baseurl="http://servername/GMSC/Public/" site="GMSCTEST" project="MyProject">
<FormAction name="SetEnquire" label="Set Enquire Position" action="SCRIPT[IG.getItemById('MapViewer').activatePointDraw()]" image="ig-icon-new"/>
</FormMapViewer>
</FormGroup>
</FormTab>
<FormAction name="Save" action="SCRIPT[IG.getItemById('MapViewer').saveGeometry().done(function(){IG.navigate();})]" visible="form" ></FormAction>
<FormAction name="Cancel" label="Cancel" action="abort" visible="form" />
</Form>
Cancel action is not working as well.. Am I missing something here?
(by the way is the tutorial of 'Standalone Workflows and Public Maps in GeoMedia Smart Client 2015' .webf file avaiable for download?)
Thank you.
10-23-2018 12:01 AM
Hi,
I have attached the workflow definition.
You should upgrade your GMSC version, I remember there was a bug with Sql Server databases if I'm not mistaken.
Stefano