Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have been unable to load a page showing a dynamicaly selected View. I can not just display the List itself (Although this would allow me to specify the View in the URL) because I need to modify aspects of the List via a CEWP on the same page. (I dont have access to SD where I work)

So, I tried to implement this code. It runs the onQuerySucceeded() function indicating it worked, but no the View displayed is not the "EOM Run" view.

...
existingview = viewcollection.getByTitle("EOM Run"); 
clientContext.load(existingview); 

clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded),     Function.createDelegate(this, this.onQueryFailed)); 
}

I tried to implement this example: http://www.avanadeblog.com/sharepointasg/2012/03/client-object-model-changing-list-views.html

I dont know what I am missing?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.