cancel
Showing results for 
Search instead for 
Did you mean: 

Server Hardware Key

Former Member
0 Kudos

Hi.

Can you help me with this please....

How do I get the Server HardwareKey in my addon?

My addon run on the client.

Regards,

Jose

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi David. Thanks for help me.

I am using COM License Bridge to CORBA And my addon working fine on my computer because I have the server tool in my computer. But when I Install the addon on a client computer this show this message:

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

And don't show the hardware key.

Can help me with this?

Regards,

Jose

Nussi
Active Contributor
0 Kudos

actually i've never tried it.

i just know that the "COM License Bridge" exists.

that's why i posted the link.

but i can't help you further where your code can be wrong or what library is missing.

😕

lg David

Former Member
0 Kudos

Thanks David.

David How can I create the license mechanism for my addon on SDK?

Regards,

Jose

Nussi
Active Contributor
0 Kudos

Hi Jose,

actually you have to use

SboGuiApi.AddonIdentifier property.

didn't use it so far but there's a description in the SDK.

i post it here:

Description

Returns or sets an identifier string to your add-on.

Property type

Read-write property

Syntax (Visual Basic)

Public Property AddonIdentifier() As String

Remarks

The identifier is a unique string allowing the License Service to recognize your add-ons. In run time, the identifier is passed to the SDK before connecting to the SAP Business One application. The License Service then, checks for an appropriate add-on license in the license key.

Make sure to set the AddonIdentifier property before calling SboGuiApi.Connect.

For each add-on license, there is a different identifier string. You must create an identifier appropriate to the installed license. For more information, see Setup and Installation and Connecting to the UI API.

Example

[Visual Basic] The following sample code shows how to set an add-on identifier.


Private Sub SetApplication()
Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
    Set SboGuiApi = New SAPbouiCOM.SboGuiApi
    sConnectionString = Command

    '// set the Addon identifier
    '// this identifier is for Development license
    SboGuiApi.AddonIdentifier = "4CC5B8A4E0213A68489E38CB4052855EE8678CD237F64D1C11C22707A54DBD2D5D5F6E4050A09B9F9FB80FAC44F6"

    '// connect to a running SBO Application
    SboGuiApi.Connect sConnectionString

    '// get an initialized application object
    Set SBO_Application = SboGuiApi.GetApplication()
 End Sub

that's it ... if you need more information regarding this issue you can try to make a new threat with a correct

"title" to get a better answer.

lg David

Former Member
0 Kudos

Thanks for your help David.

Regards,

Jose

Answers (1)

Answers (1)

Nussi
Active Contributor
0 Kudos

Hi,

[Link|;

lg David