Progress
ADM 2 Reference


addColumnLink (wbtable.p)

Specifies that a column in the HTML table is to appear with a hyperlink. The necessary attributes to make this happen are specified in the other input parameters.

Parameters:

INPUT pcColumn AS CHARACTER

The name of the column that will be hyperlinked.

INPUT pcURL AS CHARACTER

The linked object. Must be a valid URL reference.

INPUT pcTarget AS CHARACTER

The HTML frame reference that will receive the response. _selfspecifies that the current HTML frame should be used.

INPUT pcMouseOver AS CHARACTER

A function that returns a character string that will be displayed on the mouseOver event in the HTML page.

INPUT pcJoinParam AS CHARACTER

Specifies which parameters must be added to the URL in order to join this data-source to the linked object’s data-source. Valid values are:

Returns: LOGICAL

Notes:

Examples:

/* Add two hyperlinks, one on the custNum to call the customer detail */ 
/* and one on the salesRep field to call the salesrep detail */ 
/* The custStatusLine and salesStatusLine is defined functions */ 
addColumnLink(’custNum’,         /* Column name */ 
              ’detcust.html’,    /* WebObject   */ 
              ’_self’,           /* TargetFrame */ 
              ’custStatusLine’,  /* Function name for Status Line */ 
              ’custNum’).        /* column to use as foreign field */ 
addColumnLink(’salesRep’,         /* Column name */ 
              ’detsls.html’,     /* WebObject   */ 
              ’_self’,            /* TargetFrame */ 
              ’salesStatusLine’,  /* Function name for Status Line */ 
              ’salesRep’).        /* column to use as foreign field */ 
FUNCTION custStatusLine RETURNS CHARACTER (): 
  RETURN "Show detail for customer " + columnStringValue("custNum") + ".". 
END. 
FUNCTION salesStatusLine RETURNS CHARACTER (): 
  RETURN "Show detail for salesrep " + columnStringValue("salesRep")  
     + ".". 
END.  


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095