In FIRST xBr I do
oBrw:bChange:= { || ( oRs2:SetFilter( 'subcli= oRs:Fieldget(2) ' ) , oRs2:Update(), xbCli:Refresh(),xTbx:SetFocus() ) }
Hi friends.
I have two xBrowse,
the one with clients and the two with accounts. (one clients has more than 1 account)
THE FIRST xBrowse
FWCONNECT oConsql HOST chost USER cUser PASSWORD cPassword DB cDatabase
oRs := oConSql:RowSet( "select * from clientes" )
oRs:SetOrder(1)
REDEFINE XBROWSE oClient ID 110 Of xDlg1 DATASOURCE oRs
THE SECOND xBrowse
oRs2 := oConSql:RowSet( "select * from cuentas" )
REDEFINE XBROWSE oCuentas ID 115 Of xDlg1 DATASOURCE oRs2
In the ON CHANGE of THE FIRST xBrowse
try to show in the SECOND only the account correnponding to the client in the ONE.
I used Ordscope with CDX, but now i don't know.
oRs:SetFilter(numberofclient) not work.
Thank you.
Best regards
Ruben Dario Fernandez