News

LINK Function in Web Panels

In this section we will go deep into GeneXus 7.0 features and this edition is focused on the LINK function and its difference with the call and link commands that also allow relating Web Panels inside an application.

LINK Function

The LINK function allows 'linking' a Web Panel with another Web Panel or URL. This function can be associated to the link property of a control inside any event of the Web Panel, having, as a result, that when clicking on such control the call to the referenced Web Panel or URL is performed in the link.
The link function syntax is: 

  link(Object/URL,[par1],[par2],...,[parn])

where
Object/URL the Web Panel or URL to be called and
[par1]...[parn] the set of parameters to be passed to them.

LINK Command

The link command is equivalent to the call command for calling static pages or redirecting a static URL. This command can be used inside any event except the Load event. The result of this command's usage is the automatic redirecting to the URL specified inside it.
This command's syntax is the following one:

  link( URL  ,  parm1 ,   ..., parmn )

where:
URL is the name of the URL to which
parm1 ... parmn is going to be redirected: they are the parameters that the URL receives. The parameters' passage is optional.

CALL's VS LINK's

In order to relate Web Panels inside an application we have two call commands, link and the link function.
Now we do a comparison in order to clarify the differences between them. From a web panel you can make a CALL to:

  • Web Panels  
  • Procedures (that do not have an 'output')

The LINK function and the command can make reference to:

  • Web Panels
  • Static HTML pages