Timeline for Using Lookup Value in a JS Link Context - SP2013 Foundation
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 1, 2014 at 2:25 | answer | added | Wonderboy | timeline score: 3 | |
Jan 31, 2014 at 13:09 | comment | added | jgravois | @Wonderboy, please make you comments an answer so that I can accept it. Once I added Taxonomy to the view, I was able to use the variable watch to figure out the assignment is: **var _calCat = ctx.CurrentItem.Taxonomy[0]['lookupValue']; ** | |
Jan 30, 2014 at 21:19 | comment | added | Wonderboy | Once you have, the first statement in your list of three should be the correct one | |
Jan 30, 2014 at 21:18 | comment | added | Wonderboy | Make sure Taxonomy is actually in the view (edit the view). If it isn't there, it won't be in the context. | |
Jan 30, 2014 at 15:35 | comment | added | jgravois | I added debugger; and set a variable watch on ctx. Taxonomy wasn't listed in the FieldSchema | |
Jan 30, 2014 at 15:23 | comment | added | jgravois | I used console.log(ctx) in the ItemOverrideFun and the objects were logged but there were seemingly thousands of lines of info output which I couldn't fathom. I tried to alert(ctx) but no alert showed. | |
Jan 30, 2014 at 15:02 | comment | added | Wonderboy | Out of interest did you do something like an alert statement to see what the variable holds? (You can use the "debugger;" statement in your JavaScript file and then use google chrome to check it out using developer tools and a variable watch so you know what you are working with...? | |
Jan 30, 2014 at 14:08 | review | First posts | |||
Jan 30, 2014 at 14:19 | |||||
Jan 30, 2014 at 13:50 | history | asked | jgravois | CC BY-SA 3.0 |