generate_xpp_form
Generate a complete, compilable AxForm AOT XML with the CORRECT control serialization () for the requested pattern. Patterns: SimpleList, DetailsMaster, DetailsTransaction, ListPage, Dialog, DropDialog, Workspace, Extension. After generation, call validate_form_pattern on the result before write_aot_object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Comma-separated field names to include in the grid/header, e.g. 'AccountNum,Name,Status' | |
| formName | Yes | PascalCase form name, e.g. 'ALMCustomerForm' | |
| modelName | No | Model name for label prefix, e.g. 'ALMMyModel' | |
| fieldTypes | No | Optional: comma-separated control type per field (aligned 1:1 with fields). Values: String, Int, Real, Date, DateTime, Enum, CheckBox, Reference. If omitted, all fields default to AxFormStringControl (current behavior). | |
| formPattern | Yes | Form pattern: 'SimpleList', 'DetailsMaster', 'DetailsTransaction', 'ListPage', 'Dialog', 'DropDialog', 'Workspace', 'Extension' | |
| primaryTable | No | Primary/header table name, e.g. 'ALMCustomerTable' | |
| secondaryTable | No | Secondary/joined table name (DetailsTransaction: lines table; ListPage: InnerJoin lookup table), e.g. 'SalesTable' |