Tag Info

Hot answers tagged

2

The dataview web part is executed server side, so you can't use jQuery to manipulate the SelectCommand. You would need to remove rows from the DOM with jQuery after the web part has loaded. I would use jQuery to hide the web part initially. Then, make your SPServices call to get the user's Office. Then iterate over each row of the table and if the Office ...


2

Add this to your SPServices call: CAMLQueryOptions: '<QueryOptions><ViewAttributes Scope="Recursive"/></QueryOptions>', So: SP.SOD.executeOrDelayUntilScriptLoaded( 'SP.UserProfiles.js', "~sitecollection/Style%20Library/Scripts/jquery.SPServices-2013.01.min.js"); SP.SOD.executeFunc('SP.js', 'SP.ClientContext'); $(function() { var ...


2

It looks like you need to add this in before your completefunc to force ordering by Group then Title in the results returned, if not you need to do your own sorting after getting the results back: CAMLQuery: "<Query><OrderBy><FieldRef Name='Group' /><FieldRef Name='Title' /></OrderBy></Query>", Edit: I have verified ...



Only top voted, non community-wiki answers of a minimum length are eligible