Advice on Column sorting bBrowser please

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
Anonymous

Advice on Column sorting bBrowser please

Post by Anonymous »

Hi guys.

My question is this:

I have a bBrowser with 17 columns. Each column could be in any one of 3 possible scenarios - Finished, Not Finished or BOTH, depending on a logical value in the "JOBFIN" field.

My Client wants to be able to click on any column heading and sort ascending and descending "just like you can do in Excel" does this mean I have to write 3 indexes for each column, or is there a much more efficient way? I'm tipping there is, but it's eluding me atm.
User avatar
wriedmann
Posts: 3644
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Advice on Column sorting bBrowser please

Post by wriedmann »

Hi Jeff,
you can do that in Excel because it is static data.
If you need that in VO, you can either use a ListView (static data), or set an index for every column you need to sort on.
Personally, I'm using more and more listviews on a reduced data set.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
BiggyRat

Advice on Column sorting bBrowser please

Post by BiggyRat »

Ok, thanks for that Wolfgang :)
ohernandez@sistemas-liasa.com
Posts: 28
Joined: Tue Nov 17, 2015 4:12 pm

Advice on Column sorting bBrowser please

Post by ohernandez@sistemas-liasa.com »

Hi jeff,
I do:
oServer := oEvent:Control:Server
iSize := oServer:OrderInfo(DBOI_ORDERCOUNT)
FOR iPos:=1 upto iSize
IF cExpression=Upper(oServer:OrderInfo(DBOI_EXPRESSION,, iPos))
exit
ENDIF
NEXT

oServer:SetOrder(iPos)

swap the logic value for any captionclick, keeping record of the descend or not value and put a sign with a caption:valuelist.
oServer:OrderDescend(iPos,,true)
..
oEvent:Control:Redraw(#Caption)
BiggyRat

Advice on Column sorting bBrowser please

Post by BiggyRat »

Thank you very much Oscar, I'll give that a go :).
Post Reply