Hi currently I am trying to insert a global javascript object that I have into a template for a column in a grid using a datasource variable as the key.
For example:
title: columnOfGrid,
template: '#= field1 #, #= field2 #' + jsObject[#= field3 #]
Lets say that field3 = "text"
jsObject = {
"text" : "hello"
};
Why doesn't this work? Is there any way that I can insert the field3 value into the jsObject key selector?
Thanks in advance.
For example:
title: columnOfGrid,
template: '#= field1 #, #= field2 #' + jsObject[#= field3 #]
Lets say that field3 = "text"
jsObject = {
"text" : "hello"
};
Why doesn't this work? Is there any way that I can insert the field3 value into the jsObject key selector?
Thanks in advance.