Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using dummy fields into buffered table
Message
From
22/05/2002 06:58:00
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Using dummy fields into buffered table
Miscellaneous
Thread ID:
00659807
Message ID:
00659807
Views:
54
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
Map
View

Click here to load this message in the networking platform