Official Content

Redirects to web objects of the KB or any external URL.

Syntax

Link( usr-pgm | ’url’ [{, parm}…] )

Where:

usr-pgm
    Is the name of the Web Panel to where it is going to redirect.

url
    Is the name of URL to where it is going to redirect.

parm 
    Are the parameters that the Web Panel or URL receives.

Scope

Objects: Transaction, Web PanelProcedurePanel
Generators: .NET, .NET Framework, Java, Angular, Apple, Android

Description

The Link command is equivalent to the Call command, but it is specific to the web. When this command is used, there is an automatic redirecting to the URL specified in it.

When it is used in a Web Panel, it can be used in any event, except for the Load event. 

Samples

Event Enter //External URL
    Link(‘http://www.example.com’) 
EndEvent
Event 'MyEvent' //Object known at design-time
    Link(Client,1,!'INS')
    Client(1,!'INS') // recommended coding style
EndEvent
Event 'MyEvent' //Object known at run-time
   &MyObject = !'Client' 
   Link(&MyObject,1,!'INS') 
EndEvent

See Also

Link Function
Parameters Style property for Environments
Call command


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant