Show TOC Start of Content Area

Background documentation Form Context  Locate the document in its SAP Library structure

Use

You can create composite form templates using the following approaches:

·        You design your form manually from scratch using the Adobe LiveCycle Designer (field-based forms).

      You generate your form automatically based on the data that you want it to contain (schema-based forms).

The data that is to be displayed in the form at runtime is part of the form context, which you build at design time from the preprocessing and postprocessing service parameters and the additional parameters that you may specify.

According to the form type that you choose to create, you use the form context in a different way:

      For field-based forms, you map form context parameters to form fields.

      For schema-based forms, you generate the form schema based on the form context.

Using Form Context for Field-Based Forms

If you want to reuse an existing composite form template, or to use the same template in multiple objects, you use the field-based form approach.

In this case, you use Adobe LiveCycle Designer to add the required form fields manually.

The following figure illustrates the relations between the prefilling service parameters, the form context, and the composite form itself:

...

       1.      The parameters from the preprocessing services are used to build the form context. At runtime, the output produced when a service is executed might even be used as an input for a subsequent service execution.

You can add more custom fields to the form context.

       2.      Then, you can map the relevant parameters to the composite form fields. You can create the composite form template in advance and import it, or design the template during the process of creating the form object in the GP design time.

       3.      Finally, you can enhance the form context with parameters from the postprocessing services, which are used for handling the form data when the form is being submitted.

Field-Based Forms

This graphic is explained in the accompanying text

For more information about mapping form text parameters to composite form fields, see Building and Using Form Context.

Using Form Context for Schema-Based Forms

With the schema-based form approach, you create a composite form template specifically for the scenario that you implement. The process is shown in the figure below:

...

       1.      As with field-based forms, you create the form context from preprocessing service parameters and additional fields.

       2.      You generate the composite form template from the form context while designing the form object in the GP design time. The form fields are then filled in from the service output data.

Schema-Based Forms

This graphic is explained in the accompanying text

More information:

Creating Form Objects in the GP Design Time

 

End of Content Area