|
Re: "cant re-generate content for MultiLineItem" exception with Dynamic Text eleme [message #854327 is a reply to message #853974] |
Mon, 23 April 2012 22:04 |
|
Can you recreate the issue with a sample report so we can run and test
it? Post the sample here.
Jason
On 4/23/2012 10:25 AM, ing omini wrote:
> Hi everybody,
>
> I have a report title which should be created with:
> static text + variable related to time interval
>
> Example:
> "Purchase (" + reportMonthString + ")";
>
> where "reportMonthString" is a string variable, whose runtime value is
> set to "01/01/2012" for example.
>
> If I use Dynamic Text element:
> - the HTML preview is correct
> - the PDF generation arises the following exceptions: "cant re-generate
> content for MultiLineItem" on each of these Dynamic Text elements
>
> what's the issue?
>
>
>
|
|
|
|
|
Re: "cant re-generate content for MultiLineItem" exception with Dynamic Te [message #855175 is a reply to message #854840] |
Tue, 24 April 2012 15:26 |
|
I could not get the report to run. BIRT complained about this line:
lastDayOfIntervalString = dateToString(lastDayOfIntervalString,
"dd/MM/yyyy");
This variable lastDayOfIntervalString is being used before it is defined.
BTW on a side note, you may want to move this to the beforeFactory as
initialize can be called many times depending on how the report is
executed and rendered. Another thing you may want to try is to rename
some of the functions with a prefix like my_dateToString as a test to
verify you are not getting a conflict with an existing function.
Jason
On 4/24/2012 5:22 AM, ing omini wrote:
> Confirmed! I am getting dumber ! :d
> The attachment option was not available only inside the quick reply.
>
>
> Here is a sample report... I hope you can reproduce the issue with it.
> Just as a short description.
>
> 1) in report initialize script I define a set of functions which are used inside the report (normally they are saved in an external lib, but to keep it simple I've made a copy and paste here)
> 2) always in report initialize script, the refdate parameter is read and used to set variables like lastDayOfInterval
> 3) in report body you can see that the functions are working but some exception is raised when I put the computed values inside dynamic text elements
>
> Thanks
|
|
|
|
Re: "cant re-generate content for MultiLineItem" exception with Dy [message #857684 is a reply to message #857056] |
Thu, 26 April 2012 19:17 |
|
I would remove one function at a time to see which is causing the issue.
You can also look in the workspace .metadata folder for a .log file to
see if you are getting anything in it. This also may be a js var scope
issue. Are all your functions returning variables or are you using
global js variables?
Jason
On 4/26/2012 3:55 AM, ing omini wrote:
> copy and paste erro while preparing the sample report...
>
> line 123 of initialize script must be changed as follows:
> lastDayOfIntervalString = dateToString(lastDayOfInterval, "dd/MM/yyyy");
>
> by the way the same code is working in the sample report but not in the
> original report!
> I will evaluate your suggestion about beforeFactory and name
> conflicts... maybe one of them could be the root cause of my problems!
>
> Thanks again
|
|
|
Powered by
FUDForum. Page generated in 0.03304 seconds