You need to sign in to do that
Don't have an account?

How to get ID from Page?
Hi:
I have an s-control which is linked to a button which is linked to a VF page.
"/apex/editQuoteLineBatch?Id={!xxx__c.Id}"
How do I get the xxx ID into the VF page input box?
Thanks for your help in advance.
public Pagecontroller{ public String idParam {get; set;} public PageController{ this.idParam = ApexPages.currengPage().getParameters().get('id'); }}
And the page would look like this:
<apex:page controller="PageController"><apex:form><apex:inputText value="{!idParam}"/></apex:form></apex:page>
You might want to think about using a controller extension instead of trying to do this. Read teh respective documentation on the Developer site.
All Answers
public Pagecontroller{ public String idParam {get; set;} public PageController{ this.idParam = ApexPages.currengPage().getParameters().get('id'); }}
And the page would look like this:
<apex:page controller="PageController"><apex:form><apex:inputText value="{!idParam}"/></apex:form></apex:page>
You might want to think about using a controller extension instead of trying to do this. Read teh respective documentation on the Developer site.
Thank You Mr. Anand...I understood it and it helped me out... What I do not get is how come I can not link a button to my VF Page instead of me making a S-Control.
I am trying to play around with the salesforce.com app QuoteLine.
But thanks