#### Goal
Use `DataFunctions` API to control the Limited by > Filtered/Marked rows options.
#### Issue
The [DataFunctions API](https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/?topic=html/N_Spotfire_Dxp_Data_DataFunctions.htm&_ga=2.194354413.155609001.1639415917-137239512.1626467940) doesn't seem to expose this option.
DataFunctionInputCollection.SetInput takes an optional list of DataSelection objects which can be marking selections or filter selections.
@Magnus, the current API allows programmatic approach to:
Pass in value to Data Function
https://community.tibco.com/wiki/how-pass-value-input-parameter-data-function-tibco-spotfire-using-ironpython-scripting
Pass in expression to Data Function
This is a hack to set Data Table input
https://community.tibco.com/questions/refer-data-table-input-data-function-iron-python
Within Data Function config - i.e., Edit Parameter > Input Parameters - for Input Handler of type Columns, there are 2 options to Limit by at the bottom section:
Filtered rows
Marked rows
The request is to enable API to touch these 2 options.
Can you describe what you want to achieve? A data function has input and output parameters that can be columns and tables in the document, but cannot access the document directly during execution. Perhaps you should consider using a custom tool (or another extension type) or an IronPython script.