Parameter
Mobile Forms have the notion of Profiles which are exposed as REST Endpoints to enable Mobile Rendering of Form Templates. These Profiles have associated Profile Renderer. They are JSP pages responsible for generating HTML representation of the form by calling the Forms OSGi service. The JCR path of the Profile node determines the URL of the render end point. The default render end point of the form pointing to 'default' profile looks like:
http://<host>:<port>/lc/content/xfaforms/profiles/default.html?contentRoot=<path of the folder containg form xdp>&template=<name of the xdp>
For example, http://localhost:8080/lc/content/xfaforms/profiles/default.html?contentRoot=c:/xdps&template=sampleForm.xdp
For a custom profile, the endpoint changes accordingly. For example, the end point for the custom profile with the name hrforms is:
http://localhost:8080/lc/content/xfaforms/profiles/hrforms.html?contentRoot=c:/xdps&template=sampleForm.xdp
If your template resides in the LiveCycle repository in an application called FormSubmission, the URI is:
http://localhost:4502/content/xfaforms/profiles/default.html?
contentRoot=repository:///Applications /FormSubmission/1.0&template=sampleForm.xdp
The request parameters supported while rendering form as HTML are:
|
Parameter |
Description |
|
template |
This parameter specifies the name of the template file. |
|
contentRoot |
This parameter specifies the path where the template and the associated resources reside. This path can be the server file system path or a repository path(starting with repository://) or http or an ftp path. |
|
submitUrl |
This parameter specifies the url to which the form data xml is posted. |
|
Parameter |
Description |
|
dataRef |
This parameter specifies absolute path of the data file that is merged with the template. This parameter can be a URL to a rest service returning the data in xml format. |
|
data |
This parameter specifies the UTF-8 encoded data bytes that are merged with the template. If this parameter is specified, Mobile Form ignores dataRef parameter. |
Mobile Forms support three methods for passing the render parameters. You can pass parameters via URLs, key-value pairs, and profile node. In the render parameter, key-value pair holds highest precedence followed by profile node. The URL Request parameter holds least precedence.
Mobile Forms submit data; execute server-sided scripts and web-services on LiveCycle servers. For detailed information on parameters used to execute server-sided scripts and web-services on LiveCycle servers, see Mobile Forms Service Proxy.
Sign in to your account