StrataFrame Forum

BOTranslations on SFUserControl

http://forum.strataframe.net/Topic2334.aspx

By Scott - 8/21/2006

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?
By StrataFrame Team - 8/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...
By Scott - 8/21/2006

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.