O4WLink routine
Description
Displays a link to the location specified in the linkto parameter.
Syntax
O4WLink(text, linktype, linkto, target, id, style)
Parameters
The function has the following parameters:
Parameter | Description | |
---|---|---|
text | The link text to display to the end user. This may be HTML. | |
linkType | Values currently include: 0 (O4W_LINKTYPE_NORMAL$) - Normal 1 (O4W_LINKTYPE_WEBOI$) - WebOI form 2 (O4W_LINKTYPE_PROGRAM$) - O4W procedure 3 (O4W_LINKTYPE_FORM$) - O4W inquiry screen. The record key maybe passed to the inquiry screen. 4 (O4W_LINKTYPE_EMAIL$) - Email link. 5 (O4W_LINKTYPE_FORM_SEARCH$) - O4W inquiry screen (passing in, optionally, search parameters). 6 (O4W_LINKTYPE_EMBED$) - Embedded url. 7 (O4W_LINKTYPE_REPORT$) - O4W report. 8 (O4W_LINKTYPE_LOCAL$) - Local. 9 (O4W_LINKTYPE_OI$) - OpenInsight. This is useful only when O4W screen is invoked in O4W_STANDALONE_FORM or O4W_CHILD_FORM 10 (O4W_LINKTYPE_POPUP$) 11 (O4W_LINKTYPE_INDEXLOOKUP$) 12 (O4W_LINKTYPE_GRAPH$) - For O4W Dashboards 13 (O4W_LINKTYPE_CLICK$) | |
linkto | The link. Based on linktype. | |
target | If target is specified, that is used as the 'target name' of the link. | |
id | If <ID> is specified, this link can be addressed through style sheets individually | |
style | If style is specified, the style is applied to the link that is generated. Note that <style> may be either the name of a style (as created by one of the O4W style functions, or as defined in an included style sheet), or it can be the returned value from one of the O4W style functions. If the O4WHTMLOptions option is passed into the O4WLink, this call may return HTML rather than actually creating a link on the form. |