You need to sign in to do that
Don't have an account?
sgum
get a parameter in a url
hi, everybody
I added a formula field to an object with this content:
HYPERLINK("https://na3-api.salesforce.com/secur/frontdoor.jsp?sid=" & GETSESSIONID() & "&retURL=/servlet/servlet.Integration?lid=01r500000009WP3=1¶m=a_parameter", "open")
This place a link that open a web-tab in my apeexchange app with a s-control.
My cuestion is:
how can I get the value of the parameter "param" (a_parameter) in the s-control placed in the web-tab?
thanks in advance
I added a formula field to an object with this content:
HYPERLINK("https://na3-api.salesforce.com/secur/frontdoor.jsp?sid=" & GETSESSIONID() & "&retURL=/servlet/servlet.Integration?lid=01r500000009WP3=1¶m=a_parameter", "open")
This place a link that open a web-tab in my apeexchange app with a s-control.
My cuestion is:
how can I get the value of the parameter "param" (a_parameter) in the s-control placed in the web-tab?
thanks in advance
Could you plese more explain about your reply ?
It's a best practice which you write a sample code.
Thank you!
In this specific case we have the following formula that is generating the url and <a> tag:
HYPERLINK("https://na3-api.salesforce.com/secur/frontdoor.jsp?sid=" & GETSESSIONID() & "&retURL=/servlet/servlet.Integration?lid=01r500000009WP3&ic=1¶m=a_parameter", "open")
and inside the target scontrol I can add something like:
<script>
var theValueOfA_Parameter = '{!$Request.a_parameter}';
</script>
which will be returned to the browser (given that a_parameter == 123456):
<script>
var theValueOfA_Parameter = '123456';
</script>
$Request
The s-control below calls this snippet using the INCLUDE function, sending it the parameters for both the title and theme of the HTML page it creates.
Message Edited by Doug Chasman on 02-09-2007 06:51 AM
I have an inline s-control that creates the following link:
https://na3.salesforce.com/servlet/servlet.Integration?lid=01N500000000ZKo&a_parameter=0015000000I0etwAAB
Where 01N500000000ZKo is the Id of the s-control and 0015000000I0etwAAB is the account Id I want
to pass into the s-control as a parameter.
The s-control is a simple redirect control, allowing me to open up the account id in the same window
without creating the double tabbing effect:
< script language="JavaScript">
var param = "{!$Request.a_parameter}";
param = "/" + param;
function redirect()
{
parent.frames.location.replace(param);
}
redirect();
< /script >
Hope that helps!