I am relating two databases, with the corresponding indexed fields, I use Xbrowse lSeekBar to be able to search.
It allows me to search all the fields in the main table but NOT the related table field.
In the example, I can't search for "State name"
Thanks,
[img]https://i.ibb.co/mN2y4PT/xbrow2.gif" alt="" loading="lazy">
[/img]
It allows me to search all the fields in the main table but NOT the related table field.
In the example, I can't search for "State name"
Thanks,
#include "fivewin.ch"
REQUEST DBFCDX
//----------------------------------------------------------------------------//
function Main()
  local oDlg, oBrw Â
  *SetGetColorFocus()
 Â
  FERASE( "STATES.CDX" )
  Use STATES alias "states" NEW exclusive VIA "DBFCDX"
  FW_CdxCreate()
  Set order to TAG CODE
  go top
 Â
  FERASE( "CUSTOMER.CDX" )
  Use CUSTOMER alias "customer" NEW exclusive VIA "DBFCDX"
  FW_CdxCreate()Â
  go top
 Â
  SET RELATION to field->state INTO states
  Define Dialog oDlg size 1000,600 PIXEL TRUEPIXEL
 Â
  @ 10,20 XBROWSE oBrw SIZE -20,-20 PIXEL OF oDlg ;
    Columns "FIRST","LAST","CITY","STATE","states->name";
    Headers "First","Last","City","State Code","State Name";
    DATASOURCE "customer" ;
    AUTOCOLS AUTOSORT CELL LINES NOBORDER
 Â
    WITH OBJECT oBrw
      :nMarqueeStyle := MARQSTYLE_HIGHLROW
      :lSeekBar:= .T.
      :lIncrFilter  := .F.   Â
      :CreateFromCode()
    END
  Activate dialog oDlg centered
return nil[/img]
Jorge
--------------------------------------------------
Fivewin 18.10 - Harbour - BCC 7 - PellesC
--------------------------------------------------
--------------------------------------------------
Fivewin 18.10 - Harbour - BCC 7 - PellesC
--------------------------------------------------