Wednesday 15 October 2014

Create Security Roles Using X++

There is times when we need to create security roles in a good number particularly to deal with workflow. The below code would do the job just well.

static void InsertSecurityRoles(Args _args)
{
SecurityRole role;
;
 ttsBegin;
  
        select forUpdate role;
        role.Name='SEC_Group'; 
        role.AOTName='SEC_Group'; 
        role.description='Description of the security role'; 
        role.insert();
 ttsCommit;

info("Groups Created");
}

2 comments:

  1. Best No Deposit Bonus Codes in India - Herzamanindir.com
    5 steps1.Visit the official website of No herzamanindir Deposit India.
    Benefits of using a no deposit bonus.
    Benefits of https://octcasino.com/ using a no deposit bonus.
    Benefits of 출장샵 using a no deposit bonus.
    Online Sincere Accessory domain casino-roll.com www.online-bookmakers.info https://febcasino.com/review/merit-casino/

    ReplyDelete
  2. Insurance is a facet wager protecting you against the chance that the dealer has a blackjack. If the dealer's "up card" is an Ace, you could make a further wager generally known as|often known as} Insurance. If the dealer does have a Blackjack, your unique wager loses and the insurance coverage is paid 2 to 1. If the dealer doesn't have a Blackjack, he takes the insurance coverage wager and the game continues as normal. https://casino.edu.kg/%EC%A0%95%EC%B9%B4%EC%A7%80%EB%85%B8.html A "push" happens when each you and the dealer have the SAME complete value of all playing cards.

    ReplyDelete