Skip to Content
avatar image
Former Member

AddonInstaller.NET Wizard and Screen Painter

Hi all,

I am using the AddonInstaller.NET Wizard to make *.ard but an *.srf form cannot be loaded.

I have done the following:

- In load the form with the following

' Form load and creation

oXmlDoc.load(".\..\PM_Algorithm.srf")

- In AddonInstaller.NET Wizard in Step: "Addon needed files" I add files and in "Extra 1" tab I put with browse the above *.srf file. I DO NOT put anything in "Destination Directory" (However I find after running in "Addon Files" directory *.srf).

Any Idea?

Notes:

- *.ard is normaly loaded to SAP B1

- Other services of this Addon work fine

- when I try to load the form form menu the system message is "Addon is disconnected"

Any Idea?

Thanks in Advance

Vangelis

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 20, 2008 at 01:38 PM

    I think the reason the production version of your add-on can't find the .srf file is because of the relative path naming "..\..\" that you are using. In debug mode, your SRF file is perhaps in the bin directory which could be two layers deep in the relative path whereas when it's installed in 'sap\b1\addons\your directory', it's at the same level compared to your executable. Try moving the .srf file in your project to a directory that matches the relative path structure as when the addon is actually running.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 19, 2008 at 05:28 PM

    Hi Vangelis,

    i did not get the point - when the file is in the addon directory after installing why should the error be in the Installer ?

    when the addon disconnects something went wrong in your addon.

    in c# i recommend you to implent try catch in your methods and at least the addon does not disconnect.

    lg David

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Vangelis,

      i took the "Installer" from SDK sample directory and improved it - so i have my own installer with sexy design 😊

      when the .srf is not in the addon directory copy it only for testing by hand in the directory.

      ok, let's say the missing .srf is the problem, you should anyway develop your addon in a way where the

      addon doesnt crash when something is missing. for example: just rename the .srf for one testing and

      look where your addon make problems with debugging. i know, that's not your original problem but it anyway improves

      your "quality"

      lg David