General information
Category:
The Mere Mortals Framework
Title:
Using dummy fields into buffered table
Hi all
I have a business object to handle a view with buffer mode 5 (optimistic table). A couple of fields are created on the fly only to show come complementary data, like
Select *, ntom(0) as field1 from MyTable
On the PostRequeryHook method of my business object, I placed the code which fills the data for field1. While doing this, I’m taking care of restoring the field state to 1 (non modified).
The problem is that some events like Refresh (triggered by activate), check if the business object has changed. MM uses the GetNextModified function in order to check for changes on a cursor with buffer mode 5, and this function funds out somehow that a record has been modified regardless of the field state been set to non-modified.
Right now it seems to be solved by executing the business object Save method right at the end of the PostRequeryHook method, but I’m not happy with such approach.
I’d like to know how to get around this little problem. I need to show the extra data on those non updatable fields.
Thank in advance for any hints.
Oscar Corte
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only