• Sasha Manford
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies

Hi,

 

I am generating a sequence number using custom setting. This sequence number is required only for a particular type of record. So I chose custom setting. Actually I have a new problem now with the sequence number generation. Two of the records are having the same value. What I do is, I access the custom setting value when the user clicks on Save button, assign it to a field and then update the custom setting and save the record. What I thought was, since the custom setting  record access and updation will take only few milliseconds, unless and until the user clicks on Save at the same time, this wouldn't have been possible. Probably I am missing something. Can anyone please give me some pointers on this? Are there any alternate ways? Thanks a lot.

 

  • December 05, 2011
  • Like
  • 0