Adding Custom Fields to BO at Runtime


Author
Message
lastcanary
lastcanary
StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)StrataFrame User (227 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
We learned how to add custom fields to BO but we think that it is more efficient to do this at runtime.



We are planning to generate our reports and there are more than 100 reports to be generated. If we create a new custom BBS and custom BO for each report (this is the case in Strataflix) then this will not be a dynamic process and it will take lots of time to do it, we can say that it is not efficient as a summary.



Is it possible to add custome fields to BO at Runtime so that we can dynamically modify a custom BO at runtime depending on the nature of the report?



Best Regards
Reply
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
I may be completely off base here but if this is just for reporting and you are using something like Report Sharpshooter (and probably with crystal as well ) the trick might be to just not use SF business objects to assemble the data for the report.



Linq or SQL stored procs should be able to assemble the data you need into a datatable or tables in a dataset and you could just feed your reports from that. SF doesnt require you use business objects. The reporting could be handled without using them as all. I think trying to dynamically create BOs which are strongly typed ( and compiled ) at run time seems like that hard way to go about what you are trying to do.





GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search