所属产品: Mingcedar Studio DESIGNER
Open Link:按四种目标类型配置跳转 | Mingcedar Studio
在 Destination 中选择 Internal page、External URL、System menu 或 Run script,再填写对应地址或动作。
<section id="open-link" class="docs-block docs-block-intro docs-block-current"> <span class="section-kicker">跳转</span> <h2>Open Link:按四种目标类型配置跳转</h2> <p>在 Destination 中选择 Internal page、External URL、System menu 或 Run script,再填写对应地址或动作。</p> <div class="docs-detail-list"> <article id="open-link-item-1" class="docs-detail-row"> <strong>四种 Destination</strong> <p>在 Destination 中选择目标类型,然后填写该类型显示的字段。以下界面图以 Internal page 为例。</p> <ul> <li>Internal page:填写 Page address(如 Main.html),或点击 Select PPT page... 选择本 PPT 页面。</li><li>External URL:打开可从运行端访问的外部或内网地址。</li><li>System menu:打开宿主机已配置的菜单目标。</li><li>Run script:目标按运行状态计算或点击后需组合动作时使用。</li> </ul> </article><article id="open-link-item-2" class="docs-detail-row"> <strong>地址写法</strong> <p>同 PPT 导出页面使用 Internal page;完整外部或内网网址使用 External URL;宿主机菜单目标使用 System menu。Internal page 的相对地址从当前导出页解析,必须留在资源根目录内。</p> <ul> <li>同 PPT 页面:Internal page + Select PPT page...</li><li>同包相对页面:Internal page,例如 `Main.html` 或 `./help.html`</li><li>宿主菜单:System menu</li><li>外部或内网网址:External URL</li> </ul> </article><article id="open-link-item-3" class="docs-detail-row"> <strong>打开方式选择</strong> <p>在 Internal page 的 Open options 中选择 HMI window 或 Page only;按需要设置 Fullscreen 和 New tab,并在导出后验证打开方式。</p> <ul> <li>HMI window:在 HMI 窗口打开目标。</li><li>Page only:只打开目标页。</li><li>Fullscreen、New tab:分别控制全屏显示和在新标签页打开。</li> </ul> </article><article id="open-link-item-4" class="docs-detail-row"> <strong>脚本跳转的适用场景</strong> <p>如果跳转目标需要按页面变量动态计算,或需要拼接 screen code,可使用 Click Script。固定目标优先使用配置行为。</p> <pre class="docs-code-block"><code>hqVisuDesigner.openPage("Alarm");
hqVisuDesigner.openScreen("PUMP_OVERVIEW");
hqVisuDesigner.openWebsite("https://example.com", true);</code></pre> </article> </div> <div class="docs-note-grid"> <figure id="open-link-image-1" class="docs-note-card manual-doc-image-card"> <img src="/WEB_img/HQPPT/current-20261021/open-link-internal-page.png" alt="Open Link 的 Internal page 设置,显示 Page address、Open options 和 Parameters" loading="lazy" decoding="async"> <figcaption> <strong>Open Link:Internal page</strong> <p>先选四种 Destination 之一;图中 Internal page 可填写导出页地址、选择 PPT 页面、设置打开方式和可选参数。</p> </figcaption> </figure> </div> </section>