GB Hyperlink Code

Below are examples of hyperlinks for finMobile graphics. The bold and blue text is what would need to be modified to work with your project.

FIN Mobile Graphics

var mainWin = window.parent;

try {
mainWin.app.LoadApplication ("/fin5/projName?projectRef=@graphicId#targetRef=@targetId&title=showSettings")
} catch (err) {console.error(err)}

Flash Graphics

var mainWin = window.parent;

try {
mainWin.app.LoadApplication ("/finLegacyProj/projName#finGraphics:presentation=@graphicId&equip=@targetId")
} catch (err) {console.error(err)}

Summaries

var mainWin = window.parent;
try {
mainWin.app.OpenSummaryWithIdAndRef("idOfSummary", "IdOfRecordYourSummaryIsRunningOn");
} catch (err) {console.error(err)}

Points

var mainWin = window.parent;

try {
mainWin.app.OpenEquipTreeWithApp ("points")
} catch (err) {console.error(err)}

Point Actions

var mainWin = window.parent;
try {
mainWin.app.ShowActionsFor ("@pointId")
} catch (err) {console.error(err)}

Notes

var mainWin = window.parent;

try {
mainWin.app.OpenEquipTreeWithApp ("notes")
} catch (err) {console.error(err)}

Notes by Target

var mainWin = window.parent;
try {
mainWin.app.OpenEquipTreeWithApp ("notes", @targetId)
} catch (err) {console.error(err)}

Notes - Create Note Popup

var mainWin = window.parent;
try {
mainWin.app.AddNote(@targetId)
} catch (err) {console.error(err)}

Schedule

var mainWin = window.parent;

try {
mainWin.app.OpenScheduleWithIdAndRef ("@scheduleId")
} catch (err) {console.error(err)}

Schedule - by Target

var mainWin = window.parent;


try {
mainWin.app.NavigateToApp(mainWin.app.APP_NAMES.SCHEDULES, "@targetId");
} catch (err) {console.error(err)}

Historian

var mainWin = window.parent;

try {
mainWin.app.OpenEquipTreeWithApp ("trends")
} catch (err) {console.error(err)}

Another example: window.parent.app.OpenEquipTreeWithApp("trends?targetRef=@targetId&q=@chartId");

Historian with Options

var mainWin = window.parent;

try {
mainWin.app.OpenHistorianWithOptions ("point", ["@pointId", "@pointId", "@pointId"])
} catch (err) {console.error(err)}

Alarms

var mainWin = window.parent;

try {
mainWin.app.OpenEquipTreeWithApp ("alarms")
} catch (err) {console.error(err)}

Toggle Menu

var mainWin = window.parent;
try {
mainWin.app.ToggleMainMenu ()
} catch (err) {console.error(err)}

Show Main Menu

var mainWin = window.parent;
try {
mainWin.app.ShowMainMenu ()
} catch (err) {console.error(err)}

Hide Main Menu

var mainWin = window.parent;
try {
mainWin.app.HideMainMenu ()
} catch (err) {console.error(err)}

Hide Header (nav header)

var mainWin = window.parent;
try {
mainWin.app.HideHeader ()
} catch (err) {console.error(err)}

Show Header (nav header)

var mainWin = window.parent;
try {
mainWin.app.ShowHeader ()
} catch (err) {console.error(err)}

Collapse Menu

var mainWin = window.parent;
try {
mainWin.app.ToggleCollapse ()
} catch (err) {console.error(err)}

Note: We now have added a parameter for the above code regarding the collapse menu. The parameter can be "true" or "false". True being it disappears and false not disappearing. (v2961).