Skip to Content
0
Former Member
Jan 03, 2008 at 01:33 PM

How to get my Addon to work with the license key?

40 Views

Hi,

Can someone tell me how to get the Addon to work with the license key?

I've follow the steps as stated in this thread:

[sbo-2005-a---how-do-i-get-a-connection-string-from|sbo-2005-a---how-do-i-get-a-connection-string-from]

1) i've registered a BASIS key and get a 'BASISXXXXXX" string

2) then i paste my BASIS key in "Solution" of Add-On Indentifier Generator and generate the Add-On Indentifier Code

3) then i paste the string to my source code

which is the "XXX" of the sample code in that thread.

static string AddonIdentifierString="XXX";

int lRetCode=0;

int errCode=0;

string errMsg= string.Empty;

string connectionStr ="";

link = new SAPbouiCOM.SboGuiApiClass();

connectionStr =Environment.GetCommandLineArgs().GetValue(1).ToString();

link.AddonIdentifier=AddonIdentifierString;

link.Connect(connectionStr);

oApp = link.GetApplication(-1);

vCompany = new SAPbobsCOM.CompanyClass();

string cookie = vCompany.GetContextCookie();

string conStr = oApp.Company.GetConnectionContext(cookie);

vCompany.SetSboLoginContext(conStr);

lRetCode = vCompany.Connect();

4) then i add my add-on using manager role at Add-on admin

5) then i can see my add-on there. it not suppose to be there since i've not installed any of my add-on license for my own add-on.

what steps did i miss? Can someone please advise? Thanks

ps : i'm coding in VB