info: name: Tabella HTML ripartizioni FOR type: http seq: 23 http: method: POST url: "{{elixFormsApiUrl}}/eftl/process/v1" headers: - name: x-requested-with value: XMLHttpRequest - name: x-api-key value: "{{elixFormsWsAuthenticationToken}}" - name: x-ef-request-id value: "31499" body: type: json data: |- { "userDocument": "{{elixBase64EftlDocument}}", // see the pre-request script "userContext": { "lang": "IT", "crlf": "\r\n" } } auth: inherit runtime: scripts: - type: before-request code: |- const { prepareEftlDocument } = require("./elixFormsJs.js") // Copy-pasta your EFTL document below inside the template literals (`) prepareEftlDocument(String.raw` [EFTL] [VAR name="newLine" type="string"][VALUE_OF varname="crlf" /][/VAR] [VAR name="ripartizioniNominativiWithSep" type="string"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/VAR] [VAR name="ripartizioniImportiWithSep" type="string"][TAG]SCHEMAID,538,COL0002,ID_OBJECT,,#[/TAG][/VAR] [VAR name="ripartizioniNominativiIterable" type="iterable"][SPLIT regex="#" emptyIfBlank="true"][VALUE_OF varname="ripartizioniNominativiWithSep" /][/SPLIT][/VAR] [VAR name="ripartizioniImportiIterable" type="iterable"][SPLIT regex="#" emptyIfBlank="true"][VALUE_OF varname="ripartizioniImportiWithSep" /][/SPLIT][/VAR] [VAR name="ripartizioneIdx" type="string"][% ripartizioneIdx = 0; %][/VAR] [VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR] [VAR name="secondItem" type="number"][% secondItem = 1; %][/VAR] [%= ripartizioniNominativiIterable %]
| Partecipante | Importo (EUR) |
|---|---|
| [VALUE_OF varname="ripartizioneNominativo" /] | [VALUE_OF varname="ripartizioneImporto" /] |