Sandy Blondino
15th March 2011, 15:40
Hello,
I have a question regarding the function mark.occ.

I'm using it in my program and it works great, like it should.
The problem is the annoying message that pops up when the record is marked. The message is 'Record modified by other user; new values are displayed'.
How do I get rid of this message?

Thanks for any help,
Sandy

mark_h
15th March 2011, 15:53
Is this while you are testing? Are you sure you are the only one accessing the records?

Sandy Blondino
15th March 2011, 16:04
This happens in the test company while testing, and I'm 100% sure that no one else is accessing those records. It's a custom table and session.

I was hoping there might be parameters on the baan function that could be set differently to control the pop-up message.

Sandy

Sandy Blondino
15th March 2011, 16:29
The session where I'm using the mark.occ function is a subsession called by a main session. I guess it is possible that the main session is accessing the custom table as well, and that's what's causing the message to pop up.

Does that sound like a reasonable explanation?

Sandy

vahdani
15th March 2011, 17:09
Hi Sandy,

did you by any chance use do.cc() function to examine the occurences to determine which one you want to mark?

I had done this a few days ago and I was getting the exact same message about the record beying modified by other user. I changed to do.occ.without.update() and the message disappeared!

Sandy Blondino
15th March 2011, 17:23
I changed my function to use do.occ.without.update() and it works!

Wow, that was easy.

Thanks for the suggestion. :)
Sandy