Skip to Content
3

Open URL in B1 Browser Access with UI API

Oct 26, 2016 at 07:14 AM

429

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

7 Answers

avatar image
Former Member Oct 26, 2016 at 11:06 AM
1

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

Show 1 Share
10 |10000 characters needed characters left 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

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

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

You have my vote.

Cheers.

Pedro Magueija

LinkedIn | Twitter | Blog

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

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Deverick,
Is this only in the latest release of SBO92 PL06?

Regards
Edy

0
avatar image
Former Member Oct 26, 2016 at 06:22 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Pedro,

we also tried this, but the WebBrowser Control is not supported in SAP Business One Web Access. At the bottom of this page: https://launchpad.support.sap.com/#/notes/0002194233 you can find the Browser_Access_Add-On_Compatibility_Guide.pdf and inside at Nr. 14 it's described that WebBrowser is not supported.

Any other ideas?

Kind regards,

Hannes

0
Johan Hakkesteegt Oct 26, 2016 at 07:24 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Oct 26, 2016 at 08:12 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Jones Marshall Sep 08, 2017 at 05:31 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded