JavaScript CookBook/Modal Forms/Opening a ModalForm in a Form

From GeoMedia Smart Client
Jump to: navigation, search
GMSC 2013/2014 Javascript API Overview Form Events Types Utility Functions client-side Validation Conditions Interaction with SmartClient Cookbook Cheatsheet


Opening a ModalForm in a Form

Problem: You want to integrate a modal form in another form. By clicking on a <FormAction> button, the form should open.

Solution: Use the IG.openSimpleModalForm function in order to open the modal form. See its documentation page for an explanation of the parameters:

<FormAction name="NEWLABEL" label="Add" action="SCRIPT[IG.openSimpleModalForm({form:'RPI_LABEL', closeAction:'reloadFields', closeActionParam:['LABELGRID']})]" />



Other Recipes in this category: