This is working fine in the S123 field app, but when I try it in the browser I get the following error message:
instance "total_revenue_se2" does not exist in model
total_revenue_se2 is a csv that is included in a pulldata() query:
pulldata('@javascript', 'scripts.js', 'get_total_revenue', pulldata('total_revenue_se2', ‘value’, ‘mgmt’, ${scenario_management_select}), ${planting_size_select})
"value" is simply a field of values that is then plugged into a function ('get_total_revenue') which outputs a table of calculated values.
Any idea why this is not working in the browser?
Solved! Go to Solution.
Typically you cannot nest any function in a pulldata. This has come up a number of times and the fix is to move the nested pulldata to its own field then use that field in the call. Give that a shot.
Typically you cannot nest any function in a pulldata. This has come up a number of times and the fix is to move the nested pulldata to its own field then use that field in the call. Give that a shot.
Thank you. I guess I didn't word my search properly. Is the nesting issue only a browser issue?
I think that is normally where it breaks yes.