• Cheerz
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies

How the PageReference works with the  parameter?

 

Is the follwing possible?

 

<apex:include pageName="TestPageInclude?id=a00000198765yxz"/>

 

if not how do i achieve this? i read the document and it suggest to do following

 

ref1.getParameters().put(id,idVal);

 ref1.setRedirect(true);

retuen ref1;

 

If i write above code then include that as page include that doesn't work.

Any help is appreciated.

 

Thanks

 

Cheerz
Message Edited by Cheerz on 04-24-2009 06:03 PM
  • April 25, 2009
  • Like
  • 0

Hi,

 

I have a visualforce page with 2 tabs in it. every tab has a <apex:include>. One of the include page has link which is opening  a new page.

How do i keep my tags intact on this new page which is not a part of my tab panel?

 

In following example,  on mytab page , when click the invoiceList tab, it opens the page with number of invoices list under the same tab but if i click any of the invoice number it opens without the tabs in the same window.

 

my requiement is to open the page under the same tab panel in the same window.

 

Any suggestions are appreciated.

 

 MyTab.page

    <!--  Tab panel -->
<apex:tabPanel selectedTab="name2" id="AccountTabPanel" selectedTab="name1"
tabClass="activeTab" inactiveTabClass="inactiveTab">
<apex:tab switchType="server" label="{!$Label.home}" name="name1" id="tabOne">
<apex:include pageName="quotelist"/>
</apex:tab>
<apex:tab switchType="server" label="{!$Label.invoices}" name="name7" id="tab2" >
<apex:include pageName="Invoicelist"/>
</apex:tab>
InvList.page 

<apex:page showHeader="false" cache="false" standardStylesheets="true" extensions="InvoiceExtension" title="{nameLabel}">
<!-- Retreive fields automagically -->
<apex:outputLink value="{!transactionNumber}" >
{!transactionNumber} </apex:outputLink >
</apex:page>
 <!-- DeatilPage --><apex:page showHeader="false" cache="false" standardStylesheets="true"
extensions="InvoiceExtension" title="{nameLabel}">

<!-- Retreive fields automagically -->
<apex:outputText value="{!name}" />

<apex:outputText value="{!amt}" />
<apex:outputText value="{!fromDt}" />
<apex:outputText value="{!toDt}" />
</apex:page>




 

Thanx

 

Cheerz

  • April 07, 2009
  • Like
  • 0
blank_page

Hi,

 

How to handle browser back button in Visual Force?

I have a requirement where I wanted to set some value on the click of browser back button.

 

Any help is appreciated.

 

-Cheerz

 

  • March 17, 2009
  • Like
  • 0