Facility Control

 View Only
  • 1.  "Are You Sure?" Does Dashboard have a confirmation box?

    Posted 05-08-2017 18:35
    Hello Dashboard Experts,

    Is there any way to add a confirmation box to Dashboard which will ask "Are You Sure?" when a user hits a button? I am making a "Reset Control Room" button in Dashboard which will send the correct commands and GPI triggers to reset the switcher, router, multiviewers, etc to a default state. I want to protect this button so people don't click on it by mistake during a show.


  • 2.  RE: "Are You Sure?" Does Dashboard have a confirmation box?

    Posted 05-09-2017 05:52
    I'm not sure if there's anything like that, but why don't you use tabs to hide it in a different tab within your custom layout? So have one tab with all your other buttons, then an "Advanced" tab with the "Reset Control Room" button in it.
    #DashBoard


  • 3.  RE: "Are You Sure?" Does Dashboard have a confirmation box?

    Posted 05-09-2017 17:43

    Your best bet is to make a button parameter of type "Prompt Button". This will cause a confirmation prompt before the task is executed.
    You can further customize the prompt by specifying a "configuration attribute" called w.changeprompt

    Also of interest, you can add w.changeprompt to a number of parameters to force a confirmation before changing a value... but for what you're talking about, a "button-prompt" parameter is the correct type.

    <abs contexttype="opengear">
       <meta>
          <params>
             <param access="1" constrainttype="INT_CHOICE" name="Destroy Everything" oid="Destroy_Everything" precision="0" type="INT32" value="1" widget="button-prompt">
                <config key="w.changeprompt">Do you want to reset everything?</config>
                <constraint key="0">Reset World</constraint>
                <constraint key="1">Reset World</constraint>
             </param>
          </params>
       </meta>
       <param expand="true" height="104" left="17" oid="Destroy_Everything" style="style:toggleButton;" top="17" width="165">
          <task tasktype="ogscript">ogscript.debug("RUN SCRIPT!");</task>
       </param>
    </abs>

    #DashBoard


  • 4.  RE: "Are You Sure?" Does Dashboard have a confirmation box?

    Posted 04-04-2019 16:00

    Hi, the code snippet above to make this work isn't showing up for me. Can you repost? Trying to make a similar confirmation prompt.


    #DashBoard


  • 5.  RE: "Are You Sure?" Does Dashboard have a confirmation box?

    Posted 04-04-2019 18:26

    Hi Gene.

    I do have the original example - it appears that something has happened to the posted code when we updated the Community software.

    Here is a similar example that shows how to add a change prompt to a parameter.

    <abs contexttype="opengear" style="">
    <meta>
    <params>
    <param access="1" constrainttype="INT_CHOICE" name="Param To Change" oid="Param_To_Change" precision="0" type="INT32" value="3" widget="radio-toggle">
    <constraint key="0">Value 1</constraint>
    <constraint key="1">Value 2</constraint>
    <constraint key="2">Value 3</constraint>
    <constraint key="3">Value 4</constraint>
    <constraint key="4">Value 5</constraint>
    <constraint key="5">Value 6</constraint>
    </param>
    </params>
    </meta>
    <param expand="true" height="133" left="17" oid="Param_To_Change" style="style:toggleButton" top="12" width="702"/>
    <param expand="true" height="133" left="15" oid="Param_To_Change" style="style:toggleButton" top="155" width="702">
    <config key="w.changeprompt">Are you sure you want to do this?</config>
    </param>
    <label height="54" left="721" name="&lt;- No Prompt" style="txt-align:west" top="46" width="196"/>
    <label height="54" left="722" name="&lt;- Prompt" style="txt-align:west;" top="190" width="196"/>
    </abs>

    #DashBoard


  • 6.  RE: "Are You Sure?" Does Dashboard have a confirmation box?

    Posted 04-04-2019 18:44

    Thanks James, I see it now!


    #DashBoard