Checking Filter on Table through Code....

prasad.khorgadeprasad.khorgade Member Posts: 25
Hi..

If I am filtering table data & fetching it on form or Report.
So while coding How can I check the wheather the filter is applying on Table Data or not?

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    IF Rec.GETFILTERS <> '' THEN
      MESSAGE('You have applied filters');
    
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • garakgarak Member Posts: 3,263
    RecVariable.getfilters <- gives you all filters of the Recvariable as string
    RecVariable.getfilter(Field) <- gives you the filter of a selected field as string

    Regards
    Do you make it right, it works too!
  • Lee_DurrantLee_Durrant Member Posts: 16
    You may also need to check the FILTERGROUP, depending on how and where you are filtering:

    FOR i := 6 DOWNTO 0 DO BEGIN
    FILTERGROUP(i);
    MESSAGE(FORMAT(i) + ' ' + GETFILTERS);
    END;
  • prasad.khorgadeprasad.khorgade Member Posts: 25
    Thanks For your reply Guys...
Sign In or Register to comment.