Im trying to construct a CAML query from the current Listview filter settings. I dont know in prior how many filters the user may set.
Somewhere in Sharepoint (Client or Server, I dont know) this functionality must already exist, since clicking the default button "Save this View" does exactly this.
My fallback would be: create a new view from current filter settings (trigger action "Save this View"), derive the CAML query from the new view and delete the view immediatly... but this seems like a very ugly solution to me.
Anybody with a solution or a hint?