List Info

Thread: Re: Licence Key validation




Re: Licence Key validation
country flaguser name
United States
2007-06-04 03:47:33

The code for a licence is generated by Microsoft so you need to check
with them how you can deploy new modules.

In general the licence key is the base for the security system.
Configuration keys depend on the licence key and Security Keys
depends on Configuration Keys.

Functions to check are:
if (hasSecurityKeyAccess(securitykeyNum(mySecurityKey),
AccessType::View))

{

myMethod();

}

if (hasMenuItemAccess(menuItemDisplayStr(myMenuItem),
MenuItemType:isplay)))

{

myMethod();

}

DictTable dictTable = new DictTable(tablenum(myTable));

if (dictTable.rights >= AccessType::Insert))

{

myMethod();

}

if (isConfigurationkeyEnabled(configurationkeyNum
(myConfigurationKey))

{

myMethod();

}

br
Karsten

--- In development-axapta%40yahoogroups.com">development-axaptayahoogroups.com, "Steve Wright&quot; <steve...>
wrote:
>
&gt; There is no point...you can remove your x++ code which does the
check!
>
> S
>
>
>
> From: development-axapta%40yahoogroups.com">development-axaptayahoogroups.com
&gt; [mailto: development-axapta%40yahoogroups.com">development-axaptayahoogroups.com] On Behalf Of gonzalo_edo
> Sent: Saturday, 26 May 2007 9:02 AM
> To: development-axapta%40yahoogroups.com">development-axaptayahoogroups.com
&gt; Subject: [development-axapta] Licence Key validation
>
>
>
> Hi all...
>
> Does anybody knows how can I validate if custom a license key is
> enabled, by example, I develop a complete module and I want to
enable
> it only if If enter a valid licence key that I define, so If a
valid
> licence key is found, some configuration keys are enable and
> funcionality and so on...
&gt;
> In the AOT I can create licence keys, how in code at startup can I
> validate if this license is active and match with the code I define?
>
> I don't know if I make myself clear...
>
> Hope can help me...
&gt;
> Regards,
>
> Gonzalo
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )