XAF之 未解决——无法显示包含nonpersistent对象的ListView
来源:互联网 发布:八陆融通网络借贷 编辑:程序博客网 时间:2024/05/16 06:23
当尝试在ListView中显示NonPersistent Obejct时,会报告objectKeyAsString参数为null,显示一个红色大叉。
查看输出如下:
15.05.12 10:50:47.201 ->GetPopupWindowParams
15.05.12 10:50:47.202 Type: DevExpress.ExpressApp.Actions.PopupWindowShowAction
15.05.12 10:50:47.203 ID: b97c96de-e2e9-4132-a5e7-46d384838773
15.05.12 10:50:47.204 Category: Unspecified
15.05.12 10:50:47.205 ContextName: User
15.05.12 10:50:47.206 IsRoot: True
15.05.12 10:50:47.207 Selection.Count: 1
15.05.12 10:50:47.208 CurrentObject: DevExpress.ExpressApp.Security.SecuritySimpleUser(544f6a52-9f48-48e2-bdf0-0b5b6025c63d)
15.05.12 10:50:47.274 --------------------------------------------------------------------------------
15.05.12 10:50:47.275 <- GetPopupWindowParams
15.05.12 10:50:48.389 ================================================================================
The error occurred:
Type: ArgumentNullException
Message: 值不能为 null。
参数名: objectKeyAsString
Data: 0 entries
Stack trace:
在 DevExpress.ExpressApp.ObjectHandleHelper.CreateObjectHandle(ITypesInfo typesInfo, Type objectType, String objectKeyAsString)
在 DevExpress.ExpressApp.ObjectSpace.GetObjectHandle(Object obj)
在 DevExpress.ExpressApp.Security.MemberOperationPermissionRequest..ctor(Object targetObject, String memberName, String operation)
在 DevExpress.ExpressApp.DataManipulationRight.HasPermissionTo(Type objectType, String memberName, Object targetObject, CollectionSourceBase collectionSource, String operation)
在 DevExpress.ExpressApp.DataManipulationRight.CanRead(Type objectType, String propertyName, Object targetObject, CollectionSourceBase collectionSource)
在 DevExpress.ExpressApp.Win.Editors.GridListEditor.gridView_CustomDrawCell(Object sender, RowCellCustomDrawEventArgs e)
在 DevExpress.XtraGrid.Views.Grid.GridView.RaiseCustomDrawCell(RowCellCustomDrawEventArgs e)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.DrawRowCell(GridViewDrawArgs e, GridCellInfo cell)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.DrawRegularRowCell(GridViewDrawArgs e, GridCellInfo ci)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.DrawRegularRow(GridViewDrawArgs e, GridDataRowInfo ri)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.DrawRow(GridViewDrawArgs e, GridRowInfo ri)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.DrawRows(GridViewDrawArgs e)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.DrawContents(GridViewDrawArgs e)
在 DevExpress.XtraGrid.Views.Grid.Drawing.GridPainter.Draw(ViewDrawArgs ee)
在 DevExpress.XtraGrid.Views.Base.BaseView.Draw(GraphicsCache e)
在 DevExpress.XtraGrid.GridControl.OnPaint(PaintEventArgs e)
在 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
在 System.Windows.Forms.Control.WmPaint(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 DevExpress.XtraEditors.Container.EditorContainer.WndProc(Message& m)
在 DevExpress.XtraGrid.GridControl.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
InnerException is null
从上面的输出可以看到,是XAF的安全机制导致的结果,所以,我尝试,将工程的安全策略取消,果然不再报错。但一个Bussiness Software不可能没有安全机制,若为了使用Nonpersistent Object而去掉自带的安全机制无疑是挖肉补疮。
这是官网上给出的解释,说明是安全机制的缘故,也印证了我的猜想。目前,只好不在View中显示NonPersistent Object
后注:已解决,见我下一篇博文。
- XAF之 未解决——无法显示包含nonpersistent对象的ListView
- XAF之显示并编辑包含nonpersistent的ListView
- XAF之在ListView中显示NonPersistent Object
- XAF之一——域对象的最佳实践
- XAF之怎样获取ListView所有的筛选条件
- XAF将ListView和DetailView一起显示
- XAF之常用的CriteriaOperator
- 9.解决ScrollView与ListView共存时ListView高度无法完全显示的问题。
- 解决ScrollView包含GridView或ListView显示不完整的问题
- ListView包含在scrollView中长度显示不出问题解决
- Android学习之解决ScrollView嵌套ListView显示的错误
- 菜鸟和老鸟都无法避免的问题——未将对象引用设置到对象的实例
- ESXi 主机的摘要选项卡报告以下错误:配置问题:XXX esx.problem.syslog.nonpersistent.formatOnHost 未找到 XXX
- XAF之数据库数据的预填充
- XAF之刷新View的方法
- XAF之ViewController的公共事件
- XAF之更丰富的状态栏
- 解决scrollview嵌入ListView或GridView首次无法显示到顶部的问题
- [SQL-码农]table join on 连接 并列数据
- [3_1_rect1] Cutting Rectangles
- [SQL-码农]老前辈留下最好的礼物CASE
- mips tlb refill的编译器设计
- google map 地图轨迹点以画带箭头的直线连接,直观轨迹记录。
- XAF之 未解决——无法显示包含nonpersistent对象的ListView
- 快速加词功能已经完成,请看演示视频
- python调试技巧
- 黑马程序员-迭代器快速失败异常问题
- poj 1979 bfs
- POJ-1373
- Word中流程图
- C++关键字(1)
- 在PL/sql 学习当中 第3章的实例