|
Re: Problem with joint data set with property binding and viewer servlet [message #487035 is a reply to message #486405] |
Mon, 21 September 2009 15:33 |
|
Peter,
This may be a bug. Can you try using params["dataFile"].value?
Another thing to try is to take it out of property binding and put it in
the beforeOpen script of your datasource:
this.setExtensionProperty("FILELIST",params["dataFile"].value);
Jason
Peter Kullmann wrote:
> Hi,
>
> I have a simple report (attached) with the following specs:
> - A single XML datasource where the xml file is given as a parameter
> "dataFile" (using property binding)
> - Two normal data sets referencing the data source
> - A joint dataset based on the first two
>
> The following works as expected:
> <birt-viewer>/frameset?__report=test-join-param.rptdesign&dataFile=http://www.w3schools.com/XML/simple.xml
>
>
> Alternatively you can enter the dataFile parameter when the viewer
> prompts for it.
>
> What does not work correctly is when we use <birt-viewer>/run
>
> In this case the property mapping is not performed.
>
> On the other hand: Using a simpler report with an xml data source and
> property mapping (but without a joint data set) works in /frameset and
> /run equally well.
>
> Thanks for any hints or workarounds
> Peter
>
|
|
|
|
Re: Problem with joint data set with property binding and viewer servlet [message #487263 is a reply to message #487239] |
Tue, 22 September 2009 15:40 |
|
Please do.
Peter Kullmann wrote:
> Hi Jason
>
> Thanks for the tips:
> - params["dataFile"].value in the property bindings had no effect (same
> problem)
> - But setting the property in beforeOpen worked well.
>
> Shall I open a bug report for this?
>
> Peter
>
>
> Jason Weathersby schrieb:
>> Peter,
>>
>> This may be a bug. Can you try using params["dataFile"].value?
>> Another thing to try is to take it out of property binding and put it
>> in the beforeOpen script of your datasource:
>>
>> this.setExtensionProperty("FILELIST",params["dataFile"].value);
>>
>> Jason
>>
>> Peter Kullmann wrote:
>>> Hi,
>>>
>>> I have a simple report (attached) with the following specs:
>>> - A single XML datasource where the xml file is given as a parameter
>>> "dataFile" (using property binding)
>>> - Two normal data sets referencing the data source
>>> - A joint dataset based on the first two
>>>
>>> The following works as expected:
>>> <birt-viewer>/frameset?__report=test-join-param.rptdesign&dataFile=http://www.w3schools.com/XML/simple.xml
>>>
>>>
>>> Alternatively you can enter the dataFile parameter when the viewer
>>> prompts for it.
>>>
>>> What does not work correctly is when we use <birt-viewer>/run
>>>
>>> In this case the property mapping is not performed.
>>>
>>> On the other hand: Using a simpler report with an xml data source and
>>> property mapping (but without a joint data set) works in /frameset
>>> and /run equally well.
>>>
>>> Thanks for any hints or workarounds
>>> Peter
>>>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02866 seconds