Skip to Content
avatar image
Former Member

Open URL in B1 Browser Access with UI API

Hi,

we are developing a Business One Add On which should also be used in Browser Access mode. Right now, everything works fine.

Now we try to open a URL in a new Browser Tab, for example if someone clicks on a Button a Helppage (e.g. http://www.xyz.com/help.html) should open in a new Browser Tab . For File access there is a special function SendFileToBrowser on the Aplication object. Is there an equivalent for opening an URL?

Kind regards,

Hannes

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Oct 26, 2016 at 11:06 AM

    Hi Hanes,

    In the non-browser environment, one would do

    Process.Start("url");
    

    Doesn't this work for the browser?

    Pedro Magueija

    LinkedIn | Twitter | Blog

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Pedro,

      we use this for non-browser environments too. Unfortunately it doesn't work in Browser Access. In Browser Access the SAP-Client Process is running on the PC where the Browser Access Gatekeeper is installed. For each user in the Webfrontend a SAP Client is started on the Gatekeeper PC. Only the UI of this processes is streamed to the Webbrowser. Therefore a process start could only start something on the server not in the Browser. But process start doesn't do anything (neither on the gatekeeper PC nor in the Browser Access Webfrontend).

      Any other ideas?

      Kind regards,

      Hannes

  • avatar image
    Former Member
    Nov 03, 2016 at 08:03 AM

    Hi,

    I found out that there is no solution for this problem right now. Someone has already submitted an idea: https://ideas.sap.com/D31393

    Please vote for it if you've got the problem, too.

    Kind regards,

    Hannes

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 09, 2017 at 03:00 AM

    Hi all, the form web browser item is now working in Browser Access mode. The web page displayed in the browser item can have a html link which can open the link in a new tab. Remember, the exact behavior of the webpage is dependent on the user's browser and settings.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2016 at 06:22 PM

    Hi Hanes,

    What about the WebBrowser control? Is that an option for you? (can you imagine... a browser inside a browser...)

    Pedro Magueija

    LinkedIn | Twitter | Blog

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 26, 2016 at 07:24 AM

    Hi Hannes,

    Have you tested using SendFileToBrowser with the URL (string) instead of a file path (string) ?

    A web page is theoretically also a file.

    Regards,

    Johan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 26, 2016 at 08:12 AM

    Hi Johan,

    we tried this already but unfortunately it doesn't work. I think only locale file path are allowed with this function.

    Any other ideas?

    Kind regards,

    Hannes

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 08, 2017 at 05:31 PM

    I'm running into this same issue. My problem requires that a button be pushed to open a browser windows/tab. I need to know that they pushed the button to open the browser window. And pushing a button to create a link for them to use isn't a good user experience.

    I'd use the Browser control in a form, I tried to do that first. But the control doesn't work with the web page I'm going too. It fails even worse when opening it with browser access client.

    Add comment
    10|10000 characters needed characters exceeded