Heya,
I seem to be struggling with the syntax and layout of a model for use with Freemarker.
The list of data points returned from DataPointQuery works as-is but if I try to create my own model, based on the data points list, I get the error: The value you try to list is an extended_hash (wrapper: f.t.SimpleHash), thus you must specify two loop variables after the "as"; one for the key, and another for the value, like <#... as k, v>).
I want to create a model as I want to include information that isn't available in the records for each data point returned in the query.
To me, this simple model appears similar to the data points but does not work:
var tmpRecs = [
{deviceName: 'PCU_110020', path: 'PCU_110090'},
{deviceName: 'PCU_110021', path: 'PCU_110090'},
{deviceName: 'PCU_110022', path: 'PCU_110090'}
];
Most of the information I have found on the net is more Java related than specifically javascript.
Does anyone have an example of a model in javascript they have built or some pointers as to what I am doing wrong? heh
Any suggestions would be appreciated.
Thanks
Ian