Reputation
1,580
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 14
Impact
~37k people reached

May
20
comment javascript- How do I create a global variable among all pages
@SSilicon, Arsalan is right, you will need to save this setting server side if you want it to be permanent and the same among all users. JavaScript code runs in the browser, so even if you could save the state of the variable from page to page, you will not be able to have that value pass between different users browsers. (Unless you store it on the server where everyone can access it.)
May
20
comment How do I add check boxes to my columns in my list view?
+1 for using client-side rendering script connected to the view through the JSLink property (option #2). (N.B. - JSLink is just a way to connect a Javascript file to a SharePoint object. JSLink is not synonymous with client-side rendering, although it is certainly extremely useful for applying client-side rendering.) This article is a great resource on CSR.
May
20
comment Is it possible to generate a single Word document with content from multiple list items via a workflow?
It does need to be on-demand and not a timer job. I am going down the route of a custom ribbon action opening an application page which has the code to generate the document. I'd just like to point out though that since we have to go to C# / code behind, it would also be possible to create a custom workflow activity that contains all the necessary code, and then use that custom activity in a workflow to generate the document.
May
20
comment JSLink not displaying
If you're not seeing the script file, it may not be loading. Is the site collection this is supposed to be used for the root site of the web application? (i.e. the site collection URL is http: //my.server.name/) I have never set up a display template with a target scope as broad as /. Maybe try specifying something more specific for the target scope, like /sites/sitecollectionName? (Or whatever the URL is to this particular site collection.)
May
19
comment JSLink not displaying
What are you attaching the display template code to? And is it on the same object that you attached your first display template to?
May
12
accepted Is it possible to generate a single Word document with content from multiple list items via a workflow?
May
8
asked Is it possible to generate a single Word document with content from multiple list items via a workflow?
May
6
comment Using CSR to change row color - how do I keep the view style shaded view?
I'm not sure about that. I played around a bit and I could not get it working either. It's possible that the view style is doing something that prevents it from being overridden, similar to this. Is there some other functionality of the "Shaded" view style that you want to have, other than having alternating rows have a grey background color? If not, you can just set alternating rows background color to grey on the default view through your override.
May
6
comment Using CSR to change row color - how do I keep the view style shaded view?
Quick question though -- what view style were you using when you added the code and you say it didn't work? You need to set the view style to shaded in the normal way, the code addition will not force the view style to be shaded. What the code does is say "if the view style is shaded, then apply these template overrides." If you were set to the default view style, then of course it did not apply the color change, because by specifying ViewStyle: 17 then the custom code no longer applies to the default view style.
May
6
comment Using CSR to change row color - how do I keep the view style shaded view?
Ok, sorry it didn't help. I do not have any experience with view styles, but based on what is available as options for CSR, that seemed like the way to go. Maybe read through the article I linked to and see if it gives you any ideas.
May
6
revised Using CSR to change row color - how do I keep the view style shaded view?
Added OP's code into the main question (copied from his comment on my answer)
May
6
comment Using CSR to change row color - how do I keep the view style shaded view?
@MikeRooker, updated my answer.
May
6
revised Using CSR to change row color - how do I keep the view style shaded view?
added example based on OP's code sample
May
6
suggested approved edit on Using CSR to change row color - how do I keep the view style shaded view?
Apr
30
comment Event Receivers in SharePoint 2013
According to the OP's requirements, he will also need ItemDeleting on the list to remove the user from the group if the list item is deleted.
Apr
28
comment Customize a view of recurring calendar events using client side rendering (JSLink)
I was just running into the same problem, and this is very disappointing to hear. Nice to know that SPServices might be able to help push the processing/calculating of recurring events back onto SharePoint.
Apr
27
awarded  Notable Question
Apr
23
comment Add Item to List on JSLink with jQuery
SP may be expecting an ISO formatted date string. Try data[i]['Date'] = date.toISOString();
Apr
23
comment Add Item to List on JSLink with jQuery
I see. Also, if you are trying to add the item before rendering the view, instead of calling that function from the Header template, you can register it with overrideCtx.OnPreRender and it will execute before it gets to any header code.
Apr
23
comment Add Item to List on JSLink with jQuery
If you are trying to "get" list by title, shouldn't your ajax request be type: "GET"?