ChildFormDialog


Author
Message
Larry Caylor
Larry Caylor
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
I've run into an issue with the bound controls collection when a business object is passed through more than one level of ChildFormDialogs. To simplify troubleshooting I did the following. On form1 I filled a business object, BO1; its not bound to any controls on form1. Form1 one calls form2 using a ChildFormDialog passing BO1. On form2 BO1 is bound to four controls and BO1.BoundControls.Count = 4. Form2 calls form3 using a ChildFormDialog again passing BO1, the object is not bound to any controls on form3. When form3 is closed and control returns to form2, BO1.BoundControls reflects the object's bound controls collection on form1 (count = 0), not form2 (count = 4).

-Larry

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
Larry,  I am probably missing something, but is there anyway you could produce a quick sample for me to look at.  I am not having the same results as you.  Ermm  Thanks.
Larry Caylor
Larry Caylor
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
Attached is a simple example. You can run it against the StrataFrame sample database. It pulls a few records from Customers.

-Larry

Attachments
ChildDialogExample.zip (76 views, 758.00 KB)
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
Thanks, Larry.  Just so you know, I will be on the road today and will not have a chance to look at this until I get back in the office tomorrow or Thursday.  We have a lot of people on vacation this week so I am covering a lot of ground this week.  But I will definitely add this to my list and take a look at it.  Thanks for taking the time to create a sample. Smile
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