互联网服务商业智能

基于mdl给cube添加custom view来实现权限控制

OpenMDL "D:\hljdl\dl\我的文档\Transformer\Models\weather.mdl"ViewMake "people" Dimension "隶属关系" ViewSecurity "people" Apex "1003"CustomViewMake "people" DimensionView "隶属关系" "people"SecurityNameSpaceMake "dbAuth" SecurityNamespaceCAMID 'CAMID...显示全部

OpenMDL "D:\hljdl\dl\我的文档\Transformer\Models\weather.mdl"

ViewMake "people" Dimension "隶属关系" ViewSecurity "people" Apex "1003"

CustomViewMake "people" DimensionView "隶属关系" "people"

SecurityNameSpaceMake "dbAuth" SecurityNamespaceCAMID 'CAMID("dbAuth")'

SecurityObjectAdd 'CAMID("dbAuth:g:1003")' SecurityNamespace "dbAuth"

SecurityObjectDisplayName "people" SecurityObjectType SecurityType_Role CustomViewList "people" EndList

PowerCubeUserListUpdate Cube "weather"

StartList "people"  EndList

savemdl "D:\hljdl\dl\我的文档\Transformer\Models\weather.mdl"


我的加粗字体将g改成u权限就好使,如果我想将u改成组就不好使,请问大家给予解决

收起
参与15

查看其它 6 个回答kingwang的回答

kingwangkingwang商业智能工程师前景科技有限公司

我再来详细的说一下你这个问题:

1:首先确保你在Cognos Connection里面的用户管理里面已经成功看到了你自定义的用户空间下的group,当然你的用户认证没问题的话这一切都是顺理成章的会按照 角色-组-用户 或者 组-用户  又或者  角色-用户来显示的

2:在确保第一条正常的情况下,你可以在Transform中给这个cube添加用户视图,添加对象里面选择group,然后保存该模型为MDL的格式,然后以XML的格式查看该mdl文件,你就自然看到了基于组的mdl文件的脚本是什么格式的,然后程序按照这个格式添加权限即可

医药 · 2016-01-26
浏览838

回答者

kingwang
商业智能工程师前景科技有限公司
擅长领域: 商业智能大数据cognos

kingwang 最近回答过的问题

回答状态

  • 发布时间:2016-01-26
  • 关注会员:4 人
  • 回答浏览:838
  • X社区推广