Reputation
4,566
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 10 25
Newest
 Yearling
Impact
~242k people reached

2d
comment Retrieve data from listdata.svc of an FBA site using jquery
Look for anything, any text at all. Sometimes different browsers can give better error messages as well. Feel free to post messages from the console here (perhaps through pastebin/gist).
May
25
comment Retrieve data from listdata.svc of an FBA site using jquery
Check your browsers dev tools console, usually F12
May
21
comment JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)
@MdMazzotti no I don't think it would directly, but with some change it should be possible. I'm a bit reluctant to say so, but perhaps with a setTimeout(function(){...});, or perhaps a trick with promises
May
21
comment JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)
Here is another example of two levels (Fetching first user and first group for that user, and first list with first item for that list): Code, Rendered, Requests
May
21
comment JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)
@MdMazzotti The first call to execThen will create only one promise which will be returned on subsequent calls. Because of the additional .when() the call to executeQueryAsync will not be issued until the next Angular $digest cycle. So with the cost of a tiny delay it's possible to add .load-calls directly after execThen.
May
18
comment JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)
@MdMazzotti Consider this code could render something like this, but only make one single browser request
May
17
comment Provider Hosted App Web Part
Why can't you use a SharePoint-hosted app?
May
15
comment Angular troubles
Here is a plnkr with your code (doesn't work) , and here is a plnkr with my suggestion. I understand you probably have something like the last one working for you, I just made a comment about your code, which is all I can see. I can't see your wiring, your setup, your angular version, your SharePoint version. I can however tell you I have several Angular-based solutions working in several SP environments
May
15
comment Angular troubles
I read all your code, and the code is wrong
May
15
comment Angular troubles
Shouldn't the ng-app attribute be ng-app="appControllers"? Also, note that$scope.year should initially be undefined
May
12
comment Getting the Timezone in Regional setting using javascript
If you are writing a workflow, could you not make it call out to SharePoint?
May
7
comment REST calls between applications
ugh ​​​​​​​​​​​​​​​
May
6
comment REST calls between applications
do you mind sharing the solution? If it does not alter IIS (web.config or additional module or similar) I would love to see it.
Apr
30
comment REST calls between applications
You would be breaking SOP, but you can get through that with a proxy (or hacking the web.config on the target, then use CORS), but it happens that SharePoint apps have this built in, called web proxy - so my question is; do you have apps installed?
Apr
28
comment Logging people who download files in Sharepoint
Have you looked at auditing?
Apr
10
comment REST endpoint working in SharePoint online and not in on premise
Yes that is true. One way I can think of to solve your problem is by parallel requests (yes it's not pretty, but at least you can use promises and request simultaneously, you can also get away with only two requests, one for attachments and another for lookups). Another solution is to use JSOM. We wrap our ClientContext in a promise and combine REST with JSOM fluently
Apr
9
comment REST endpoint working in SharePoint online and not in on premise
I'm not 100% sure, but I think the reason it doesn't work on on-premise is because it shouldn't work. 365 is much more forgiving about OData, like you don't need odata=verbose;, probably because of early access and compatibility with already built stuff. The thing is that OData doesn't let you do wildcard select on expanded properties, and for this to work you need that. This is two levels of arrays, think about it as selecting all lists, then all items for all lists, and then selecting properties in the items - not straight forward. As you probably know, if you drop the $select it works
Apr
8
comment Create Choice Column via JSOM
The XML should look like this: <Field Type="Choice" Name="ApprovalStatus" DisplayName="Approval Status"><CHOICES><CHOICE>Pending</CHOICE><CHOICE>Approved</CHOICE><CHOICE>Reject‌​ed</CHOICE></CHOICES></Field>
Apr
8
comment Create Choice Column via JSOM
What's with the "," Name="ApprovalStatus" />' at the end of your field xml? I would say that is your problem right there
Apr
7
comment JSOM Remote Access Office 365 Site
Just referring them from the SharePoint site then? I thought at least some of the sp-scripts depended on the dynamic inline scripts on the page