fix: elixFormsAPI - gestione count su array vuoti
This commit is contained in:
+5
-2
@@ -16,6 +16,9 @@ http:
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "23629"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "23761"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -43,8 +46,8 @@ runtime:
|
||||
[%= "<table><tr><th>Partecipante</th><th>Importo (EUR)</th></tr>" %]
|
||||
|
||||
[IF][CONDITION][IS_NOT_EMPTY varname="ripartizioniNominativiWithSep" /][/CONDITION][THEN]
|
||||
[VAR name="ripartizioniNominativiIterable" type="iterable"][SPLIT regex="#"][VALUE_OF varname="ripartizioniNominativiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniImportiIterable" type="iterable"][SPLIT regex="#"][VALUE_OF varname="ripartizioniImportiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniNominativiIterable" type="iterable"][SPLIT regex="#" emptyIfBlank="true"][VALUE_OF varname="ripartizioniNominativiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniImportiIterable" type="iterable" emptyIfBlank="true"][SPLIT regex="#"][VALUE_OF varname="ripartizioniImportiWithSep" /][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniCount" type="number"][SIZE_OF varname="ripartizioniNominativiIterable" /][/VAR]
|
||||
[VAR name="ripartizioneIdx" type="string"][% ripartizioneIdx = 0; %][/VAR]
|
||||
[VAR name="firstItem" type="number"][% firstItem = 0; %][/VAR]
|
||||
|
||||
+6
-1
@@ -13,6 +13,9 @@ http:
|
||||
value: "{{elixFormsWsAuthenticationToken}}"
|
||||
- name: x-ef-request-id
|
||||
value: "19758"
|
||||
disabled: true
|
||||
- name: x-ef-request-id
|
||||
value: "23761"
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
@@ -33,10 +36,12 @@ runtime:
|
||||
// Copy-pasta your EFTL document below inside the template literals (`)
|
||||
prepareEftlDocument(String.raw`
|
||||
[EFTL][HEADER name="trimDocument" value="true" type="boolean" /]
|
||||
[VAR name="ripartizioniIterable" type="iterable"][SPLIT regex="#"][TAG]SCHEMAID,538,COL0005,ID_OBJECT,,#[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniIterable" type="iterable"][SPLIT regex="#" emptyIfBlank="true"][TAG]GETVALUEBYTAG,PARTECIPANTE,REQUEST,IUQOID,CONCAT,#[/TAG][/SPLIT][/VAR]
|
||||
[VAR name="ripartizioniCount" type="string"][SIZE_OF varname="ripartizioniIterable" /][/VAR]
|
||||
|
||||
[%= ripartizioniCount %]
|
||||
[%= crlf %]
|
||||
[%= ripartizioniIterable %]
|
||||
[/EFTL]
|
||||
`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user