What I'm trying to do is display some data in a specific column that is calculated by using the data from another column.
I currently have a function that returns the number of available licenses for the given 'Id' in JSON:
How do I go about displaying the number that is returned in a column named "AvailableLicenses"?
Here is my current Grid:
"Number of Licenses"
"#= getAvailableLicenses(Id) #"
As you can see, I tried to create a null column with a template that calls the function for the given 'Id'.
By using Fiddler, I can see that the function is indeed being called for all of the rows, but the 'AvailableLicenses' column just displays "undefined" for every row.
Is there something I'm missing here to get this to work?