Impossible to correctly loop in our nested list in a Word Case Document design
We need to loop in a nested list in a Word template Case Documentation.
For each case, we need to have its associated centers list, cases can have 0 to infinite associated centers so we need it to be dynamic.
Our problem is that, if we use the sentence:
<pegaref config=<pegaref config={"mode":"pagelist","name":".SolicitudList().CentroAsociadoList().Nombre","type":"P"}>
Then it prints:
- The first case with its first center (if the first case is not having any center it prints a blank line, if it's having more than one center, it only prints the first one of them)
- The second case with its second center (if the second case is not having any center it prints a blank line, if it's having more than one center, it only prints the second one of them)
- The third case with its third center (if the third case is not having any center it prints a blank line, if it's having more than one center, it only prints the third one of them, if the third case is having to centers, it prints a blank line as it don't have a third center)
And so on...
If we use sentences manually referencing for items index they are all printed, but then it's no dynamic so, if we prepare the word with 5 items if a case is not having any center it will be printed with 5 blank lines and if a case is having 20 centers it will only show the 5 first ones so it's not ok for us. We need it to be dynamic somehow.
We need to loop in a nested list in a Word template Case Documentation.
For each case, we need to have its associated centers list, cases can have 0 to infinite associated centers so we need it to be dynamic.
Our problem is that, if we use the sentence:
<pegaref config=<pegaref config={"mode":"pagelist","name":".SolicitudList().CentroAsociadoList().Nombre","type":"P"}>
Then it prints:
- The first case with its first center (if the first case is not having any center it prints a blank line, if it's having more than one center, it only prints the first one of them)
- The second case with its second center (if the second case is not having any center it prints a blank line, if it's having more than one center, it only prints the second one of them)
- The third case with its third center (if the third case is not having any center it prints a blank line, if it's having more than one center, it only prints the third one of them, if the third case is having to centers, it prints a blank line as it don't have a third center)
And so on...
If we use sentences manually referencing for items index they are all printed, but then it's no dynamic so, if we prepare the word with 5 items if a case is not having any center it will be printed with 5 blank lines and if a case is having 20 centers it will only show the 5 first ones so it's not ok for us. We need it to be dynamic somehow.
I add a screenshot where you can see both options. It don't matters if we put it inside/outside the main table, we create tables inside the tables...it have the same behavior nevermind where we place it.
Someone who knows how we can do it please?