BOTranslations on SFUserControl


Author
Message
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
I have a costom control based on the SFUserControl.  It contains an SFListView control.  I also have two BOs on the control.  When I drop the control on a form and set the BOTranslation property the translations only appears to be done if the PopulatOnLoad property of the listview is set to FormLoad. If it is set to manual the two business object on the control contain no data.  Is this correct?
Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, the ListView will be empty until you manually call Requery() on it, but the business objects should have data if the translated business objects also have data...
Scott
Scott
StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)StrataFrame User (270 reputation)
Group: Forum Members
Posts: 176, Visits: 1.5K
Ben Chase (08/21/2006)
Yes, the ListView will be empty until you manually call Requery() on it, but the business objects should have data if the translated business objects also have data...

Correct.  When I set it to manual I am calling Requery() and in the RowPopulating event I am using the BOs to do some lookups, when PopulateOnLoad is set to manual there is no data for the look ups in the BOs.  When set to FormLoad the BOs have data and the lookup completes succesfully.

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