This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Dashboard Tab - Do not focus

I created a dashboard tab that is created as soon as the object type selected is "Organizations". The new tab is created and then it is also focused. Is there anyway to just create the tab for the dashboard and not focus it?

  • Can you show the code where you react to the event and show the dashboard?

    And focused how, exactly?  What are you seeing?

  • I figured this out. After creating the new tab for the dashboard, the dashboard tab was focused, but I still wanted the metadata tab to be the primary tab and focused on entry. The line of code to do this is below.

    shellFrame.RightPane.GetTab('_details').Select()
  • Have you perhaps find the way how to place it as the last tab? I've used _last but it hasn't worked. Also wondering if you found the way to set correct theme on tab or is it gray on metadata card? In our case theme colors got applied when we stretch the quadrant windows.

  • It seems that the "Filter" tab is not part of the tab sort order. Not sure how to make it go beyond the filter tab, I also use "_last". Which theme color are you looking to change? The actual color of the new tab? The color of the content of the new tab?

  • Color of the tab and content of the new tab. When it is created, it is gray standard color, it does not pick our coloring scheme. When I stretch everything, it gets rendered correctly and pick coloring but when I make it smaller it gets grey default color again. Wrote recently forum entry about this. Let me know if you have found some solution for this

  • Then, the color issue looks like a bug to me..

  • I would agree, this seems like a bug. I just use standard css in the style script for the background color of the content. I don't currently change the color of the tab.

    <style>
    body {
    
    background-color: #D3D3D3;
    
    }
    </style>

  • Hi, yes it seems it stays gray on tab. But if you try to stretch it, it follows the theme color.

  • , In my UIX, I create a tab when ShellFrame is started and immediately make set Visible to false (I reuse that one tab until the user closed Desktop).  I then use the OnSelectionChanged event to make the tab Visible when appropriate (i.e they select and "Organizations" object  and then execute ShowDashboard.  For me, setting Visible to true is what focuses the Desktop client on that tab.

    In the answer you have highlighted, it looks like you are sending the user to the Metadata tab whenever they click on an object.  This could be frustrating for the user if they only care about looking at the preview tab or even your custom tab.

    When I came across this issue myself, I ended up implementing the code below as the line in my OnSelectionChanged function.  Honestly, I have no idea how it works - it doesn't make sense.  But the impact is that if a user moves from one object to another, it will stay on the current tab, regardless of which tab it is.

    I hope that helps.

    if (!myTab.Selected) {
    	myTab.Unselect();
    }