getForm

Description

This mobile device JSP function reads the XHTML form for a given form name and returns a YFCDocument. The currentEntity name is prefixed to the formname and .html is suffixed. It looks for the file in the INSTALL_DIR/repository/xapi/template/merged/mobilescreens/ directory.

The getForm() function is always used in conjunction with the getField() function.

Syntax

public YFCDocument getForm(String formName) throws Exception

Input Parameters

formName - Required. Name of the XHTML form.

Example

The following example shows how this function can be used to return a YFCDocument for the form "formName":
YFCDocument ydoc=getForm()