Monday, January 22, 2018

Based on security roles to enable or disable the buttons in a form

static void Dipl_securityrole(Args _args)
 {
      securityrole           role;
      securityuserrole    userrole;
 
       while select * from role
                 join userrole where role.recid == userrole.securityrole
                                       && role.name== 'Dipl_purchtable'
        {
           if(userrole.recid)
           {
              if(curuserid()==userrole.user)
                {
                    //attachments.enabled(false); //attachment is a form button name
                }
 
           }
           else
         {
               // attachments.enabled(true);
            }
           info(strfmt("%1,%2", role.Name,userrole.User));
        }
}

No comments:

Post a Comment

TFS Work space configuration

Refer below link:  https://d365byjp.blogspot.com/2018/10/steps-to-configure-tfsvsts-workspace-in.html