Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro with qlik

Hi,

I had a doubt with a Macro, i have the code to export and save the document in csv but is it possible to filter the table in the macro?


Thank you

3 Replies
marcus_sommer

Here a few examples from the APIGuide.qvw (is in your install-folder by automation):

ActiveDocument.Fields("Month").Select "September"

ActiveDocument.Fields("Month").Select "J*"

ActiveDocument.Fields("Sales").Select ">1500"

- Marcus

vinieme12
Champion III
Champion III

Preferably use Trigger Actions

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
saimahasan
Partner - Creator III
Partner - Creator III

You can use these lines of code:

SET Doc = ActiveDocument

SET Field = Doc.Fields("X_REGION_DESC").GetPossibleValues

Doc.FIelds("X_REGION_DESC").SELECT "Great Lakes"