Where were you two days ago? :) That's exactly what I wound up doing after spending far too long examining the various SP js classes to work out how they achieved it internally.
I wound up writing my own average code to strip out the filter key/value pairs and then apply them dynamically to the query. It works but is also limited to text/choice fields at the moment. I might take it a step further and get the field type so I can modify the query's value type for each field as required. Regards, Paul From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Ishai Sagi Sent: Friday, 15 August 2014 10:06 AM To: ozMOSS Subject: RE: Get currently filtered view using JSOM >From the URL query string? From: ozmoss-boun...@ozmoss.com<mailto:ozmoss-boun...@ozmoss.com> [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Paul Noone Sent: Wednesday, 13 August 2014 9:01 AM To: ozMOSS Subject: Get currently filtered view using JSOM Hi all, Does anyone know if it's possible to get the view query from a list view page that will include any filters applied by the end user? view.get_viewQuery() will return the CAML for the view itself. I need to get any user applied filtering. Regards, Paul The content of this email is confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed to, or used by, anyone other than this addressee, nor may it be copied in any way. If received in error, please contact the author and then delete the message from your system. Please note that neither Keller Australia nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). Visit http://www.keller.com.au/ for more information. ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ The content of this email is confidential to the intended recipient at the email address to which it has been addressed. It may not be disclosed to, or used by, anyone other than this addressee, nor may it be copied in any way. If received in error, please contact the author and then delete the message from your system. Please note that neither Keller Australia nor the sender accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any). Visit http://www.keller.com.au/ for more information. -------------------------------------------------------------------------------- This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal --------------------------------------------------------------------------------
_______________________________________________ Sponsored by Infotext - Amazing Search for Microsoft SharePoint - http://www.infotext.com/ ozmoss mailing list ozmoss@ozmoss.com http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss