I am new to SharePoint dev. Is there some way to change or filter (output) data in a SharePoint library from code.
I tried to use CAML query and set query to
defaultView and update
SPList but with no result. Then I tried to create a custom view and add it to the view collection (it works) but I don't know how set current view.
Are there some possibilities how to handle it? Basically I need set up a filter or CAML query from my visual web part for a document library.