You need to sign in to do that
Don't have an account?

display selected records in visualforce page
Hello Group ,
I wanna display selected records in vf page by clicking custom button in page layout. To achieve this i created a custom button in page layout and a visualforce page(standard controller) but iam getting
all records in vf page when i click on a custom button in page layout.
Note : when i click that custom button it displays a vf page with all records but i want only selected records
pls help me to achieve this
thanks fopr giving reply (in advance)
Hi ravi,
see below controller example for contact Object. Here in lstContact you will get selected contact records.
You have to take Your sObject name instead of Contact.
Apex Class:
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
All Answers
hi ravi,
Which type of button you have created? List Button or Detail Page Button?
Thank You,
Hitesh Patel
Thanks for giving reply hitesh90
Button type is list button
thanks and regards
Hi ravi,
see below controller example for contact Object. Here in lstContact you will get selected contact records.
You have to take Your sObject name instead of Contact.
Apex Class:
Important :
Hit Kudos if this provides you with useful information and if this is what you where looking for then please mark it as a solution for other benefits.
Thank You,
Hitesh Patel
SFDC Certified Developer & Administrator
haaaaaaaaaaaaa it is working
thanq hitesh
thanks for giving reply
can i have the visual force code and apex code meanwhile for displaying selected records in seperate page..?
Regards,
Siva