AX2355
GetFormDocumentLinkTag function
Generates a hyperlink tag to an Axiom form in the Axiom file system, using the special content tags for use in Formatted Grid components. When the source file containing the content tag is viewed as an Axiom form, the tag will render as a hyperlink to the specified file.
This function is only for use within form-enabled files. The content tags generated by the function have no effect within the source file; the file must be viewed as a form in order to use the hyperlink.
Syntax
GetFormDocumentLinkTag("DisplayText", DocIDorPath, "SheetFilter", OpenInNewWindow, GeneratePDF, "Variables")
Parameter | Description |
---|---|
DisplayText |
The display text for the hyperlink. |
DocIDorPath |
The file for which you want to create a hyperlink. You can specify this file by entering either of the following:
|
SheetFilter |
(missing or bad snippet) |
OpenInNewWindow |
Optional. A Boolean value that specifies whether the Axiom form is opened in a new window or the current window:
|
GeneratePDF |
Optional. A Boolean value that specifies whether the hyperlink will generate a PDF copy of the form:
This parameter is intended to be used to enable PDF printing of an Axiom form. |
Variables |
(missing or bad snippet) |
All non-numeric entries must be placed in double quotation marks, unless you are using cell references to reference the text held in another cell. However, the Boolean values TRUE and FALSE do not need to be in quotation marks.
(missing or bad snippet)Remarks
Both GetFormDocumentLinkTag and GetFormDocumentURL can be used to generate a hyperlink to an Axiom form within a Formatted Grid component. GetFormDocumentLinkTag generates a complete but basic set of HREF content tags that cannot be further modified. GetFormDocumentURL generates a URL that can be used within a set of HREF content tags that you create manually, thereby allowing more flexibility in how the content tags are set up.
- (missing or bad snippet)
GetFormDocumentLinkTag is a non-volatile function.
Examples
=GetFormDocumentLinkTag("Open KPI dashboard", "\Axiom\Reports Library\Dashboards\kpi_dashboard.xlsx")
This example creates a content tag that will render as a hyperlink to the specified document, and open it as an Axiom form. Although you can specify the file path (or document ID) for the second parameter directly, in many cases you will use this function in conjunction with the GetPlanFilePath function, to look up the appropriate file path for a plan file. For example:
=GetFormDocumentLinkTag("Open plan file for Dept 3000", GetPlanFilePath("Budget 2022",3000), , TRUE)
This example creates a content tag that will render as a hyperlink to the plan file for department 3000 in file group Budget 2022, and open it as an Axiom form. In the spreadsheet, the resulting tag will look something like the following:
[href=http://servername/Axiom/forms/psMRBzzjVcs0yAjqyOAyZQ__; Text=Open plan file for Dept 3000; UseNewWindow=true]
In the rendered Axiom form, the resulting hyperlink will look something like the following (assuming the appropriate cell formatting):
Open plan file for Dept 3000
=GetFormDocumentLinkTag("Open KPI dashboard", 93, "GL;Dept.Region='North'")
This example is the same as the first example, except:
- A document ID is used instead of a file path to identify the file.
- A filter is applied to limit the data in the Axiom form to data from the North region.
=GetFormDocumentLinkTag("Print plan file", GetPlanFilePath("Budget 2022", 3000), , TRUE, TRUE)
In this example, the GeneratePDF parameter is used to automatically generate a PDF for printing. The content tags that result from this function will automatically append /pdf
to the end of the URL, such as:
[href=http://servername/Axiom/forms/psMRBzzjVcs0yAjqyOAyZQ__/pdf; Text=Print plan file; UseNewWindow=true]
=GetFormDocumentLinkTag("See Detail", 93, , True, , "Region=West;Category=Payroll")
In this example, values for the variables Region and Category are being sent to the target form. If the target form uses GetDocumentInfo functions to return the variable values, the values West and Payroll will be returned and can be used to impact data queries in the file (or for some other purpose). Additionally, the OpenInNewWindow parameter is used to open the target form in a new window.