Use WebLink to show a page within the same WebApp: I find the documentation confusing, or incomplete

Hi,

My goal is to show a WebLink to navigate to another page within the same WebApp. Naturally, I added a new WebLink object, and came the time to specify the target URL (my first though was that I don’t want any URL at all, just calling MyWebPage.Show when the link is clicked).

So, I went to the documentation, which states two things that confuse me:
The first, at the URL property:

If the URL does not include a protocol (like http:), the value will be appended to the URL.
So it appears it’s not possible to leave the URL blank (otherwise, it’ll still add a protocol prefix, though which one isn’t explicitly said in the documentation). What should I put as the URL to show a web page in the same app, if not an empty string?

The other phrase that seems incomplete to me is the following, both at the URL property and at the Notes section:

To navigate to other pages within your app, use the WebPage.Show method.

Again, since I have to put something for the URL property, it doesn’t make sense that I should additionally use the Show method of the page, and, even then, the WebLink doesn’t seem to provide a “Clicked” event where I could write “MyWebPage.Show”.

I realise I could add a standard label to work around this (make it blue and underlined, etc), but it wouldn’t be the right choice.

I’m wondering what I’m missing…

Is the problem when you start learning the “lingo” used and trying to figure out what you want to do.

URL is in fact an URL, opening an another webpage on your program is different than that.

You can use a button and change the Indicator to Link, that way it will look as an HTML link (to open an URL) but you have a Pressed event that you can open your WebPage. Like this:

1 Like

Thank you!
If the documentation would tell that, one may discover that more easily.