Now my clients want to have the ability to select another column. Here is the code for the initial display:
- Code: Select all Expand view
- REDEFINE XBROWSE oLbxo ;
DATASOURCE ::oOrders ;
HEADERS " Done ", "Paid", "Type", "W/O #", "Company", sLbl[4], sLbl[1], "Due Date", "Time", " Started ", " Paid ", " Status " ;
COLUMNS "ordnot", "Totals", "status", "wrkord", "ordcom","vehlic", "ordveh", "duedat", "duetim", "wrkdat", "paydat", "CliUs1" ;
JUSTIFY ,,2,2,,,2,2,2 ;
ID 390 OF oWdlg ;
ON DBLCLICK ( ::oWorkOrder:FullEdit( ::oOrders, oWdlg ), oLbxo:update(), oOrderList:LoadDisplayValues( ), oWdlg:update()) ;
ON CHANGE ( oOrderList:LoadDisplayValues( ), oWdlg:update() ) ;
AUTOSORT UPDATE
oLbxo:aCols[ 1 ]:SetCheck( { "CM1", "CM2" } ) // nil, .t. )
oLbxo:aCols[ 2 ]:SetCheck( { "CM3","CM2" } ) // nil, .t. )
oLbxo:aCols[8]:bClrStd := {|| { ::CELL_COL1( ), ::CELL_COL2( ) } }
// Provide the header gradient
oLbxo:bClrGrad := aPubGrad
oLbxo:bClrSel = { || { 16777215, 15512898 } }
// Set the styles
oLbxo:nMarqueeStyle := MARQSTYLE_HIGHLROW
oLbxo:nColDividerStyle := LINESTYLE_RAISED
oLbxo:nRowDividerStyle := LINESTYLE_RAISED
oLbxo:nHeadStrAligns := AL_CENTER
oLbxo:nStretchCol := STRETCHCOL_LAST
// Use for incremental search on opened database
oLbxo:bSeek := { |c| ::oOrders:Seek( Upper( c )) }
oLbxo:lSeekBar := .t.
I have indexes created for the correct columns, but if I select on one of the others, it uses the index for the full database.
In this example, how can I use the lSeekBar with ONLY the proper indexes. Clearly this xBrowse is defined as a resource.
Thank you. It is slipping my mind at this point.