BO.CopyDataFrom...?


Author
Message
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Trent,



Does the BO.CopyDataFrom supports the BO's Custom Field Properties? I don't think so, but I wanted to ask anyway.



I am working on form which has a ChildFormDialog, and the BO has some Custom Field Properties that are filled from a store procedure, when calling the childFormDialog, the CFP does not exist in there, even though the BO is properly translated.



For now I solved by simply re-loading the data from the server in the ChildFormResults.

Edhy Rijo

Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Greg McGuffey (09/03/2009)
Not sure if I'm on the right track, but it might spark some better idea along the way!




First, thanks for taking the time to check the source code. I am currently trying to meet a deadline and adding quick fixes to review them later.



In short what happened is that I had created the CFP for the ListView to show some calculated fields, now I am creating reports and there are several thousand records in most of them and the CFP slowed down the process, so I decided to add those fields in the store procedure to load them faster which works, but then I wanted to use those same CFP in the ListViews and was hit with the surprise.



So far I quick fixed by having 2 CFPs one for the Report and one for the ListView, not completely efficient but that will buy me some time.




Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
If the custom property represents a field within the CurrentDataTable, then yes, it will be copied when you copy it over using the data table overload (actually either overload should work).  But if your custom property is pulling from some other location, then no, it would not be included.
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