Tag Info

Hot answers tagged

2

There is all sorts of ways to skin this cat. Add a Custom Action which can only be used once Use CSR to render a button for each item This all requires some coding. For quick prototyping I stuff HTML+JavaScript in a Calculated Column (and then instruct the 5 US$ an hour programmers in India to replicate the behaviour in more solid code, although to be ...


2

Why donĀ“t you use "OpenBinary" Methode of SPFile, hold the stream in Memory and save it to the ftp-Server?


2

Get a list of fields first, then iterate them, if needed check for conditions (read only, visible etc.) and then display the values: var clientContext = new SP.ClientContext.get_current(); var web = clientContext.get_web(); var list = web.get_lists().getByTitle("ListName"); this.listFields = list.get_fields(); clientContext.load(this.listFields); ...


2

Yes, definitely. No. But the real question is: why would you want to distribute these server-side DLLs? They only work on a SharePoint server...


2

SPQuery query = new SPQuery(); query.Query = @"<Where><Eq><FieldRef Name='Author' LookupId='TRUE' /><Value Type='Integer'>" + _id + @"</Value></Eq></Where><OrderBy><FieldRef Name='Created' Ascending='False' /></OrderBy>"; where _id is user's ID.


1

The method SaveAsTemplate is not exposed in CSOM API, there is a general suggestion opened: http://officespdev.uservoice.com/forums/224641-general/suggestions/6527561-expose-list-saveastemplate-for-csom-api Basically you can create lists using already existing custom templates, but programmatically you cannot create new ones. ...


1

You cannot use executeQueryAsync in a loop, the loop execution does not wait for the execute Query call completion(it is async). So try to load all items once and call 'executeQueryAsync' outside of the loop and also we should not create the clientContext and list objects inside the loop(if so, only the last object inside the loop will have correct context ...


1

Replace <Where> <IsNotNull> <FieldRef Name='CheckoutUser' /> </IsNotNull> </Where> with <Where> <Geq> <FieldRef Name="CheckoutUser" LookupId="TRUE" /> <Value Type="int">0</Value> </Geq> </Where>


1

I know this question is old but it might help someone doing Research on this. I recently wrote a script to figure out access rights and found something that might help. Here is a simplified Version from the object model to illustrate what i mean: Web -----> RoleAssignments -----> Member -------> ...



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