6/17/2024 9:03 AM | |
Joined: 8/22/2009 Last visit: 7/11/2024 Posts: 42 Rating: (1) |
for years now..100s of unified panels used.. I am trying to understand why the workflow is not easier...less steps. why this script is not working inside faceplate let po = Faceplate.OpenFaceplateInPopup("Faceplate_1_V_0_0_1", "title", true, false); why can't we add button to faceplate to launch another faceplate as popup.. the goal is very simple one motor faceplate ... once it is clicked it launch the popup.. export function IO_field_1_OnTapped(item, x, y, modifiers, trigger) { let data = {udt:{Tag:"udt"}}; let po = Faceplate.OpenFaceplateInPopup("motorPopup_V_0_1_25",Faceplate.Parent.Name, data); po.Left = item.Left; po.Top = item.Top; po.Visible = true; } ------------------------------------------------------------------------------------------ |
Last edited by: The Helping Hand at: 06/17/2024 12:56:06New subject after splitting Veolia |
|
6/19/2024 12:28 PM | |
Joined: 1/21/2013 Last visit: 9/19/2024 Posts: 3119 Rating: (487)
|
Hi Ahmed, Unfortunately, opening a faceplate in a popup works differently outside and inside a faceplate type. When opening a faceplate from outside, you can specify the interface data via script. When calling a faceplate as a popup inside a faceplate type, the interface of the faceplate type is passed to the called faceplate and therefore must be the same. See the manual for details (general description, UI.OpenFaceplateInPopup and FaceplateType.OpenFaceplateInPopup). Within your script snippet, use FaceplateType.OpenFaceplateInPopup, but with the syntax of UI.OpenFaceplateInPopup. That is why it does not work. I am not happy about the fact that the interface must be the same, but as a workaround I create a faceplate with the same interface and place the desired faceplate there. Kind regards |
This contribution was helpful to1 thankful Users |
Follow us on