Hi Kai.
There are a few tricks involved with NK Router Custom Panels but we can probably get you going.
Here is an example of custom panel that performs a number of different switch commands on the selected router using the nk.doSwitch command.
The NK scripting object is only available within an NK Custom Panel or a part of a panel specified as an "nk-router" context type (you'll see that happening in the top line of the example)
<abs contexttype="nk-router" objectid="YOU CAN SPECIFY AN IPS SERIAL HERE">
<simplegrid height="71" left="9" rows="1" style="bg#dark;bdr:etched;" top="12" width="687">
<ipslist style="style:toggleButton;"/>
<nkfunction function="config"/>
</simplegrid>
<button buttontype="push" height="54" left="8" name="Run Switch Commands" top="83" width="695">
<task tasktype="nk">nk.doSwitch(0, 15, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(1, 14, 1);</task>
<task tasktype="nk">nk.doSwitch(2, 13, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(3, 12, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(4, 11, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(5, 10, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(6, 9, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(7, 8, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(8, 7, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(9, 6, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(10, 5, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(11, 4, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(12, 3, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(13, 2, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(14, 1, 1);</task>
<task tasktype="pause">500</task>
<task tasktype="nk">nk.doSwitch(15, 0, 1);</task>
</button>
<lvlstatus dst="all" height="467" left="9" scroll="vertical" showlabel="true" style="font:mono;size:small;bg#efffbe;fg#000000;t:bg#c8d5a0;t:fg#000000;" top="139" width="693"/>
</abs>
You can embed a context/component like this inside of another non-NK Custom Panel to gain access to other regular Custom Panel features like parameters.
Take a look at the code in the example and see if that moves you closer to what you're trying to do. If you want any clarification on anything that is being done or have specific questions, we can continue to help you along in your project.
Cheers.
James
#DashBoard