Form (element)

From JRapid

Jump to: navigation, search

form is an element, child of panel.


Contents

Description

The form element includes a form of the specified entity inside a Panel.

By default, the included form will create a new record in the database every time it is submitted. It is much more useful if related to a listing included in the same panel.

Usage

<form
   entity = ENTITY
   name = NAME
   title = TITLE
   defaultset = DEFAULTSET
   defaultsetparams = DEFAULTSETPARAMS
   panelheight = HEIGHT
/>

Example

A simple example shows how to include a stand-alone form in a Panel.

<panel name="Index" title="My Panel">
        <menu/>
        <header><h1>JRapid Project</h1></header>
        <column width="100%">
            <form entity="Student" name="studentForm" panelheight="100%" title="Student"/>
        </column>
        <footer><h4>Footer</h4></footer>
</panel>

The generated Panel looks like this.

Form in Panel example


See Also

Personal tools