Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private data session updates not showing up in indexes
Message
From
20/06/1999 13:00:28
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231826
Message ID:
00231913
Views:
16
>>I have a system running that uses data stored in a Misc_Table table. The user is presented with choices from various combo boxes loaded with data mainintained in this table. I use various index tags depending on the combo of interest - County, Intake Reason, ... I have developed a "RightClick" method that allows me to maintain the table on the fly from within other form. The right click calls a maintenance form and passes the appropriate information ie Add, Edit, General and what index .... The maintenance form is called using a PRIVATE data session ( I would like to keep it this way to preserve my sanity tracking who's on what ).
>>
>>This workes fine except I just noticed that when I add new records to the table they are not showing up in the indexes. I don't understand.
>
>Do mean in the indexes or the comboboxes? You will need to issue a requery and/or repopulate the combos after changing their sources tables.

I have a requery in the rightclick method to update the combos on return.

Below is my response to Peter's suggestions it adds pertinant information.

I was able to do some more research on this after I sent my first letter. It seems to be something along the lines you are stating. I found some of my combos worked - refrencing the exact same maintenance form. So, I made every single property and method the same between one that did work and one that didn't - no effect. Then I changed the Read Only flag on my default data session ( your solution ). Some then worked but others still failed. I then examined the tables directly. Sure enough the data was there just not in the index and I noticed by cycling the Set deleted On/Off I could get the data to appear and disappear. Finaly I packed and or reindexed the files and the data appeared fine. I can't do this in the production environment as it requires exclusive access to the file which by definition I don't have.
A this point I am again stuck.

Thanks
Terry

PS I am on VFP 6 with one service pack.
It is impossible to make programs idiot proof. Idiots are too cleaver.

MCP( Tcp/Ip )
Previous
Reply
Map
View

Click here to load this message in the networking platform