server-client-python icon indicating copy to clipboard operation
server-client-python copied to clipboard

how to put the '(All)' value in filter by using req_option

Open irisx0719 opened this issue 1 year ago • 1 comments

Describe the bug I have several filter put in report, the original view is setting filter as value 'a' and when I pulled the data through script, I want to include them all, I used req_option and set the value as '(All)', but there is no changes

To Reproduce.

po_req_option.vf('Risk Category', '(All)')

Results no thing different compare to the original view data

NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.

irisx0719 avatar Oct 15 '24 17:10 irisx0719

So you have a view that has this data

[Risk Category, A] [Risk Category, B]

and a filter on the view is set to show only A

I don't think using the special value '(All)' is accepted through the API. You probably need to explicitly pass in all the possible values, e.g. po_req_option.vf('Risk Category', 'A&B&C') This is based on the info at https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_filtering_and_sorting.htm#Filter-query-views

jacalata avatar Jan 03 '25 23:01 jacalata