Jun 22, 2012, 9:45 AM
50 Posts
topic has been resolvedResolved

Displaying error for concurrencyMode

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: XPages,Error Handling,concurrencyMode,save conflicts
  • Replies: 3
I'm kinda in a pickle here. I am using Tommy Valand's Custom Control for "enhanced" validation messages in my XPage to display "field" validation errors. I also want to set concurrencyMode="fail" (see article How to use concurrencyMode in XPages) and display the associated error message. However, Tommy's custom control doesn't display that particular error message.
I'm open to any suggestions on how to work around this. Can anyone think of a way to bind concurrencyMode to a Display Error (singular) control? Or perhaps add code to Tommy's custom control to get the error? Thanks.
Jun 22, 2012, 11:36 AM
129 Posts
Re: Displaying error for concurrencyMode
I've updated the control so that it should show any message. The "system" messages are shown above messages bound to controls.
Let me know if it works with concurrencyMode messages.
Jun 22, 2012, 6:28 PM
50 Posts
Re: Displaying error for concurrencyMode
 Thanks, Tommy. I grabbed the code before I left work today but it will have to wait a couple of weeks until I return from Italy to try it out! Wooohooo! Vacation.
Jul 6, 2012, 4:00 PM
50 Posts
Re: Displaying error for concurrencyMode
Hey Tommy! I'm back from Italy and was finally able to try out your updated code today. The concurrencyMode error does appear to work! Yahoo! It only seems to appear if there are no other validation ("field") errors. But I think that is normal behavior. I don't think the ConcurrencyMode check runs until all the other validation completes.
Thank you very much for your help!
Oh, one more note: the error message appears twice, once formatted as a label followed again with text formatted as the error text. Is that what you intended?
Document has been saved by another user - Save has not been performed   Document has been saved by another user - Save has not been performed