Portlet Factory, Version 6.1.2


 

About using your own HTML form pages

You can determine the appearance of your display or input form.

Supply your own HTML page that implements the layout and display you want. The Data Page builder reconciles the named <input /> and <span /> tags in the HTML you provide with the element names in the data. In the Data Page builder call, choose to have the form be determined solely by the HTML page, solely by the associated data schema, or by both the HTML and schema. If the HTML page contains tables to display repeated elements, either specify the table completely or just with a table and row name. Deriving table appearances with both the HTML page and schema is not good practice.

 

Before creating your own HTML page

You can use your own HTML page with the Data Page builder. The named <input /> and <span /> tags should correspond with the data elements in the variable that you want to store or display.

Note: If you set the Data Page builder Page Type input to Infer from HTML, the Data Page does not use a resource bundle to determine the labels for the elements in the form. The HTML page you specify must contain the labels for the form fields.

 

About adding data from another source to a table

Just as you can limit the data shown in a table by limiting the named <span /> or <input /> tags used, you can display additional data to the table by adding a named <span /> or <input /> tag to the table and using some other builder call to display data from another source. For example, if you want to display the email address for each customer in the sample data, you add another <td /> element to the customer row and populate this column from a variable containing the email addresses for each customer.

Parent topic: Overview: creating forms


Library | Support |