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?

Parents
  • , 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();
    }

Reply
  • , 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();
    }

Children
No Data