Hello all
I am trying to use the locate method whith the following code:
VTPCon.Locate('ID_Emp;CCon', VarArrayOf(['nID_Emp;cClaveCon']), []);
But I can not locate the record. Is there something wrong?
---
I am trying to filter the same virtual table with the following code:
VTPCon.Filter := 'ID_Emp = ' + VTMov.FieldByName('ID_Emp').AsString;
VTPCon.Filtered := true;
---
Do am I missing something? Thanks and best regards!!
Filter and Locate
Filter and Locate
Last edited by FerCastro on Tue 08 Apr 2014 14:12, edited 1 time in total.
Re: Filter and Locate
Locate is orking fine, but the filter still doesn't works.
Any sugestion?
Regards!!
Any sugestion?
Regards!!
Re: Filter and Locate
Hello,
Judging by the code
You are setting the filter value in the VTPCon table, and the Filtered parameter value - in the VTPeriodoConceptos table. Please make sure you are working with one and the same table
Judging by the code
Code: Select all
VTPCon.Filter := 'ID_Emp = ' + VTMov.FieldByName('ID_Emp').AsString;
FNominaData.VTPeriodoConceptos.Filtered := true;
Re: Filter and Locate
Hello Alex!!
Working fine both procedures!
Thanks and best regards!!
Working fine both procedures!
Thanks and best regards!!
Re: Filter and Locate
You are welcome. Feel free to contact us if you have any further questions about VirtualTable.