guides:o4w:o4w_api:o4wlink

O4WLink routine

Displays a link to the location specified in the linkto parameter.

O4WLink(text, linktype, linkto, target, id, style)

The function has the following parameters:

ParameterDescription
textThe link text to display to the end user. This may be HTML.
linkTypeValues 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$)
linktoThe link. Based on linktype.
targetIf target is specified, that is used as the 'target name' of the link.
idIf <ID> is specified, this link can be addressed through style sheets individually
styleIf 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.
  • guides/o4w/o4w_api/o4wlink.txt
  • Last modified: 2024/06/19 20:19
  • by 127.0.0.1