I have an interesting problem that is consistent with several different browses. I'm curious if anyone has a solution.
My dialog box has data displayed in the uppper half, and a browse ( xbrowse ) in the lower half. The data in the top corresponds to the selected browse record.
If I open the dialog, and have several records already displayed, they are shown correctly. Now, if I append a record, I don't have a problem with the display until I do a Save, at which time the browse resets with only the newly added item displayed at the top of the browse. A page up will show the other items, but that will also repostion the focus.
The Save button does the following ACTION ( oInv:save( ), oDiw:update( ), oLbxin:setfocus( ) )
oInv is the database object ( TDATA )
oDiw is the dialog which contains both edit fields and the browse
oLbxin is the browse
What we want to happen is to have the new record simply added to the bottom of the displayed items already showing on the browse. I've tried repositioning commands, but sometimes that doesn't make the browse highlighted item match the database item.
I would appreciate any thoughts anyone might have on this. It really annoys my clients.