Problem about set table filter on flowfield

mootoonmootoon Member Posts: 47
I want set table filter Date <WORKDATE. How to solve this problem?
AAA

Comments

  • krikikriki Member, Moderator Posts: 9,118
    You mean you want the total of the flowfield filtered by date?

    In code:
    SETFILTER("Date Filter",'<%1',WORKDATE);
    

    as a user:
    hit Shift+F7 and in the data-filter field, put <4/5/2006
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • mootoonmootoon Member Posts: 47
    No I mean in table filter you must lookup and choose field you want to filter and what type you want to filter such as field , filter , const and then
    choose condition.
    AAA
  • sggsgg Member Posts: 109
    I do not think you can do that.
    what you can do is what Kriki suggested.

    Add that to your form that displays the Data of the
    OnAfterGetRecord Trigger of the form.
    i.e

    OnAfterGetRecord()
    SETFILTER("Date Filter",'<%1',WORKDATE);
    CALCFIELDS(YourFlowField);


    That should solve the problem.
    But not at Design Level.
    Sunday, Godwin G
  • krikikriki Member, Moderator Posts: 9,118
    sgg wrote:
    I do not think you can do that.
    what you can do is what Kriki suggested.

    Add that to your form that displays the Data of the
    OnAfterGetRecord Trigger of the form.
    i.e

    OnAfterGetRecord()
    SETFILTER("Date Filter",'<%1',WORKDATE);
    CALCFIELDS(YourFlowField);


    That should solve the problem.
    But not at Design Level.
    It is not possible. This is the best way to do it.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.