Facility Control

 View Only
  • 1.  Dashboard Hide page at start up

    Posted 10-02-2020 06:55

    Hi all

     

    Is there a way to hide all other page then main when i open my panel??

    Right now after a restart off my program all page a at top when open my panel. 

     

    also it is possible to link a button name to a "params" so when change the params it also sent to all button ? 

     

    br

    Michael 



  • 2.  RE: Dashboard Hide page at start up

    Posted 10-04-2020 21:02

    In the source add in visible="false" to hide elements by default:
    <abs bottom="2" id="test" left="3" name="test" right="3" top="4" visible="false">

     

    And not quite sure what you mean for the second question.


    #DashBoard


  • 3.  RE: Dashboard Hide page at start up

    Posted 10-05-2020 06:30

    Thanks i will test it. 

     

    I have 3 button on 3 page that i from one txt field would like to give it is name from, so when i change the name in text field all button should get the new name. 

     

    br

    Michael 


    #DashBoard


  • 4.  RE: Dashboard Hide page at start up

    Posted 10-05-2020 13:17

    You can interact with any panel elements (labels, buttons, etc), if you give them an ID.  

     

    Once something has an ID, then in a task, you can do something with it.   In Visual Logic, you can see all the things you can do with a panel element:

     

    One of those is "rename", which will change the name of a button or label.

    If you double click on that, you will see a "Rename" box.   In the "id" field, you should see all the IDs of panel elements in your panel.   Just pick the one for what you want to rename, and type in the new name in the "name" field.

     

     

    You can also show/hide, move, resize or restyle them.

     


    #DashBoard


  • 5.  RE: Dashboard Hide page at start up

    Posted 10-05-2020 13:23

    Also, you can add a task to a parameter.   When it changes, it triggers that task.   

    Double click on the parameter in your panel,  You should have an "Add" button at the bottom of the page to add new tasks:

    It's in that task that you should add your rename methods

     

    Here is the whole panel:

     

    <abs contexttype="opengear" id="_top" keepalive="false" style="">
    <meta>
    <params>
    <param access="1" maxlength="0" name="test" oid="test" type="STRING" value="type new name" widget="default"/>
    </params>
    </meta>
    <button buttontype="push" height="87" id="myButton" left="90" top="206" width="159">
    <task tasktype="ogscript">


    /*! block id=1000 !*/
    ogscript.rename("_top", "");
    /*!!
    &lt;block id="1000" type="ogscript_rename" x="275" y="102" w="243" ID="_top" NAME="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;31fa961ba2215c095e9ed211b0ff137e&lt;/checksum&gt;!!*/</task>
    </button>
    <param expand="true" height="59" left="136" oid="test" showlabel="false" top="366" width="286">
    <task tasktype="ogscript">


    /*! block id=1001,1002 !*/
    ogscript.rename("myButton", params.getValue('test', 0));
    /*!!
    &lt;block id="1001" type="ogscript_rename" x="450" y="153" w="243" ID="myButton" NAME="ID:1002" /&gt;
    &lt;block id="1002" type="param__top&amp;amp;test (test)[0]" x="92" y="206" w="243" SET="" /&gt;
    !!*/
    /*!!&lt;checksum&gt;726f563f1e23272b18ee7e16f2a7f237&lt;/checksum&gt;!!*/</task>
    </param>
    </abs>

     

     


    #DashBoard


  • 6.  RE: Dashboard Hide page at start up

    Posted 10-09-2020 10:37

    Hi all

     

    Thanks for you help it work now...

     

    but now i have run into a other problem. 

    I have a button when i presset it do a claer command to a xpression unit, but i have a table where i can define which layer it has to clear, and i want it to be listed by , between layer. 

    i problem is now how do i split this line "1,2,3,4,5,6" so i get it one by one and place in my command string, i have tried index of but i only get 1 3 5 out of it ? :-( 

     

    br

    Michael  

     

     

     

     


    #DashBoard