Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » File Path as a parameter
File Path as a parameter [message #669616] Tue, 10 May 2011 19:52 Go to next message
JP Redro is currently offline JP Redro
Messages: 167
Registered: July 2009
Location: India
Senior Member

Hi All,

i have developed a report in BIRT2.6.2, which has xml file as data source. Hence i have passed the parameter in property binding in data source as File path (params["xmlFilePath"]) and created the parameter in Report parameter as xmlFilePath. While running report in pdf format, i am not getting output, but in HTML and Web viewer i am getting output. Please assist me in this.

Thanks & regards.
JP
Re: File Path as a parameter [message #669639 is a reply to message #669616] Tue, 10 May 2011 22:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

JP

Can you try using the beforeOpen script instead of property binding?
this.setExtensionProperty("FILELIST", params["xmlFilePath"].value );

Jason

On 5/10/2011 7:52 PM, JP wrote:
> Hi All,
>
> i have developed a report in BIRT2.6.2, which has xml file
> as data source. Hence i have passed the parameter in
> property binding in data source as File path
> (params["xmlFilePath"]) and created the parameter in Report
> parameter as xmlFilePath. While running report in pdf
> format, i am not getting output, but in HTML and Web viewer
> i am getting output. Please assist me in this.
>
> Thanks & regards.
> JP
Re: File Path as a parameter [message #671012 is a reply to message #669639] Mon, 16 May 2011 10:26 Go to previous messageGo to next message
JP Redro is currently offline JP Redro
Messages: 167
Registered: July 2009
Location: India
Senior Member

Thanks Jason,

I have set that script in beforeOpen at datasource level, but still i am not getting output. But in some other PC we are able to get output with property binding also. Hence i have compared system settings with that PC, found both are same. I am unable to get this my pc only.. Please assist me.


Thanks,
JP
Re: File Path as a parameter [message #671040 is a reply to message #671012] Mon, 16 May 2011 11:25 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

how are you running it?

Jason

On 5/16/2011 10:26 AM, JP wrote:
> Thanks Jason,
>
> I have set that script in beforeOpen at datasource level,
> but still i am not getting output. But in some other PC we
> are able to get output with property binding also. Hence i
> have compared system settings with that PC, found both are
> same. I am unable to get this my pc only.. Please assist
> me.
Re: File Path as a parameter [message #673585 is a reply to message #671040] Tue, 24 May 2011 03:59 Go to previous messageGo to next message
JP Redro is currently offline JP Redro
Messages: 167
Registered: July 2009
Location: India
Senior Member

i am running at development area run as pdf.


Thanks,
JP
Re: File Path as a parameter [message #673749 is a reply to message #673585] Tue, 24 May 2011 11:14 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

JP,

This should work with the beforeOpen script. Are you getting anything
in the log file?

Jason

On 5/24/2011 3:59 AM, JP wrote:
> i am running at development area run as pdf.
>
Previous Topic:Missing styles after exporting to report library
Next Topic:file browser \ calendar picker on paramater
Goto Forum:
  


Current Time: Thu Jul 24 06:44:28 EDT 2014

Powered by FUDForum. Page generated in 0.19973 seconds