Hi
Is there any way to set up a relation between two Business Objects? At the moment, no fields are popping up to setup a relation
The business objects I have needs to be linked to each other via a Guid field.
See attached MRT as sample, in question.
Form26TransactionsReportData.AgreementId needs to be related to Form26AgreementReportData.AgrId
If not possible, any other ways to get this done?
Currently using Version 2022.2.2 from March 2022
Thanks
Relations between Business Objects
Relations between Business Objects
- Attachments
-
- RSAForm26.mrt
- (108.32 KiB) Downloaded 30 times
-
- Posts: 525
- Joined: Tue Sep 07, 2021 10:11 am
Re: Relations between Business Objects
Hello,
You can register your business objects as a data source and then create relation between tables.
You can use the following code:
Thank you.
You can register your business objects as a data source and then create relation between tables.
You can use the following code:
Code: Select all
//Register business object in the report template
report.RegData("MyList", list);
Re: Relations between Business Objects
Thanks for your response.
This is currently being used in the code:
It used to be :
This gives results, but no relations possible on the MRT.
The report generates a blank page when RegData is used, my business objects was changed to DataSource as well.
This is currently being used in the code:
Code: Select all
_report.RegData(name, data);
Code: Select all
_report.RegBusinessObject(name, data);
This gives results, but no relations possible on the MRT.
The report generates a blank page when RegData is used, my business objects was changed to DataSource as well.
-
- Posts: 525
- Joined: Tue Sep 07, 2021 10:11 am
Re: Relations between Business Objects
Hello,
Please check the attached project.
Thank you.
Please check the attached project.
Thank you.
- Attachments
-
- Samples-Blazor-Server.zip
- (35.44 KiB) Downloaded 34 times
Re: Relations between Business Objects
Thanks, managed to resolve the issue by doing some rework in the code-behind and relations were set up there as well.
-
- Posts: 525
- Joined: Tue Sep 07, 2021 10:11 am
Re: Relations between Business Objects
Hello,
You are welcome!
You are welcome!