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
Matt FolgerMatt Folger 

How to build a user input driven query screen?

I need to create a screen that looks somewhat like this: A look-alike of the screen that I need to build

Seems weird to me that having more user-driven search terms isn't part of the native functionality of the platform, does this have to be developed in VisualForce?
Best Answer chosen by Matt Folger
Matt FolgerMatt Folger
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AbPIIA0

All Answers

Reinke, ChrisReinke, Chris
You can use information from a user in your query using the Database.query(String); function. You build the SOQL query as a string and use that to call the data from the system. You do want to make sure you use the escapeSingleQuotes() function when you get the information from the user to avoid SQL Injection risks.
Cloud_forceCloud_force
You can do this using visualforce page and controller shoulnt be a problem.

thanks,
http://www.forcexplore.com/2014/01/salesforce-interview-questions-part-i.html
Matt FolgerMatt Folger
Hi, SFDC_Wave your link doesn't work for me, it says:

Sorry, the page you were looking for in this blog does not exist.
Home
Subscribe to: Posts (Atom)
Matt FolgerMatt Folger
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AbPIIA0
This was selected as the best answer