I've got a form that is bound to several tables, and it seems to save fine, until I set one specific value.
This one value is calculated based on the value to two other fields in the component, so when one field gets changed, I have an XBasic function set the new value. But as soon as that happens, I can no longer save the form, and my POST request receive this response:
A5DotNetReentry.XBasicErrorException: Variable already typed
Internal Error 500
Error setting variable name: _state.__args_n_enumber (__args_n_enumber)
System.ApplicationException: Error setting variable name: _state.__args_n_enumber (__args_n_enumber) ---> A5DotNetReentry.XBasicErrorException: Variable already typed
at A5DotNetReentry.XBasicObject.SetMember(String Name, Object Value)
at A5IISManagedPlugin.A5WWorker.AddRequestVariablesToVariableFrame(IEnumerable`1 NameValues, XBasicObject Frame, XBasicSession Session)
--- End of inner exception stack trace ---
at A5IISManagedPlugin.A5WWorker.AddRequestVariablesToVariableFrame(IEnumerable`1 NameValues, XBasicObject Frame, XBasicSession Session)
at A5IISManagedPlugin.A5WWorker.ExecuteEvaluateA5W(String PageDirectory, String PageName, String PageContents, HttpContext Context, HttpResponse Response, HttpRequest Request)
at A5IISManagedPlugin.A5WWorker.ExecuteRequestImpl()
What is happening here? And how can I fix it?
This one value is calculated based on the value to two other fields in the component, so when one field gets changed, I have an XBasic function set the new value. But as soon as that happens, I can no longer save the form, and my POST request receive this response:
A5DotNetReentry.XBasicErrorException: Variable already typed
Internal Error 500
Error setting variable name: _state.__args_n_enumber (__args_n_enumber)
System.ApplicationException: Error setting variable name: _state.__args_n_enumber (__args_n_enumber) ---> A5DotNetReentry.XBasicErrorException: Variable already typed
at A5DotNetReentry.XBasicObject.SetMember(String Name, Object Value)
at A5IISManagedPlugin.A5WWorker.AddRequestVariablesToVariableFrame(IEnumerable`1 NameValues, XBasicObject Frame, XBasicSession Session)
--- End of inner exception stack trace ---
at A5IISManagedPlugin.A5WWorker.AddRequestVariablesToVariableFrame(IEnumerable`1 NameValues, XBasicObject Frame, XBasicSession Session)
at A5IISManagedPlugin.A5WWorker.ExecuteEvaluateA5W(String PageDirectory, String PageName, String PageContents, HttpContext Context, HttpResponse Response, HttpRequest Request)
at A5IISManagedPlugin.A5WWorker.ExecuteRequestImpl()
What is happening here? And how can I fix it?
Comment