2,997 reputation
2720
bio website
location Norway
age 27
visits member for 4 years
seen 4 hours ago

2d
awarded  Custodian
2d
reviewed Approve suggested edit on How to change URL for SharePoint:SiteLogoImage
2d
comment Get webpart's Zone Id via CSOM
Same for REST it seems, ref: /_api/web/getFileByServerRelativeUrl('/SitePages/Home.aspx')/GetLimitedWebPartM‌​anager()/WebParts
Apr
14
comment How to access the content of HTTP page from HTTPS page?
Using the Proxy API is a cool idea. I think you must have an app context though, which I find a bit strange (since it does not have to be app-specific)
Apr
14
comment Get ContentType name with select fields
I tried on 15.0.4569.1000. Neither any of the approaches above, or copied directly from your answer, either with direct opening in browser or with application/json;odata=verbose (as I think is what you are using)
Apr
14
comment Get ContentType name with select fields
This actually works for you? It does not for me, and I have a very strong feeling it does not for OP either
Apr
14
comment Use jQuery to make a “column” on the default view?
Ajax does not have to fail, it just means that the DOM is populated after your code tries to work on it. There are several ways to test this, like a simple console.log of your selector result, or a debugger statement for the same purpose, e.g., console.log($('#onetidDoclibViewTbl0 tr:first').length). Other ways is to keep an eye on the network transfers, to see if the content is actually loaded through XHR
Apr
14
comment Get ContentType name with select fields
Yes, I'm starting to think this might be a SharePoint bug actually. ContentType is a bit special, but it should work
Apr
14
comment What is difference between SharePoint REST and ODATA?
I think something as simple as The difference is that OData is a specific protocol; REST is architecture style and design pattern. should suffice
Apr
14
comment What is difference between SharePoint REST and ODATA?
The reason why I posted the link you reference as a comment on the question is because I'm not sure if it is really really SharePoint related, and perhaps a duplicate from SO (if that is even possible to tag here)
Apr
14
comment What is difference between SharePoint REST and ODATA?
stackoverflow.com/q/2458407
Apr
14
comment Get ContentType name with select fields
How incredibly odd. According to msdn you should be able to use the layout you have (.../Items(1)?$select=ContentType/Description&$expand=ContentType/Description). I did a quick test and this works: $select=*&$expand=ContentType (but doesn't help of course), as well does ...Items(1)/ContentType/Description and .../Items(1)/ContentType?$select=Description.
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
That does sound like a horrible solution, but yes in theory that should work. Any button of type submit on the page should trigger a postback which should work as expected.
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
If you have a completely custom form, then you should be able to edit the XSLT and just remove the buttons from there
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
This is for 2013, and ListFormWebPart (I'm guessing you might be using both 2013 and this Web Part)
Apr
14
answered How to remove the save and cancel buttons from Custom SharePoint List form(New form)
Apr
14
answered SP2013: Get item by id from javascript function?
Apr
14
comment Event receiver Causes Problem while adding items to a list
One way to disable the event receiver is to call EventFiringEnabled = false ref my link in comment in question.
Apr
14
revised SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?
Cleaned up answer, bulletpoints, code example
Apr
14
comment SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?
@ElliotWood: Yes, they should not initialize the object. In provider hosted apps you do something like SharePointContextProvider.Current.GetSharePointContext(HttpContext).CreateUserC‌​lientContextForSPHost() instead of just new ClientContext.