You need to sign in to do that
Don't have an account?
Nishan
Custom list button for searching records
Hi Everyone,
I am creating a custom list button for an object. The record Id is entered in the prompt window after the button is pressed. Is it possible to display the result in the default salesforce list itself using javascript? If not how can I display the results since visualforce is not enabled in Force.com ?
Hi Nishan,
I found one javascript in which we can run SOSL query to search records, it works fine. But I dont able to find any method to set this result to list view page.
All Answers
Hello,
In force.com sites we use visualforce pages only, are you refering to site.com sites?
Hi Vinita,
I am sorry for the mistake. When I said visualforce pages I was referring to Apex. I added the same question to Saleforce community thats why I mentioned about Force.com. Is it doable with just Javascript ?
Hi Nishan,
Sorry i am not able to understand your requirement, is this like you have a force.com site and on that site you have a visualforce page and then you have a button and when the button is click the records should be shown in default salesfoce list.
Now what does default salesforce list means, do you mean List Views?
OR
There is no involvement of sites and its within your Org?
Hi Nishan,
Actually I am not able to understand your requirement properly. But as per my understanding let me give you one idea.
Create on List button (javascript)
and use below javascript
Add this button on list view page. Click on that button give record id and click on ok. It will redirect you to that record standard page.
Let me know if you want something different.
Hi Dapanchal,
My requirement is somewhat similar to what you have suggested. But instead of redirecting to the record standard page I want to view the details of records that matches my query in the list view itself. Also I need to search for records with criteria other than the record Id. I know it can be done by editing the list view itself. Is there any way to do this with a button to make it easier to search for records.
Hi Vinita,
I hope my problem is now clear to you after reading Dapanchal's suggestion. Don't worry about visualforce or orgs, I just want to display records based on some input from a button (via prompt in Javascript) in the list view of an object. This function can be easily obtained by editing the list view. I just want to create a button to make it easier to search for records.
Hi Nishan,
I found one javascript in which we can run SOSL query to search records, it works fine. But I dont able to find any method to set this result to list view page.
Hi Dhaval,
Thanks for the link. I will check it out.