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
amar joshiamar joshi 

Lead convert page in VF

hi all

well i want to make lead convert page in VF

now in standard salesforce system when we click convert button then Lead convert() call made. as per shown in API devloper guide.

now i m thinking this but may be i m wrong:

now when we use standard controller we can use the standard Sobject properties.

like if we use Account standard controller then we can get the fields name and value just with writing the field name

also we can  save that page by using the {!save} method that is standard for Account

so can it possible with the "lead"-- standard controller ??

(1) can we use that Lead convert() call for converting the lead in lead standard controller if yes then how????

(2) how can we display  the record owner field without passing the quarry perameters for record owner

        because here for convert the perticulert lead we have to pass the perticuler lead's quarry perameter...

or if i m worng about this then how it possible with custome controller

please give me some idea that i can work out this

Message Edited by amar joshi on 05-28-2009 10:24 AM
If you are using standard Lead controller then you can find

Lead Owner Full Name as  {!Lead.OwnerFullName}
Lead Owner Id as  {!Lead.OwnerId}
Lead Owner First Name as  {!Lead.OwnerFirstName}
Lead Owner Last Name as  {!Lead.OwnerLastName}

there is no convert() method on the standarController, so you will have to write your own.

the StandardController works by building up the query based on the id you passed in, so you will need to have that query parameter. How else would you know which record to operate on?