• Vikas_S
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi,

 

I'm redirecting to new visualforce page in my class.

created URL look like.

https://xxx.visual.force.com/apex/NewPage?TestValue=value1&retURL=a0HS000000450UD

 

I'm trying to get TestValue into my Visualforce Page...

code of Page is here..

 

<apex:page standardController="XXX__c" extensions="EEE_Test">
    <apex:form >
        <apex:pageBlock >
        <apex:pageBlockSection columns="1">
             <apex:inputField value="{!CurrentPage.parameters.TestValue}"/>
    </apex:pageBlockSection>
        </apex:pageBlock>  
    </apex:form>
    </apex:page>

 

I'm getting "Save error: Field parameters does not exist. Check spelling."  during saving this page.

 

Please suggest how to get value from the URL in page InputField?

 

Hi,

 

I'm overriding New button with Visualforce Page in my existing Object. Condition could be either TRUE or FALSE..If TRUE then I need to call default action where new Object is being called BUT if condition is FALSE then I need to call different VF page.

My question is How to call existing Object Page if condition is TRUE in code..I mean what should be the URL?

 

This is the URL when I click on New button, How to write this in Apex code?

https://xxx.salesforce.com/a0I/e?CF00NS0000000qhvi=Testing12&CF00NS0000000qhvi_lkid=a0HS000000409QG&retURL=%2Fa0HS000000409QG

 

Thanks.