So I've figured out from the documentation how to format a cell based on a condition.
I've also learned how to display a foreign key lookup in a cell. How do I combine the two?
So in this example:
How would I test on the model's value that I want to test on, but still display the foreign key value?
The foreign key field is defined thus:
But I don't know how to combine. I need to show people who are no longer active employees in a different color.
Thanks, Bob
I've also learned how to display a foreign key lookup in a cell. How do I combine the two?
So in this example:
columns: [ {
field: "name",
template: "# if (name.substr(0, 4) == 'Jane') { #" +
"<
span
style
=
'color: lightgray'
> #: name # </
span
>" +
"# } else { #" +
"#: name #" +
"# } #"
}],
How would I test on the model's value that I want to test on, but still display the foreign key value?
The foreign key field is defined thus:
field: "MarketngEngnrID",
values: theMarketers, // a JSON array containing key-value pairs to show the text rather than the value
But I don't know how to combine. I need to show people who are no longer active employees in a different color.
Thanks, Bob