Hi
I need to create a filter for my table.
I have 2 field ( famille, type ) and i want to filter only the record where the 2 fields have the same value.
I try this , and thats dont work:
Table.SETRANGE(Table.Famille,Table.type);
Best regards
Kangal
0
Comments
and where do you need this? form/report?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I try several position to place the text.
I need it on the onopenform and on the onlookup
I try this on the onlookup:
FormFamille.LOOKUPMODE := TRUE;
FormFamille.EDITABLE := FALSE;
SETFILTER(Type,Famille);
IF FormFamille.RUNMODAL = ACTION::LookupOK THEN BEGIN
FormFamille.GETRECORD(Rec);
END;
CLEAR(FormFamille);
CurrForm.UPDATE(FALSE);
dont work .
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
FormFamille.LOOKUPMODE := TRUE;
FormFamille.EDITABLE := FALSE;
SETFILTER(Type,Famille);
FormFamille.SETTABLEVIEW(Rec);
IF FormFamille.RUNMODAL = ACTION::LookupOK THEN BEGIN
...
IF I use Setrange , the table are filtered but with the '' value.
Thats dont work.
Another idea ?
Best regards
Like in this example:
famille type
Record1 A A <----
Record2 B A
Record3 C C <----
In that case you have to read every single record.
You could work with marks like in this post:
http://www.mibuso.com/forum/viewtopic.php?f=14&t=2673
Or you could work with a temporary table.
NAV Developer
SalesHeader.SETRANGE("Document Type", SalesHeader."Document Type"::Order);
IF FORM.RUNMODAL(FORM::"Sales List", SalesHeader) = ACTION::LookupOK THEN
MESSAGE(SalesHeader."No.");