You need to sign in to do that
Don't have an account?
Behavior of apex Listviews component within the apex tabpanel
Anybody is able to control the behavior of apex listviews component within the apex tabpanel
this is the code if i take some number of tabs within the tabpanel and using the listviews component within the tab component and try to click any of the filters like A,B,C,..... etc or next or previous link , my page get refreshes and it lands to default tab of tabpanel showing unexpected behavior of tab within one apex page. this is the code. Any comment will be appreciated.
<apex:page showHeader="false">
<apex:tabPanel switchType="client" id="tabpanel">
<apex:tab label="TAB 1" id="object1">
<apex:ListViews type="Case"/>
</apex:tab>
<apex:tab label="TAB 2" id="object2">
<apex:listViews type="account"/>
</apex:tab>
</apex:tabPanel>
</apex:page>
Thank you
This is sort of wonky, but it works:
Basically, every time that you change the list view, the page submits the form which causes the page to lose it's state data. The solution above uses cookies to dynamically store that data and grab it when the page refreshes to display the last tab the user was on before the page refreshed.
All Answers
Can you give me some sample code to do this?
Thanks
This is sort of wonky, but it works:
Basically, every time that you change the list view, the page submits the form which causes the page to lose it's state data. The solution above uses cookies to dynamically store that data and grab it when the page refreshes to display the last tab the user was on before the page refreshed.
Thanks. It works.
Hi,
The above code works.
I have one requirement where list of Account Records is displayed.
When i click on particular record tabpanel with multiple tabs is opened. (Detail tab, Contact tab, Opporunity Tab )
You are navigating first account record.
Now you have completed working at Opportunity tab.(you have stopped navigating at Opportunity tab) and now you have clicked on new acount record, it will navigate to Opportuinities of Current record. Ideally it should navigate to the Detail of new Account record instead of Opportunity of New Account Record.
How to solve this issue? What changes are required into the above code?
It would be great help. Thanks in advance.
Cheers,
Devendra S