Target: TabHyperlinkTarget;
The Target property determines how the page is loaded after clicking the link.
This property value is ignored when setting up detailing in reports, express reports, dashboards and data entry forms.
The designer of business applications enables the user to open an object via hyperlink that is set up using a Fore unit, in reports, express reports, dashboards, data entry forms using the blank and parent values.
Executing the example requires that the repository contains a regular report with the REGULAR_REPORT identifier.
Add links to the Metabase, Report, Tab system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Rep: IPrxReport;
Tab: ITabSheet;
Range: ITabRange;
Hyperlink: ITabHyperlink;
Begin
MB:= MetabaseClass.Active;
MObj:= MB.ItemById("REGULAR_REPORT").Edit;
Rep:= MObj As IPrxReport;
Tab:= (Rep.ActiveSheet As IprxTable).TabSheet;
Range:= Tab.Cell(0, 0);
Hyperlink:= Range.Style.Hyperlink;
Hyperlink.Action:= "http://www.example.com";
Hyperlink.ActionType:= TabHyperlinkActionType.OpenURL;
Hyperlink.Enable:= TriState.OnOption;
Hyperlink.Target:= TabHyperlinkTarget.Blank;
Hyperlink.SeparateLinkText:= TriState.OnOption;
Hyperlink.Text:= "Company web site";
MObj.Save;
End Sub UserProc;
When executing the example, a hyperlink is created in the specified cell of the active sheet. When clicking on the hyperlink, the specified site opens in a new browser window.
See also: