Using an ICON to link to a web page

SOLVED

I have a icon and I have set up a script to make it clickable. When I click on the icon, it isn't loading anything. This is the code I have. Is this not possible with icons?

Subprog CL_ZPICDOWNLOAD(VALEUR)
Variable Char VALEUR()

Callui RETOUR="" With "UIAction="+chr$(1)+"OpenFile", "UILocalDir="+chr$(1)+"HTTPS", "UILocalFile="+chr$(1)+"GOOGLE.COM"

End

Parents Reply Children
  • 0 in reply to ChrisCC

    Don't think that's the problem.

    I suggest u add a new icon to the screen (YSITE), then add the action Click, save and validate the screen. Next u should go your SPE file and the system should've created automatically a TAG like this:

    "Subprog CL_YSITE(VALEUR)
    Variable Char VALEUR()

    End"

    Inside the TAG, put the callui code. This should work.

    best of luck.

  • +1 in reply to Diogo F.
    verified answer

    Ahh I figured out why it wasn't working. I set the input type to display for some reason (mustve been a long day ;) ). When I changed it to enter, the icon linking is working now. Thanks for the help.