hi,
As is the example (demo_r1 test_customers.lrxml ) not work the error is
Field customers.CompanyName not found in TextItem1 !!!
if i change
report->dataManager()->addModel("external_customers_data",customersModel,true);
to
report->dataManager()->addModel("customers",customersModel,true);
error is
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'LimeReport::ReportError'
what(): datasource with name "customers" already exists !
so, my solution is change into test_customers.lrxml the data source to
external_customers_data and field to $D(external_customers_data.CompanyName)
so I think the problem is I can't design the report with a data source and then replace with custom model with he same name.
I don't now if there is the right place for bug. If not next time will place on right place
Thanks