Complex BO question


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
If you have your custom property setup properly it should be automatically refreshed on the screen properly.  What does your custom property look like?
Michael Cobb
Michael Cobb
StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)
Group: Forum Members
Posts: 26, Visits: 1K
Here's an example of one:

<Browsable(False), _

BusinessFieldDisplayInEditor(), _

Description("Property Tag ID"), _

DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _

Public Property [PropertyTagID]() As System.String

Get

Return _PropertyTagID

End Get

Set(ByVal value As System.String)

_PropertyTagID = value

End Set

End Property

This field is bound to a SF Textbox.  The value comes from a secondary BO, such as _BO1 in the generic examples used earlier in this thread.  The value is retrieved from the secondary BO in the MainBO_Navigated event and set there through the code as follows.

Me.PropertyTagID = _Property.TagId

_Property is the secondary BO.

None of the fields on the screen stay refreshed with the values retrieved from the secondary BOs unless I put the following code at the bottom of the MainBO_Navigated event:

Me.Refresh()

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Did you override the GetCustomBindablePropertyDescriptors method of the BO and add your custom property...or create a FieldPropertyDescriptor class for that property?  Is there any way that you could post a simple sample that reproduces your behavior.  That might be easier so that we can see what your code is doing first hand.  Thanks. Smile
Michael Cobb
Michael Cobb
StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)
Group: Forum Members
Posts: 26, Visits: 1K
Yes, I am overriding the GetCustomBindablePropertyDescriptors and adding my custom properties.  It might take me some time to try to get a sample together using the StrataFrame Sample database.   For now I'm ok with using Refresh() method to update the controls bound to custom fields that are set from the secondary BOs during the MainBO_Navigated event.
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