You are viewing limited content. For full access, please sign in.

Question

Question

save to repository error caused by drawchart

asked on September 6, 2018

Hi all,
one of our clients requested radar chart on his form.
we managed to do that using D3js charts library , using custom HTML in forms.

 

the chart is working just fine and updating in real time. the problem is with the save to repository activity .
we are getting this error.

FYI the forms is saved properly when removing the chart custom HTML activity.

we did search in the forum and found out that this problem is related to the save to repository activity not able to convert the custom HTML to PDF nor TIFF;

so if anyone could help it would be much appreciated.
Thank you in andvance

 

0 0

Replies

replied on September 7, 2018

It might be choking on the SVG output by d3.js. You might see if you can D3 to output a PNG.

0 0
replied on September 10, 2018

Thank you Devin,

Do you mean using d3 to generate that chart in png format at the submition event?
because we need the real time changing chart,

0 0
replied on September 10, 2018

I don't know enough about how Forms captures field data when it saves to the repository to say for sure. D3.js can't natively output PNG, but there are libraries out there that can rasterize SVG. You can certainly respond to events and run them in real time, or you could do it on submission. It depends on how Forms will deal with the data.

Sorry, I know web development, but I'm not always up on the internals of Forms.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.