ISubform

From FiFormsWiki

Jump to: navigation, search

class iSubform extends iInput

an extension of iInput which outputs an iframe with a data bound subform (i.e. another linked FiForm)


Contents

Properties

$fieldList field list to store field values from parent
$multiField flags the parent form to give this object field values from parent


Properties inherited from iInput: $caption $currentRec $dbField $error $errorMsg $formatStr $formatStrRO $otherTags $readOnly $section $value $valueToSave

Method Detail

Methods inherited from iInput

  • checkRO
  • drawInput
  • getValueToSave
  • hide
  • iInput
  • throwError

iSubform

Creates a new iSubform and builds formatStr from parameters

Syntax: iSubform($form,$caption,$link,$width,$height)


Parameters

$form - URL of form

$caption - Caption

$link - An expression linking the parent form with the subform. The variable name(s) from the parent side should be delimited by %%, while the variable name(s) from the linked form should be undelimited. For example: childFK=%parentPK%

$width - Width of iframe in pixels

$height - Height of iframe in pixels

Returns

A new iSubform object

Personal tools