- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- How to show error message on record during list-ba...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to show error message on record during list-based editing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-24-2012 01:21 PM
When you enable editing through a list controller, how do you get any on-save error messages to be displayed only on the record(s) that have an error? The <apex:message> and <apex:messages> tags do not appear to work within a <apex:pageBlockTable> tag for this purpose.
I have only been able to get an error message to show up at the top of the page, or on every single record displayed (it is displayed for both the record that caused the error and all others).
Unless there is a solution, then editing in lists is essentially unusable, because there's no way to provide a user with feedback about which specific row triggered an error.
This is related to the following two pages of documentation.
Visualforce Developer's Guide, version 24.0
> Standard List Controllers > Editing Records with List Controllers (http://www.salesforce.com/us/developer/docs/pages/
> Advanced Examples > Mass-Updating Records with a Custom List Controller (http://www.salesforce.com/us/developer/docs/pages/
Also, it is related to the Force.com Discussion Board posting at http://boards.developerforce.com/t5/Visualforce-De
Navigator Management Partners, LLC
http://www.linkedin.com/in/jonfreed
Re: How to show error message on record during list-based editing
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-28-2012 01:18 AM - last edited on 02-28-2012 01:19 AM
Hi Jon Freed.
I think we can't able to display the error message instead we can display only the error record in list view.For this to achieve we can use Database.insert() method .
Go through this link it will help you
http://blog.jeffdouglas.com/2009/11/02/using-salef
thanks,
saravanan selvaraj
Re: How to show error message on record during list-based editing
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
02-28-2012 04:02 PM
Thank you for your response, but it does not answer my question, as far as I can tell.
You actually are able to display the error message, but you are not able to display it next to or on just the specific record that caused it (as far as I can tell). Instead, you can display the message at the top of the page, or you can display the message on every single record (even the ones that didn't cause the error).
It's hard to believe that Salesforce doesn't have better grid-based editing for sets of records. Other solutions, e.g. Siebel, had it in web pages many years ago. For all of its power, Salesforce is still very web 1.0 versus web 2.0, with its limitations on what you can edit without going to an Edit page for one specific record. Sure, we could create a lot of custom Apex and VisualForce to do better grid-based editing, but that much development shouldn't be necessary. (Okay, I'll get off my soapbox now.)
Navigator Management Partners, LLC
http://www.linkedin.com/in/jonfreed

