Hello,
is there a way to find out the category and name of a business object in designed report (.mrt file) after loading the report and before registering the business object in code? I don't like to use fix names in code when using RegBusinessObject(). I like to read the name of the business object from designed report and use that for registering the business object at runtime.
FYI: i use only one business object per report. If i need more i use subreports.
Thanks and kind regards
Thorsten Pontow
How to find category and name of business object?
How to find category and name of business object?
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: How to find category and name of business object?
I found it out by myself. I just need to use
Thanks
Thorsten Pontow
Code: Select all
StiBusinessObject bo = Dictionary.BusinessObjects[0];
RegBusinessObject(bo.Category, bo.Name, dataSelector);
Thorsten Pontow
Thorsten Pontow
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
It is easier to write an incorrect program than to understand a correct one. (Alan J. Perlis, Epigrams in programming No. 7)
Re: How to find category and name of business object?
Hello,
Great!
Great!