I have the following fields in place on a form
fc_program_year_basic
bs_labour_cost
bs_insulation_time
i need to populate these fields using the code below
var server = controller.getServerName()
var query = "SELECT a.fc_program_year_basic as 'fc_program_year_basic', SUM( b.bs_labour_cost) as 'bs_labour_costs',sum( b.bs_insulation_time) as 'bs_insulation_time' from fabric_condition a, budget_schedules b where a.fc_id = b.fc_fabric_key group by a.fc_program_year_basic"
var vdat = databaseManager.getDataSetByQuery(server, query, null, -1);
controller.loadRecords(vdat)
At present the form loads the correct number of records in list view, however the values returned are actually completely different to what the sql query should return
We have tested using the solution model to create a list view form based on the same query and the data returned is correct.
Why is it that we cannot loadrecords correctly from a dataset within a normal form
any help would be much appreciated