页面树结构
转至元数据结尾
转至元数据起始

(本文档仅供参考)

  V9以下版本参考如下方式实现,V9以上版本系统已内置了相关系统函数。

问题说明

          如果想根据用户所拥有的角色判断数据的使用权限,现在产品没有该函数,如何获取当前登陆用户的所属角色?

解决方案

         

         选择【增加自定义函数】,然后把CurrentUserAllRoleIDs和CurrentUserAllRoleNames直接填写进去,具体如下:

         1、【公共设置】--》【函数列表】--》【系统函数】--》【字符串】--》右键--》【增加自定义函数】:
         
        2、添加CurrentUserAllRoleIDs和CurrentUserAllRoleNames
        
        
        3、测试函数效果:
        
          
       

Viewtracker License Missing

There is a problem with the license of the Viewtracker addon. Please check if you have a valid license.

授权码细节

  • 无标签