How to filter like ...?

yukonyukon Member Posts: 361
Hi Expert,


I want to filter like "Company No.=FIELD(Company No.)". Above filter is copy from (Form 5050 -> Menu - > Relate&d Contacts(Properties - RunFormLink). That one is form level. So i want to move code.

I declare Cont,Cont2 (Record Contact) and Cont2 is base on Cont.Company No. But :(
Please give me a idea.

Best Regards,
Yukon
Make Simple & Easy

Comments

  • navnaidunavnaidu Member Posts: 15
    Hi yukon,

    Just create the New Muneitem asRelate&d Contacts Test and write the following code than test.

    Here Cont as Contact Record Variable it is already there in 5050 Form. Now just create the ContList as Contact List Form Variable.

    Cont.reset;
    Cont.SETRANGE("Company No.","Company No.");
    ContList.SETTABLEVIEW(Cont);
    ContList.RUN;

    Check the Default and Customized one.

    Regards,
    gbnaidu.
Sign In or Register to comment.