You need to sign in to do that
Don't have an account?
Accesing a page from Dashboard, tabs not getting displayed
Hi Reader
I have developed 3 individual page using my own custom controllers.
Created 1 dashboard and linked all the 3 pages.
Scenario 1 : Indivially if access the main page and click button, it goes to corresponding 2nd page and the tabs are displaying properly.
Problem Scenario 2: From Dashboard, same main page --> click button, it goes to corresponding 2nd page but the tabs are not getting displayed.
Eg. If the URL in the first scenario : https://c.cs1.visual.force.com/apex/communities
Problem senario wil have the URL : https://c.cs1.visual.force.com/apex/communities?inline=1
I feel this inline=1 which is getting appended with action from the dashboard causing tabs to be not getting displayed.
I am in Sandbox environment and in developement mode.
Can somebody please help me
Regards
Azad Usman
Hi I have resolved it..
This page is part of Dashboard. Trying to access different page on click of Search button from search page.
Probelm is it's appending ?inline=0 with the URL..
<apex:form>
// Method call to setPage
<apex:commandButton value="Search" action="{!action}" onclick="setPage();"/>
<apex:selectList id="filter_search" value="{!searchWords}" size="1">
<apex:selectOption itemValue="courses" itemLabel="courses"/>
<apex:selectOption itemValue="courses" itemLabel="course"/>
</apex:selectList>
<script language="javascript">
function setPage(){
if(document.getElementById ('{!$Component.filter_search}').value == "courses")
window.top.location.href='{!$Page.Courses}';
}
</script>
</apex:form>
This link will redisplay URL in the proper format and not with ?inline=0 when we go through Dashboard link. This may be useful to someone.
Regard Azad Usman