How to get current query while exporting through DIXF

Hi,

I want to fetch the current query while exporting the products.

Scenario.

Need to export products through DIXF based user selected language. If user does not select language, by default it should take system language.

please help me.

Thanks in Advance