In Adobe Forms (specifically in SAP Interactive Forms by Adobe), context refers to the data structure that binds the form layout with the backend logic (usually ABAP in SAP systems). It acts as the interface between the form layout and the application logic, and it’s critical for data exchange between SAP and the form.
Key Uses of Context in Adobe Forms
- Data Binding
- Context defines the data model that you can use in the form layout.
- You bind form fields (like text fields, tables, etc.) to elements in the context so they can display or collect data.
- Input and Output
- Context defines which data is input to the form and which is output from the form (especially in interactive forms where users fill in data).
- Mapping with Interface
- It links the form interface (where you define import/export parameters and global data) to the form layout.
- You can map fields from the interface to the context and then use them in the layout.
- Conditional Rendering & Logic
- You can use context elements in form logic, such as scripts or visibility conditions (e.g., show a section only if a context field has a certain value).
- Repeating Structures
- For tables or line items, context allows you to define repeating nodes, enabling the layout to handle dynamic data (like sales order items).