Questions tagged [ctx]

SharePoint Client Context

Filter by
Sorted by
Tagged with
0 votes
1 answer
105 views

Hide SharePoint list content/rows based on user group permissions

I'm a little padavan when it comes to coding;) I looked for the following codes via google and pieced them together;) but now of course I have reached my limits;) I have a Sharpoint Grouped Listview; ...
  • 3
0 votes
1 answer
103 views

CSR color coding row of list not showing correctly when list is filtered

Before i show my code, let me give some background. I am using JSLink in the webpart of the list. I have MDS disabled for the site. my javascript file is located in my root sitecollection in Style ...
0 votes
1 answer
391 views

Get values from list items and display in Google charts using CSR/CTX

I played with CSR a little bit, but I'm still struggling how to use it to get it implemented with other ideas, such as Google Charts. I tried googling ctx/csr documentation, but I had no luck... Say ...
  • 115
1 vote
1 answer
1k views

SharePoint list conditional formatting - US versus UK dates

I've tried my best not to ask for help, but I'm stuck, even after I learned a bit of JS, MomentJS and Client Side Rendering on SP. The code below returns undefined in date column. If you know why, ...
  • 115
2 votes
2 answers
80 views

ListItem get deselected on Button click

There's a web part on a list view page with button element on it. When user clicks the button all selected list items get deselected. I cannot change button element to input because it's Office UI ...
0 votes
1 answer
116 views

Srch.U.getArray() Alternate delimiter

I have a list field (str) but it contains a list of items. Problem is, it's a field for legacy categories, and some use "," some use "|" while others use ";". Currently, the following works on all ...
  • 115
0 votes
1 answer
1k views

Where can I learn more about "ctx" from sharepoint js/html control templates?

Is there really no documentation for this? To summarize the comments, no in 2015. I have searched msdn/technet and google. My most common problem is just not knowing the right keywords to search for ...
1 vote
1 answer
488 views

ctx object in document sets

I need to get to the ctx object when a user navigates to a document set. My code runs well on all other pages so far, but on document sets it seems random if the ctx is loaded or not. I was told in ...
  • 23
3 votes
1 answer
1k views

ctx.CurrentItem undefined in new function

I am editing a item display template in SharePoint 2013. The following problem occurs: ctx.CurrentItem becomes undefined in a custom function. How can I solve this? Here is a little code snippet: ...
2 votes
3 answers
217 views

Including a script in a jslink file

I'm building a simple app on a SP2013 online intranet that uses the Google Books API to pull in GB content (title, author, image etc). The goal is to modify a SP list view to populate the book isbn ...
  • 569
4 votes
1 answer
480 views

Get ctx.ListData inside Calendars

I want to retrieve some data about each item in a Calendar, but I can't find ctx.ListData inside Calendar view. Is this a bug in SharePoint?
0 votes
1 answer
1k views

Display "created by" field using jslink without "object Object" error

Created by field is formatted as "name". Field ref used in jslink ctx override is: ...<span>Submitted by: " + ctx.CurrentItem.Author + "</span>... Field is present in view but all I get ...
  • 569
1 vote
2 answers
2k views

Sharepoint2013 ctx and Js : Retrieve the value of a field from a list

I'm a totally beginner and totally stuck to a point in my Sharepoint project. What i would like to achieve: part 1 : retrieve the current user's Department's name part 2 : retrieve the department's ...
  • 582
0 votes
1 answer
994 views

Email address of Logged-in User using JS Link

I am using Client Side Rendering with JSLink in SharePoint 2013. How to get the email address of Logged in User using JS Link? I was trying to use Ctx.CurrentUser.Email which returns undefined.
  • 579