Retrieve Filter Value

FishermanFisherman Member Posts: 456
Quick question.

What's the syntax for retrieving the filter criteria that was chosen for a specific field in a dataport/report/etc..?

Comments

  • Miklos_HollenderMiklos_Hollender Member Posts: 1,598
    Look for GETFILTER in the help.

    Downloading the quick reference here in the downloads is also useful.
  • prasslprassl Member Posts: 24
    I hope, that this is what you mean:

    GETFILTER (FieldRef)

    for example

    myTextVar := "myFilteredTableField".GETFILTER;

    it returns the string as the filter was set before, like it does when the
    filter has been set on the record variable.

    cheers, m. :)
    ... I am not a programmer, I just write code.
  • lessilessi Member Posts: 33
    And don't forget, if necessary, to select the correct FILTERGROUP.
  • FishermanFisherman Member Posts: 456
    It is - Thanks.

    I was trying to call CurrDataport.GETFILTER (which would make perfect sense to me... I would think that GETFILTER would be a member of the dataport object...) and it was yelling at me.

    thanks.
Sign In or Register to comment.