Hi,
I have implemented a TypeConverter for a CompoundKeyStruct to display the selection column as specified in https://www.devexpress.com/Support/Center/Question/Details/Q368086 and http://msdn.microsoft.com/en-us/library/ayybcxe5.aspx.
But, when I click on a row to display a detail view in view mode, I have this error:
The error occurred:
Type: InvalidOperationException
Message: An error with number 1007 has occurred.
Error message: Unable to execute disabled or inactive action ListViewShowObject. Disable reasons: Requires a single object selected, inactive reasons:
Data: 0 entries
Stack trace:
at DevExpress.ExpressApp.Actions.ActionBase.ExecuteCore(Delegate handler, ActionBaseEventArgs eventArgs)
at DevExpress.ExpressApp.Actions.SimpleAction.DoExecute()
at DevExpress.ExpressApp.Web.Editors.ListEditorContextMenuBase`1.ProcessAction(ActionBase action)
at DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.ProcessCommand(String args)
at DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.ProcessCustomCallback(String parameters)
at DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridViewContextMenu.DevExpress.ExpressApp.Web.Templates.IXafCallbackHandler.ProcessAction(String parameter)
at DevExpress.ExpressApp.Web.Templates.XafCallbackManager.ProcessAction(String parameter)
at DevExpress.ExpressApp.Web.Templates.XafCallbackManager.callbackControl_Callback(Object source, CallbackEventArgs e)
at DevExpress.Web.ASPxCallback.ASPxCallback.OnCallback(CallbackEventArgs e)
at DevExpress.Web.ASPxCallback.ASPxCallback.RaiseCallbackEvent(String eventArgument)
at DevExpress.Web.ASPxClasses.ASPxWebControl.System.Web.UI.ICallbackEventHandler.RaiseCallbackEvent(String eventArgument)
InnerException is null
Why?
I hope you can help me with this issue.
Thanks,
Rossano
Hi Rossano.
Thank you for contacting us. First, I should mention that support for composite keys in XAF is quite limited. Even the suggestion given in ticket Q368086 is not an ultimate solution. For example, it is impossible to restore a composite key from a string using a type converter if the key structure contain a persistent reference. Would you please provide us with a small sample project demonstrating your scenario? We will research it and do our best to find a solution.
Hi Michael,
in attachment an example of a solution that has the problem described above.
I hope you can help me with this issue.
Thanks,
Rossano