Book a Demo

Author Topic: Open EA internal web browser - ShowBrowser  (Read 7305 times)

Martin Trneny

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Open EA internal web browser - ShowBrowser
« on: August 06, 2013, 06:48:55 pm »
Hi,
we need to preview html code from a note of an object element.

I find method (in scripting) Repository.ShowBrowser(String, String) but it isn't working. The documentation doesn't exist at all :(. There is Repository class documentation but no word about ShowBrowser.

Do you have any idea how this method works?

Thanks,
Martin

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Open EA internal web browser - ShowBrowser
« Reply #1 on: August 06, 2013, 07:13:29 pm »
Martin,

Indeed, I see an undocumented operation called Void ShowBrowser(string TabName, string URL)

I've never used it, but I think the names of the parameters make it obvious on how to use it.

Geert

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: Open EA internal web browser - ShowBrowser
« Reply #2 on: August 06, 2013, 07:37:08 pm »
My guess would be that the method Repository,ShowBrowser(string TabName, string URL), would created a Tabbed View (named TabName), load the browser and display the page at URL

What I would try to display the HTML of a notes field is the method

[highlight]Repository.GetFormatFromField(string Format, string Text)[/highlight]

where Format = "HTML" and Text is the notes you are examining

This method is documented in the user guide

Hope this helps

Phil
Models are great!
Correct models are even greater!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Open EA internal web browser - ShowBrowser
« Reply #3 on: August 06, 2013, 07:47:20 pm »
Quote
Hi,
we need to preview html code from a note of an object element.

I find method (in scripting) Repository.ShowBrowser(String, String) but it isn't working. The documentation doesn't exist at all :(. There is Repository class documentation but no word about ShowBrowser.

Do you have any idea how this method works?

Thanks,
Martin
If the method is not documented it does not exist per se. Why do you want to open the internal browser of EA instead of a real one?

q.

Martin Trneny

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Open EA internal web browser - ShowBrowser
« Reply #4 on: August 06, 2013, 11:46:41 pm »
Thanks guys,
initially I wanted to use an internal browser but it seems to be much more easy to generate a html file from a note and then open external one.

Just for info - method Repository.ShowDynamicHelp(string Topic) do "almost" the same as I expected from Repository.ShowBrowser - open internal web browser.

So I'm suprised why the method ShowBrowser doesn't work.

So there is a workaround how to open an internal browser but you cannot pass your url, a little useless ;D

Martin

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Open EA internal web browser - ShowBrowser
« Reply #5 on: August 07, 2013, 09:35:39 am »
Repository.ShowBrowser is undocumented because it was never fully implemented.  The method is exposed, but does not do currently anything.  It's possible that it could be implemented at a later date, but I'm not aware of any plans to do so at this time.
« Last Edit: August 07, 2013, 09:36:12 am by AaronB »