Solved

Increase The character length in report designer.


Userlevel 2
Badge

Hi,

in quick checks, we have a report called payment voucher.
 

in a case like this the report works fine

 

But, as soon as the numbers increases by one 0, the report wont work. ex now the Amounts are 4,000,000.00. if those numbers are 40,000,000.00 the report wont work.

 

does anyone can help me on this. i’m attaching the rpx file here as well

Thank you.

 

icon

Best answer by darylbowman 27 July 2023, 14:54

View original

11 replies

Badge +11

Could you check if there are any Messages or Exceptions from this line instead?

 

Userlevel 2
Badge

Hi @darylbowman,

 

These are the Messages from the report. 
 

Thank You.

Badge +11

From the errors, it looks like you'd be using CInt() on that amount field somewhere. The amount field should be a decimal, which allows for much larger numbers than a integer. I believe this is your problem.

Userlevel 2
Badge

Hi @darylbowman

Is there a workaround to solve this problem that you know of using report designer?

Thank you.

 

Badge +11

Could you select the amount field in Report Designer and paste the formula or value of the property called Value (I think) on the right hand side?

Userlevel 2
Badge

Hi @darylbowman 
 

Did you mean this one?

=[APPayment.CuryOrigDocAmt]

 

Badge +11

That one is fine. Could you select all of the fields that show that number on the report and check their Value to see if any of them contain CInt()?

Userlevel 2
Badge

these are all the fields that show that number. no field contain Clnt().

Badge +11

Looking at the error messages again, it looks like the error is happening in reportFooterSection2. Could you see if you have a section defined like that?

Userlevel 2
Badge

Hi @darylbowman 

in the reportFooterSection2 there is a variable that contains Clnt()

used to display the Amount in words. is there a way i could fix this?

Userlevel 2
Badge

Hi @darylbowman 

 

I was able to resolve the issue by replacing the CInt() with CDec(). thank you for your guidance. didn’t know where to look :)

 

Thanks again.

Regards 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved