[Simple Reports] [Simple Reports] NaN content could not be inserted. #############

Forge Component
(27)
Published on 31 Mar by Rafael Fantato
27 votes
Published on 31 Mar by Rafael Fantato

Hi,

I can't seem to make the "NaN content could not be inserted. #############" goes away (even when I removed all the contents and leave the page blank). The original demo page was also showing the same thing. I experienced it in both 5.00 and 5.01 version.

Help is greatly appreciated. Thanks.

Which browser? any blocking javascript plugin?

Swatantra Kumar wrote:

Which browser? any blocking javascript plugin?

Browser - Firefox, Chrome. 

Any blocking javascript plugin? - None that I know off


What causes this problem?

This message is shown when some part of content html or image or web block Print Container couldn't be printed/echo in a hole single page. After the script tried to echo without success, its abort the script.

Usually with images without limit (css for width and height could help).

If your page is empty, it could shown the same error.

Can you put the component in your personal environmental and paste the url here to see if it will trigger the same behavior?

Rafael Fantato wrote:

This message is shown when some part of content html or image or web block Print Container couldn't be printed/echo in a hole single page. After the script tried to echo without success, its abort the script.

Usually with images without limit (css for width and height could help).

If your page is empty, it could shown the same error.

Can you put the component in your personal environmental and paste the url here to see if it will trigger the same behavior?

I tried to remove what is inside the page one by one to see which one is causing the problem. But apparently, having a blank page also causes the error to appear.

When I use List to replace Table, the problem disappeared. The funny thing is, the error appears when:


(1) I use Table Record widget

(2) I remove Table Record widget and leave the page empty


Appreciate any help as I would prefer to use Table Record instead.


vnf wrote:

Rafael Fantato wrote:

This message is shown when some part of content html or image or web block Print Container couldn't be printed/echo in a hole single page. After the script tried to echo without success, its abort the script.

Usually with images without limit (css for width and height could help).

If your page is empty, it could shown the same error.

Can you put the component in your personal environmental and paste the url here to see if it will trigger the same behavior?

I tried to remove what is inside the page one by one to see which one is causing the problem. But apparently, having a blank page also causes the error to appear.

When I use List to replace Table, the problem disappeared. The funny thing is, the error appears when:


(1) I use Table Record widget

(2) I remove Table Record widget and leave the page empty


Appreciate any help as I would prefer to use Table Record instead.



Can you send the OML with this page to us? The only way to find out the problem is debugging :(
It could help us to improve this component.


Thx

Rafael Fantato

I had the exact same issue indicated above.  My example was very simple. it was a preparation of a single aggregate with 1 join.  I am using a single table widgets component to push a few cells of data.

I was getting the same issue "NaN content could not be inserted. ##############"

I had set the table widget to a max records of 500 as i was unsure of the output #.

To fix the indicated issue i updated line count to be the "Length" of the Aggregate connected to the table.

That seems to have fixed the issue for me - but with removing that issue i see another one present itself. 

------

The number of Line items per page is reduced per page. 

Hi Justin, please try the latest version to see what happens.

I saw by the screenshot that you are using an older version. ("PrintContainer" web block).

I tried to change all JS script by a jquery plugin that split content. Unfortunately, I had to let it go the cloned header on each new page.

It is a simple solution for small or medium reports, I can't say how many lines or pages have the best fit with that component because it is a frontend solution and depends a lot of each user's browser.