Confused about Child Form Dialog Control


Author
Message
Sam Tenney
Sam Tenney
StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)StrataFrame User (140 reputation)
Group: StrataFrame Users
Posts: 70, Visits: 3.5K
I am a newbie so please forgive my ignorance.  I have a number of questions as I am trying to get my head around the concept of a child form dialog control.

1 - If I create a basic maintenance form for a specific business object that I plan to launch from a menu to add / edit / or delete records, can that same form also be used as the child form that will be called from a parent form via a child form dialog control on the parent form?

2 - Assuming that the answer to question 1 above is "Yes", if I want to call several different maintenance forms from a single parent form will I need to add multiple child form dialog controls to the parent form?

3 - Can a child form that was called via a child form dialog control on a parent form call a browse dialog?

Sam Tenney

Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Sam,



The short answer to your questions is yes.



Now design logic should play a factor in how you create and present your forms to your users. The ChildformDialog is basically a control that will allow you to show a modal form ex: myform.ShowDialog() it does have the advantage of allow you to translate any business object in the parent form to the child form in their current state and record positions, but as modal form it is expected to return a dialog value "OK, Cancel, etc" and this value be evaluated either in the child or parent form to do whatever your logic is.



With the above in mind, then I believe it would be kind of difficult to create a Maintenance Form (with the toolbar) and also used it as a child form, even though with creativity it can be done, you could have several New() constructors to pass parameters and either hide/show the toolbar, etc.



Also you can create Browse Dialog classes and call them from anywhere not just the maintenance toolbar.



I suggest you download the StrataFlix sample application from your "My Account" zone and study it, since it does make uses of these techniques.

Edhy Rijo

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