xBrowse position on append

xBrowse position on append

Postby TimStone » Thu Sep 10, 2009 9:52 pm

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.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: xBrowse position on append

Postby ukoenig » Thu Sep 10, 2009 10:57 pm

Hello Tim,

First, Thank You for Your Response on my Tool-Update :lol: .

There is a Indexorder on FIRST.
With SET ORDER TO, there is no Sort anymore ( Natural Sort )
it means a APPEND BLANK will show the new Record on xBrowse-Bottom.
Image

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse position on append

Postby TimStone » Fri Sep 11, 2009 12:40 am

That would be problematic because I use a scope ... and I dont go into an append mode !

However, I just discovered that it happens the first time when I enter the browse because the highlight is on the first record. If I go to the bottom of the browse first, then it adds/displays correctly ! oLbx:gobottom(), oRec:append() etc.

Thanks ... problem fixed and tested !
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 75 guests