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

Custom Controller Help
Hi All,
I would like display all open cases where priority = "high" on one page with the "subject" field already open for editing.
Can anyone help me by showing me what the custom controller would look like and how the page would be built?
PS: This is more like a report but with the fields all open for editing. I would then make the changes to each field and hit "submit" to post all changes at once
I would like display all open cases where priority = "high" on one page with the "subject" field already open for editing.
Can anyone help me by showing me what the custom controller would look like and how the page would be built?
PS: This is more like a report but with the fields all open for editing. I would then make the changes to each field and hit "submit" to post all changes at once
First, go to Setup, User Interface. Be sure that In-line Editing and Enhanced Lists are both checked/enabled.
Then in the Cases tab, create a new list called High Priority.
Set the criteria for the list (like Status <> Closed and Priority = High), and set the fields to include in the list (Case Number, Account, Contact, Subject, etc.).
When the list is displayed, you can edit the subject by clicking on it. Also, you can edit multiple cases at the same time by selecting them and then editing a single field. When you save, you are prompted to edit the immediate record or all checked records.
If you still need a Visual Force page, let me know.
Thanks, I was not familair with the Enhanced Lists feature.
My only concerns are that the new display takes a lot longer to load on my computers (using IE7 and slow CPU) and that I have no button to "mass edit" records.
If its not too much trouble I would be most appreciative to see how you would build the visual force page. I am particularly interested in seeing how you bring in data with certain criteria into a page. This was something which I did not entirely understand from the training documentation on Vforce.
Thank you!
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&thread.id=5522
I'm sure there will be a way to get the custom controller to do what's needed.
This is the code for the Visual Force page:
You can create these in a developer account. Note the name you use for the visual force page. For example, call it editcases.
Once that is done, you need to create a custom button/link that links to:
/apex/editcases
The custom button can be on the home page or on the Cases Detail page or on the the Cases List page.
There is not test code included, but you will need that to move the code to production.
Try all this and come back with more questions.
Thanks a million!
I just tested this and it works perfectly!
Exactly what I needed to accomplish my goal + you have taught me the foundations of creating custom controllers.
Thanks again!
Any good references to where I can learn about test scenrios?
Here is the updated controller code, with the test code.
And try reading the examples in the Visual Force Pages reference.