Avectra.netForum.Extension.Utility.PaintChildForm
The Avectra.netForum.Extension.Utility.PaintChildForm method is used to display a child form on a form as shown on the nearby image. This child form should generally be used for display purposes only; add/edit/delete/goto functionality is not necessarily supported for child forms displayed in this manner. The SQL in the child form for this functionality can parse values from the object that the form is based on.
The same child form should be used no more than once on the same form; using the same child form more than once will not work.
Parameters
The Page:Page and Control:Control parameters are the standard values to be passed to most extensions. The final parameter, the string, is the primary key of the child form to be displayed on the form.
Returns
The child form will be rendered using the same functionality as child forms elsewhere in NetForum.
Usage and Examples
This can be used in aForm Extension:
Assembly, Typename, Method, and Parameters:
extension
Avectra.netForum.Extension.Utility
PaintChildForm
Page:Page;Control:Control;String:53b0d506-f688-43d5-bc9a-160588aaeecd
This method should be set to run on initialize.
Note, you must set [noupdatepanel] on the URL/Image Path/Data for the extension control on the form or turn off AJAX on the form.
Examples of this can be found in baseline in Centralized Order Entry with the Complementary Products and Substitute Products. These examples also take advantage of the Designed Form Menus.
See Designed Child Form Menu for a detailed case study of how this is implemented.