Facility Control

 View Only
Expand all | Collapse all

Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

  • 1.  Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-01-2025 15:30

    Dear Communtiy,

    I am using an NK-D16-110-RCP Switchboard with the Switchboard (Large Router) overlay.

    On the left side, I have the Inputs and Outputs, which I can select. On the right side, there is a table with two columns displaying which input is assigned to which output.

    The issue I am facing is that I am unable to define a fixed width for each column, causing the left column to never be fully displayed. While I can manually adjust the column width with my mouse, this adjustment needs to be made every time I start the Dashboard.

    Here are the steps I have already tried to resolve the issue:

    1. Adjusting the weightx value

    2. Setting min-width and max-width

    3. Using width: 800px and width: auto

    4. Modifying the colspan

    5. Setting fill="none" instead of fill="both"

    Despite these efforts, it seems that none of the changes take effect. Additionally, even though I modified the text alignment to "right" in the settings, the text remains aligned to the left.

    Sceenshot_1 shows how it currently is, Sceenshot_2 shows how I want it to be. (Ignore the colors, I just tried something.)

    I would appreciate any guidance or solutions you may have.

    Thank you for your help.

    Best regards



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------


  • 2.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-02-2025 06:51
      |   view attached

    Hi Josef,

    You are on the right track in some table or container methods although I suspect that this table is configured differently due to the way it is constructed.

    Below is an example is of a param table, the config tags set the column widths among other details.

    I've also attached a table panel (change to *.grid) with some examples.

    <param expand="true" height="200" left="540" oid="params.table" showlabel="false" top="100" width="440">
          <config key="w.padding">10,15</config>
          <config key="w.hscroll">true</config>
          <config key="w.colminwidth.0">250</config>
          <config key="w.colminwidth.1">150</config>
          <config key="w.colminwidth.2">150</config>
          <config key="w.alwaysscroll">false</config>
          <config key="w.localselection">true</config>
          <config key="w.cellediting">false</config>
          <config key="w.scrollselection">true</config>
       </param>


    ------------------------------
    Richard Crutwell
    Ross Video UK
    ------------------------------

    Attachment(s)

    txt
    Tables.txt   18 KB 1 version


  • 3.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-02-2025 08:15
      |   view attached

    Hi Richard,

    Thank you for your quick reply.

    As I mentioned before, I am using the Switchboard (Large Router), which is already included in DashBoard. I only made a few visual adjustments to optimize my workflow.

    The problem is that I can't really determine which part of the code writes the destinations and sources into this table, nor do I know where in the source code the column titles are labeled.

    Would it be possible for you to show me how to adjust the given source code without creating a new table?

    Attached is the original file of the Switchboard (Large Router).

    Best regards,



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------

    Attachment(s)

    txt
    Switchboard_Large.txt   6 KB 1 version


  • 4.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-03-2025 06:27

    Hi Josef, 

    Can you do me another favour and send the XML in full when connected to the IPS/NK? - I do not have one to connect to therefore cannot see the details within the <lvlstatus/> tags.



    ------------------------------
    Richard Crutwell
    Ross Video UK
    ------------------------------



  • 5.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-03-2025 07:34
      |   view attached

    Dear Richard,

    The XML file does not change when connected to an IPS/NK. The content of the <lvlstatus> tag stays the same. This is precisely why I am wondering where in the code are things like the names of the columns are defined.

    The names of the inputs and outputs are obtained from a .lbl file. However, these are merely label names without any underlying syntax.

    I attatched it to this message, but I don't think it matters. (I can't upload a .lbl file here it's a .txt now, you can change it to a .lbl and import it then into DashBoard)

    Best regards,



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------

    Attachment(s)

    txt
    labels2.txt   84 B 1 version


  • 6.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-03-2025 08:01

    Hi Josef, 

    This appears to be a NK plugin generated by the Switchboard, I'll see what options are available for customising this plugin.

    Can you see if there is any detail within the table once populated when in edit mode, press-hold Shift and double-click on the table? - it will bring up a live window of the container.

    I'll see what I can suggest.

    Best regards, 

    Richard



    ------------------------------
    Richard Crutwell
    Ross Video UK
    ------------------------------



  • 7.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-03-2025 08:26

    Hi Richard,

    thank you for looking into this. I appreciate your support!

    Anyway, there is no change when the labels are imported; it stays the same.

    Best Regards,



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------



  • 8.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 04-29-2025 02:36

    Dear Richard,

    Dear Community,

    is there an update to this issue yet?

    Best regards,



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------



  • 9.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 08-19-2025 09:48

    Dear Richard,

    Dear Community,

    is there an update to this issue yet?

    Best regards,
    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------



  • 10.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 08-19-2025 14:37

    Hi Joseph

    If you're already modifying the custom panel to suit your needs, you can specify the width of the "Output" column by getting the column model directly from the JTable component and specifying its preferred width.  You'll need to add an ogscript block and give the lvlstatus tag and ID so you can access it:

    <table bottom="4" left="4" right="4" style="bdr:etched;bg#efffbe;fg#000000;font:mono;size:small;" top="4">
                <tr>
          <lvlstatus dst="all" fill="both" id="lvl-table" scroll="true" showlabel="true" style="font:mono;size:small;bg#efffbe;fg#000000;t:bg#c8d5a0;t:fg#000000;" weightx="1.0" weighty="1.0"/>
          <ogscript handles="onload">var table = ogscript.getComponentsById('lvl-table')[0];
    table.getColumnModel().getColumn(0).setPreferredWidth(150);              </ogscript>
       </tr>
             </table>
    


    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 11.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay

    Posted 08-21-2025 02:59

    Hello James,

    Thank you very much for your prompt response.

    The code functions correctly, but only when I apply the changes directly in PanelBuilder. Once I close DashBoard and reopen it, the settings revert to their default state. If I close the custom Switchboard Large Router.grid file inside DashBoard and reopen it, the code works again.

    Is there a function I can call at startup to adjust the column width automatically? If so, could you advise on where this should be placed? If not, what alternative approach would you recommend?

    Thank you in advance.

    Best regards,



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------



  • 12.  RE: Issue with Column Width Adjustment in NK-D16-110-RCP Switchboard Overlay
    Best Answer

    Posted 08-21-2025 03:45

    Hello James,

    I figured it out myself. Thank you anyways.

    In case someone else will ever need that:

    I just added this to the beginning of the whole default source code just below "var config = nk.getActiveSystem()":

    var table = ogscript.getComponentsById('lvl-table')[0];
    table.getColumnModel().getColumn(0).setPreferredWidth(445);
    var table2 = ogscript.getComponentsById('lvl-table')[0];
    table.getColumnModel().getColumn(1).setPreferredWidth(445);

    So when DashBoard connects to the SwitchBoard, it will adjust the width of the 2 Columns momentarily.

     

    Best regards,



    ------------------------------
    Josef Nitsch
    feratel media technologies
    ------------------------------