Hi, Steeve.
Thanks it works. Appreciate your hints and help. However, can we retrieve 
the group info based on current logon user id in X++ coding? if that is 
possible, it should be able to solve the problem also.

Thank you ,

acooi

>From: "Steeve Gilbert" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE : [development-axapta] Permission group access
>Date: Thu, 22 Apr 2004 08:24:01 -0400
>
>You can put security key on pretty much any object in the form I think.  I 
>would try using security key first before going with some coding.  If it 
>really can't be done with the basic security key functionality here's what 
>I would do : I would suggest you to create 2 security keys (one for 
>Material and one for Sales) and then setting visibility of controls by 
>check access to the keys for the current user.
>
>SecurityKeySet swSecurityKeySet = sysSecurity::constructSecurityKeySet();
>swSecurityKeySet.loadUserRights(curUserId());
>canDo = (swSecurityKeySet.access(SecurityKeyNum(SecurityKeyName)) > 
>AccessType::View);
>
>
>Steeve...
>
>-----Message d'origine-----
>De : ooi aikchong [mailto:[EMAIL PROTECTED]
>Envoyé : 22 avril 2004 01:58
>À : [EMAIL PROTECTED]
>Objet : RE: [development-axapta] Permission group access
>
>Hi Harry.
>
>Thanks for your prompt. I have to develop the coding bcos I have a form
>which will access by Material people and also Sales people.(bcos some of 
>the
>setting for sales are based on Material setup). Both of these people are
>required to view/access their features. Therefore, I have to write a
>function to check the user(based on current logon user) to set the
>visibility of the control on the form.  Is this feasible in Axapta?
>Any idea then? Thanks.
>
>rgds,
>acooi
>
>
> >From: "Deshpande, Harry" <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: "'[EMAIL PROTECTED]'"
> ><[EMAIL PROTECTED]>
> >Subject: RE: [development-axapta] Permission group access
> >Date: Wed, 21 Apr 2004 10:37:56 +0800
> >
> >hi Acooi
> >
> >curious. Why do you want to do this thru code? Why not just set the
> >security
> >key?
> >
> >regards
> >
> >harry
> >
> >
> >-----Original Message-----
> >From: ooi aikchong [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 21, 2004 10:35 AM
> >To: [EMAIL PROTECTED]
> >Subject: [development-axapta] Permission group access
> >
> >
> >Hi all,
> >
> >I have few forms which will only allow to be accessed by a particular
> >permission group. This group has multiple users. So, my question is How 
>can
> >i control the form to be accessed by the specified group only in my code?
> >Is
> >
> >there any function in Axapta which allow me to do so? I am using Axapta 
>3.0
> >SP1.
> >
> >Urgently seeking help from u all. Thanks.
> >
> >rgds,
> >acooi
> >
> >_________________________________________________________________
> >Using a handphone prepaid card? Reload your credit online!
> >http://www.msn.com.my/reloadredir/default.asp
> ><http://www.msn.com.my/reloadredir/default.asp>
> >
> >
> >
> >   _____
> >
> >Yahoo! Groups Links
> >
> >
> >*    To visit your group on the web, go to:
> >http://groups.yahoo.com/group/development-axapta/
> ><http://groups.yahoo.com/group/development-axapta/>
> >
> >
> >*    To unsubscribe from this group, send an email to:
> >[EMAIL PROTECTED]
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >*    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
> ><http://docs.yahoo.com/info/terms/> .
> >
> >
>
>_________________________________________________________________
>Using a handphone prepaid card? Reload your credit online!
>http://www.msn.com.my/reloadredir/default.asp
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>

_________________________________________________________________
Using a handphone prepaid card? Reload your credit online! 
http://www.msn.com.my/reloadredir/default.asp



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/development-axapta/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 


Reply via email to