-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'position' of undefined (Bi-directional loop) #45
Comments
Hi, can you give your template and your sample JSON so we can try to reproduce it ? |
Yeah sure, the
And the data supplied to the
|
It looks like there is a bug with that... We already know bi-directional loop does not work in .ods file. We will try to find a solution as soon as possible! |
OK looking forward to it. |
Hi @baktash93 Just to give you some updates, we will fix this issue maybe on the next release. |
I had it working with this :
I never use a direct value from an array. For the doc example, try by using something like that :
and changing the template with |
I managed to make it work like the example, but if you add another column to the data it does not get rendered... |
Correct me if i'm wrong but..that example isn't using bi-directional looping is it? Isn't this just iterating 2 different arrays, one array in the header cells and one array for the data cells? |
This feature does not work at all. For .docx files too. Remove it from your documentation. You stole a lot of my time folks. |
Hello @officeutils, thank you for reaching us. The bi-directional loop depends significantly on the XML coming from the document. If a table is badly formed, Carbone will have difficulty in recognizing the elements to be repeated. Nevertheless, we will address the issue in the next few days to fully manage the recognition and creation of repeatable fields. Could you please share your template and a JSON dataset without confidential information at "support@carbone.io"? Include on the template the strict minimum to reproduce the issue. We will use it in our testing. |
@steevepay I sent the all info to support. Thank you very much. |
@steevepay Is there any update here? |
Hello @officeutils, we need more time to solve bi-directional loops and it can't be solved in the coming sprints. We will share updates on the feed as soon as we work on it. |
Spent two hours trying to get it to work and then found this thread. Any update on this or any workarounds? |
@samirotiv I found a temporary solution for my problem. I need to create multiple tables with 2-4 columns. Look at the attached picture. |
Any news about this issue? |
delete from the main documentation, misled me, spent half a day |
Carbone v4.8.0 fixes lot of issues for bidirectional loop in DOCX templates. The website has been updated: https://carbone.io/documentation.html#bi-directionnal-loop Here is a real life example: We keep this issue opened. Feel free to contact us on the chat of the website if you need further help & information. https://carbone.io/examples/bidirectional-loop/bidirectional-loop.zip |
Greetings.
I am trying to use the bi-directional loop with an
.odt
file but can't seem to get it working as I've started with the provided examples in the docs but it doesn't work as expected and produces the following error:Environment information:
Angular v8
LibreOffice calc generation
.odt
templateNode.js 10.15.0
Your quick response and help is very much appreciated.
The text was updated successfully, but these errors were encountered: