I have a child UX called "Docs" that contains a Tab control with three tab panes.
The Docs UX is launched from one of four parent UXs.
I am attempting to show/hide the tab panes based on which parent UX the Docs UX is launched from.
I have a state variable... e._state.showHideTabs = "" in the Docs UX,
and the value is set in the onRenderComplete event....
And I have this function....
And finally, in the client-side show/hide property for one of the tab panes, I have this....
showHideTabPanes() = "showOnlyCustomerDocs"
All the parent UXs run in a Tabbed UI.
The first time the Docs UX is launched, it works as expected, when launched from any parent.
But once the tab pane is hidden, is will not show again, even when launched from a parent where it is supposed to show (and does show, if the pane has not been previously hidden).
Once hidden, I have to reload the tabbed UI to make it show.
I am sure I am missing something somewhere, or there is a better way to do this.
The Docs UX is launched from one of four parent UXs.
I am attempting to show/hide the tab panes based on which parent UX the Docs UX is launched from.
I have a state variable... e._state.showHideTabs = "" in the Docs UX,
and the value is set in the onRenderComplete event....
var po = {dialog.Object}.getParentObject();
if(po) {
var poAlias = {dialog.object}.parentComponentAlias;
if(poAlias == "BILLTOUX") {
{dialog.object}.setStateInfo({showHideTabs: 'BillToUX'});
}
}
if(po) {
var poAlias = {dialog.object}.parentComponentAlias;
if(poAlias == "BILLTOUX") {
{dialog.object}.setStateInfo({showHideTabs: 'BillToUX'});
}
}
And I have this function....
function showHideTabPanes() {
var showHideStateInfo = ({dialog.Object}.stateInfo.showHideTabs);
if(showHideStateInfo == "BillToUX") {
return "showOnlyCustomerDocs";
}
}
var showHideStateInfo = ({dialog.Object}.stateInfo.showHideTabs);
if(showHideStateInfo == "BillToUX") {
return "showOnlyCustomerDocs";
}
}
And finally, in the client-side show/hide property for one of the tab panes, I have this....
showHideTabPanes() = "showOnlyCustomerDocs"
All the parent UXs run in a Tabbed UI.
The first time the Docs UX is launched, it works as expected, when launched from any parent.
But once the tab pane is hidden, is will not show again, even when launched from a parent where it is supposed to show (and does show, if the pane has not been previously hidden).
Once hidden, I have to reload the tabbed UI to make it show.
I am sure I am missing something somewhere, or there is a better way to do this.
Comment