Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ctx]

SharePoint Client Context

0
votes
1answer
330 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 ...
1
vote
1answer
579 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, ...
2
votes
2answers
62 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
1answer
104 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 ...
0
votes
1answer
969 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
1answer
394 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 ...
3
votes
1answer
918 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
3answers
160 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 ...
4
votes
1answer
425 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
1answer
932 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 ...
1
vote
2answers
1k 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 ...
0
votes
1answer
927 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.