function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steve DSteve D 

Passing ID.s through custom links... (Print Anything)

Hi, I'm trying to set up a custom print view based on Salesforce.com Print Anything feature but my problem is probably more applicable than that in that it concerns passing variables through custom links.
 
Currently from the accounts page I have the following custom link defined:
 
{!URLFOR(
$SControl.PRINTANY__PrintAnythingDriver, Account.Id,
[packageId="BriefingSheet",debug="0"])
}

 Then I have the following defined in a SOQL query set up as a print package:
Select a.AccountNumber, a.Description, a.Fax, a.Id, a.Name, a.Phone, a.Website,a.Short_Description__c from Account a 
WHERE a.Id = 'Account.Id'

 Obviously this doesn't work else I wouldn't be asking for help. The print package set up is fine as it work perfectly If I hard code the Account.Id in to the print package, but this isn't exectly what I want to do!
 
All help greatly appeciated.

 
Steve DSteve D
Update: The account Id is being passed in the URL as ?eid=xxx
(*why eid?!)
 
The question is how do I take the xxx from the URL and filter the SOQL query with it. In PHP I'd use an HTTP GET VAR - is there something similar in sforce?
 
 


Message Edited by Steve D on 04-07-2008 08:52 AM
Rajesh ShahRajesh Shah
You can use the following thing in SControl :
"{!$Request.eid}";

Hope this helps