You need to sign in to do that
Don't have an account?
ElenaCapta
Links on Object
Hi all,
now i try to create a SControl where the result are a fields of the result object and I whant that this results are a link to the object. Does somebody know how can i do this?
Thanks, and best regards!
Elena
Can you make a screen mock up of what you really want to achieve
Regards
var queryResult = sforceClient.query("Select Id, Name Case", layoutResults);
}
function layoutResults (queryResult) {
if (queryResult.className == "Fault") {
alert("There was an error: " + queryResult.toString());
} else {
if (queryResult.size > 0) {
var output = "";
for ( var i=0; i<queryResult.records.length; i++) {
var dynaBean = queryResult.records[i];
output += dynaBean.get ( "Name" )+" ";
}
Message Edited by ElenaCapta on 07-13-2006 09:01 AM
Message Edited by ElenaCapta on 07-13-2006 09:03 AM
Code:
Message Edited by ElenaCapta on 07-14-2006 01:51 AM
The %20 is added because you have a space in the URL you have created.
try www.whatever.com/ 2133 in you address bar and see what happens
you will see that the %20 is added before the 2133. (as a url can't contain a space)
To stop this from happening you can either:
1. try removing where the space is coming into your code (just after the /)
2. create the url slightley different. make a variable with the url in first. then add the / to the variable before using it in the hyperlink
var a=;
a= the id
a="/"id
then use (a) as the hyperlink. ##Hope this helps