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 
Reply
Highlighted
Regular Contributor
Posts: 170
Registered: ‎07-07-2016

Unexpected errors after pressing ENTER

Hi,

In GMSC2016 I have a simple form, containing one textField. When TextField is focused and I press ENTER button, something unexpected happens (Controller Form has raised an exception in Action Save.).

How can I block ENTER button?

 

Here's my configuration:

<Form name="NowaLokalizacjaLiniowaWgCiekuWyborCieku" label="Wybór cieku (MPHP10k)" editable="true" customscript="Wspolne.js">
<FormTab name="NewTabPage1" editable="true" visible="true">
<FormGroup name="NewGroup1" label="Wybór cieku (MPHP10k)" editable="true" visible="true">
<FormField name="filtr" label="Filtr" editable="true" visible="true" datatype="string" required="true" persisted="true" saveinsession="false" type="textfield" override="false">
</FormField>
</FormGroup>
</FormTab>
</Form>

 

Here's the error log:

03.09.2018 14:55:18 ERROR - Controller Form has raised an exception in Action Save.
Intergraph.Emea.Data.InvalidMetadataException: No identifier field specified.
at Intergraph.Emea.Data.Database.Contains(DomainObject domainObject, DbConnection connection, DbTransaction transaction)
at Intergraph.Emea.Data.Database.Contains[T](T value, DbConnection connection, DbTransaction transaction)
at Intergraph.Emea.Data.Database.InsertOrUpdate[T](T value, DbConnection connection, DbTransaction transaction)
at Intergraph.Emea.Data.DatabaseContext.InsertOrUpdate[T](T value)
at Intergraph.Emea.Workflows.FormController.Save(DomainObject domainObject)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.<BeginInvokeAction>b__1c()
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult)