function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
creemejcreemej 

Looking for dynamic page navigation "full option".

Hi,


With these 2 methods, I have different options, which I would like to combine in one dynamic method:

1. Navigation to object (VisualForce or JavaScript).
   Some aspects (sidebar/related lists) are impliciet and can not be changed.

   Example from JavaScript, but same in VisualForce/Apex:
  
   //Display mode
   var soid = "00Q8000000Lv7eEEAR";
   //Edit mode
   if (mode == "E") {
     soid += mode;
   }
   document.location.href = "/"+soid;

   + display/edit mode
   + impliciet tabStyle is OK

   - always with sidebar
   - always related lists in display mode.

2. Navigation to one dynamic VisualForce page with an <apex:detail>-tag.
   This way let's combine the options of the <apex;page> and <apex:detail> tags,
   but I can not specify the display/edit mode, and the tabStyle is not impliciet or dynamic!

 

   document.location.href = "/apex/SFDCPage";
 

   <!-- apex:page id="sfdcPage" controller="SoidController" sidebar="false" showHeader="true" tabStyle="Account" -->
   <apex:page id="sfdcPage" controller="SoidController" sidebar="{!side}" showHeader="{!header}" tabStyle="{!style}">
    <apex:form>
     <apex:outputPanel>
      <!-- apex:detail subject="{!soid}" relatedList="false" title="true"/ -->
      <apex:detail subject="{!soid}" relatedList="{!related}" title="{!title}"/>
     </apex:outputPanel>

    </apex:form>
   </apex:page>

   + page/sidebar (true/false)
   + page/header (true/false)
   + detail/relatedList (true/false)

   - display/edit mode
   - page/tabStyle (only expliciet value, no impliciet tabStyle).

Is there a way that I can have all options combined in one dynamic method,
callable from VisualForce/Apex or direct from JavaScript?

Thanks,

Jan

Message Edited by creemej on 05-18-2009 11:50 AM
Message Edited by creemej on 05-18-2009 12:13 PM