This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20.6
OBJECT SET SUBFORM

OBJECT SET SUBFORM 


 

OBJECT SET SUBFORM ( {* ;} object {; aTable}; detailSubform {; listSubform} ) 
Parameter Type   Description
Operator in If specified, object is an object name (string)
If omitted, object is a variable
object  Form object in Object Name (if * is specified) or
Variable (if * is omitted)
aTable  Table in Table of form (if table form)
detailSubform  Text, Object in Name (text) of the detail form, or
a POSIX path (text) to a .json file describing the detail form, or
an object describing the detail form of the subform
listSubform  Text, Object in Name (text) of the list form, or
a POSIX path (text) to a .json file describing the list form, or
an object describing the list form of the subform (table form)

The OBJECT SET SUBFORM command dynamically modifies the detail form as well as, optionally, the screen list form associated with the subform object designated by the *, object parameters.

Note: This command cannot change the type of the subform itself (list or page). This property can only be set in Design mode. 

If you pass the optional * parameter, this indicates that the object parameter is an object name (a string). If you do not pass this parameter, this indicates that the object is a variable. In this case, you pass a variable reference instead of a string. 

In the aTable parameter, pass the table of the forms to be used. This parameter is optional; you can omit it when you specify a project form as detail subform.

In the detailSubform and listSubform parameters, pass either :

  • the name of a form, or
  • the path* (in POSIX syntax) to a valid .json file containing a description of the form to use (see Form file path), or
  • an object containing a description of the form.

*Unlike other dynamic form-related commands, OBJECT SET SUBFORM filepaths are relative to the subform's parent form.

Note: The listSubform parameter can only be passed when you modify a list type subform.

When you modify a page subform, the command can be executed at any time; current selections are not modified. However, when you modify a list subform, it can only be modified when it displays the list. If the command is executed when the detail form is displayed following a double-click in the list, an error is generated.



See also 

OBJECT GET SUBFORM
OBJECT GET SUBFORM CONTAINER SIZE

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 1138

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v13
Modified: 4D v16 R6

 
ARTICLE USAGE

4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)