i
This is not the latest version of this document; to access the latest version, click here.
Official Content

To return a character string with a URL format.

Syntax

Link(Object | URL [ , Par1 , ... Parn ] )

Type Returned:
Character

Where:
Object | URL
Is the Web Panel or URL to call.

[ par1 ] ... [ parn ]
The set of parameters to pass to the Web Panel or URL.

Description

The function LINK allows “binding” a Web Panel to another Web Panel or URL. This function can be associated with the property link of a control inside any event of the Web Panel. So, when you click the control, the call to the Web Panel or URL referenced in the link is performed.

Notes:

  • The Object can be selected using the option Insert/Object or Ctrl+Shift+J; in the example below, after writing "(" symbol.
    &var.link = link(
    
  • If you want to call a URL, the URL must be entered between ‘’ (simple/double inverted commas).
    &var.link = link(‘http://www.genexusx.com’)
    
  • If you want to make a link using an attribute that contains the URL or the name of the corresponding Web Panel, you must use the following syntax:
    &var.link = link(att:AplLnk)  // where AplLnk is an attribute of some table.
  • Passing parameters is optional.

It can be used without associating it with the property link of a control.

&var = link(MasterLogin) 

Scope

Objects: Procedures, Transactions, Web Panels
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3)
Interfaces: Web

See Also

Link command







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