You need to sign in to do that
Don't have an account?
Mike Otter
Need guidance for Input fields to a query, displaying results on same/different page
New and mostly ignorant of Apex, I come to you for help. :)
I have a custom object that I want to search using two input fields from a VF page. Inputting the fields is straightforward but, since this is complicated (to me), I'm a bit lost as to a working solution. I think I need to do the following:
What adds to my frustration is knowing that this is the most basic of exercises. A step beyond "Hello world" is running a query to show just your Cases, not all of them. Apex's versatility means there's no one solution to any problem but, yegads, what I want cannot be that complicated--I just can't figure it out.
Thanks for letting me vent and, as always, thanks in advance.
Mike
I have a custom object that I want to search using two input fields from a VF page. Inputting the fields is straightforward but, since this is complicated (to me), I'm a bit lost as to a working solution. I think I need to do the following:
- accept the input as strings in a custom controller or an extension (am going to try an extension today)
- build the query
- execute the query (my code always says the input variable is null)
- populate a list datatype
- display the list on the same page's bottom half (previously hidden) or a second page entirely (the former would be cool but don't care at this point)
What adds to my frustration is knowing that this is the most basic of exercises. A step beyond "Hello world" is running a query to show just your Cases, not all of them. Apex's versatility means there's no one solution to any problem but, yegads, what I want cannot be that complicated--I just can't figure it out.
Thanks for letting me vent and, as always, thanks in advance.
Mike
Thanks.
All Answers
http://blog.jeffdouglas.com/2010/07/13/building-a-dynamic-search-page-in-visualforce/
Thanks.