Link Command

Official Content
This documentation is valid for:

The link command 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.

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 the Load event. 

Examples

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

 

Scope

Objects: Transactions, Web PanelsProcedure objectPanel object
Languages: .NET, .NET Core, Java, Angular, Apple, Android

See Also