BO Translation from User Control Browse Dialog


Author
Message
Kenneth Langley
Kenneth Langley
StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)StrataFrame Novice (84 reputation)
Group: StrataFrame Users
Posts: 26, Visits: 1.5K
Lets see if I can explain this. I have a SF user Control with DevExpress Layoutcontrols. Inside the layout control I have SF Text boxes and a button from which I am calling a browse dialog. The browse dialog is a search of the address table. In the click event of the button I call the browse dialog and search and find four rows. On the main form that I dropped the user control , I have BO translations setup for the address. The browse dialog contains 4 rows and should be translated back to the main form address BO. This is not occurring.

Questions ?

1.) Will the BO Translations work in this manner ?
2.) Does embedding the browse dialog in this manner prevent the BO translations ?
3.) What is the full explanation of the translation object property and should it be used in this situation ?

Thanks in Advance

Kenneth Langley

Reply
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
There has been discussion on other threads in this regard.  I beleive that I have answered this for Greg in another section.  But here it the issue, it has nothing to do with the browse, but the translation.

The BusinessObjectToPopulate is still looking at the original BO instance instead of the translated instance even after the BO translations have taken place.  This is as designed at the moment.  The problem is that if we were to reflect over every object on the form looking for the original instance to translate, things would get really slow and sluggish.  All of the translations take place in the load.  So for future reference, if you run into something like this, place your code to update these references with the translated object after the base Load logic.

MyBase.OnLoad()

'-- Update the references here as the form instances will be translated at this point


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