You need to sign in to do that
Don't have an account?
Navigate to a link
Hello Gurus,
I have just started devlopment using vforce
I am trying to devlop a simple app
1) User will enter an ID(Account object) on the page
2)when the user will click on go link the page should be redirected to the account details.
In the below code I have hard coded th Id
I want to do the same dynamically
<apex:page ><apex:pageBlock > <apex:pageBlockSection > <apex:form id="MyForm"> <B>Please Enter an Account Number : </b> <apex:inputText id="AccountNo" /> <apex:outputLink value="https://cs4.salesforce.com/apex/hello"> Go <apex:param name="id" value="001300000099rPu" /> </apex:outputLink>
</apex:form>
</apex:pageBlockSection>
</apex:pageBlock></apex:page>
Thanks lot in advance!
I think its not possible and I must say I am not 100% sure. The reason is, when you specify param, the URL is appended with
?id= automatically. So in your case since you want to open the account detail page (standard page), supplying id parameter is in different way (for eg: https://ap1.salesforce.com/00190000007V42O). Param will help you if you need to open a VF page after clicking on Go link (in case you have overridden the standard detail page with your VF page).
I hope you are clear.
All Answers
Ok here you go:
window.open(....., "_self") tells the browser to open thw new window in current page. If you don't want to open in the current page, just remove it.
Thanks a lot foe replyiing back.
I have gone thru the code it seems that you have used script.
My question was is it not possible to read and assign the value of the inputText object and assign it to the param of a link object ?
Would really appriciate your response.
Thanks
I think its not possible and I must say I am not 100% sure. The reason is, when you specify param, the URL is appended with
?id= automatically. So in your case since you want to open the account detail page (standard page), supplying id parameter is in different way (for eg: https://ap1.salesforce.com/00190000007V42O). Param will help you if you need to open a VF page after clicking on Go link (in case you have overridden the standard detail page with your VF page).
I hope you are clear.
Thanks for reply !