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.
Advice on Column sorting bBrowser please
Advice on Column sorting bBrowser please
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
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
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
-
- Posts: 28
- Joined: Tue Nov 17, 2015 4:12 pm
Advice on Column sorting bBrowser please
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)
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)
Advice on Column sorting bBrowser please
Thank you very much Oscar, I'll give that a go .