Hi Eduardo.
Yes, this is possible. You would create a parameter with string/string choice constraints and a dropdown list as the widget type. The keys of the constraint would match the IDs of your different tabs. The script on the button would just call ogscript.reveal and pass-in the value of the parameter.
<abs contexttype="opengear" gridsize="20" id="_top" keepalive="false">
<meta>
<params>
<param access="1" constraintstrict="true" constrainttype="STRING_STRING_CHOICE" maxlength="0" name="Tab Selector" oid="tab_sel" type="STRING" value="t1" widget="default">
<constraint key="t1">Show Tab 1</constraint>
<constraint key="t2">Show Tab 2</constraint>
<constraint key="t3">Show Tab 3</constraint>
</param>
</params>
</meta>
<tab height="380" left="80" tabposition="none" top="100" width="600">
<abs id="t1" name="Tab 1">
<label height="60" left="0" name="Tab Number One" top="0" width="100"/>
</abs>
<abs id="t2" name="Tab 2">
<label height="60" left="0" name="Tab Number Two" top="0" width="100"/>
</abs>
<abs id="t3" name="Tab 3">
<label height="60" left="0" name="Tab Number Three" top="0" width="200"/>
</abs>
</tab>
<param expand="true" height="40" left="60" oid="tab_sel" showlabel="false" top="40" width="360"/>
<button buttontype="push" height="40" left="420" name="Show" top="40" width="120">
<task tasktype="ogscript">
/*! block id=1001,1002 !*/
ogscript.reveal(params.getValue('tab_sel', 0));
/*!!
<block id="1001" type="ogscript_reveal" x="314" y="82" w="243" ID="ID:1002" />
<block id="1002" type="param__top&amp;Tab Selector (tab_sel)[0]" x="74" y="74" w="243" SET="" />
!!*/
/*!!<checksum>908c303a4613b827da124029f5556232</checksum>!!*/</task>
</button>
</abs>
------------------------------
James Peltzer
Ross Video
------------------------------
Original Message:
Sent: 05-25-2022 16:06
From: Eduardo Mayone
Subject: Tabs in Dasboard
Hi,
I am making a panel with several tabs, and I want to select the name of a tab in a droplist and with a button bring front the selected tab. Is that possible, this droplist and button is not inside the tabs area?
Regards,
Eduardo
------------------------------
Eduardo Mayone
------------------------------