Skip to main content
Solved

Can I get an external link (to a website) in a page or widget action?

  • August 16, 2019
  • 2 replies
  • 152 views

Forum|alt.badge.img+4
As we are converting an app to the new theme and want to make use of all the new features, I would like to get rid of (close to) all buttons on the page.

But on almost every page we have a 'help' link to an external website, where a lot of reference materials can be found. For this we used the 'ExternalLink' option of the button.

Is something similar possible in a page (or widget) action? For instance, I can't find a way to redirect to a url in a procedure.

Best answer by Pratap Kumble

Hi @Guus Kattenbelt, we have introduced some Page Support Procedures that you can find in the AIMMS WebUI Library under Pages and Dialog Support -> Public Pages Support Procedures.

One of those are opening external URLs. OpenExternalLink(url)

You can call it in a procedure eg: webui::OpenExternalLink("www.google.com"); and then use that procedure in the Page and Widget actions.

Thanks.

2 replies

Forum|alt.badge.img+2
  • Former AIMMSian
  • 63 replies
  • Answer
  • August 16, 2019
Hi @Guus Kattenbelt, we have introduced some Page Support Procedures that you can find in the AIMMS WebUI Library under Pages and Dialog Support -> Public Pages Support Procedures.

One of those are opening external URLs. OpenExternalLink(url)

You can call it in a procedure eg: webui::OpenExternalLink("www.google.com"); and then use that procedure in the Page and Widget actions.

Thanks.

Forum|alt.badge.img+4
  • Author
  • Enthusiast
  • 27 replies
  • August 16, 2019
@Pratap Kumble Great! This is exactly what I had been looking for!


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator