|
|
|
|
|
|
|
Re: HowTo - Scripting - Dinamically get Images... [message #656460 is a reply to message #656449] |
Fri, 25 February 2011 13:24  |
Eclipse User |
|
|
|
Use one of these methods:
reportContext.getRenderOption().getOptions().get("report");
or
reportContext.getReportRunnable().getReportName();
Jason
On 2/25/2011 12:39 PM, Bruno Mattos wrote:
> I managed to solve my problem.
>
> Using the solution suggested earlier - var myURL
> reportContext.getResource = ("green.png") - can get on the path to the
> project where my report is located, I just need to know the name of a
> file that is in the project.
>
> For example, I can do:
> var myurl reportContext.getResource = ("whatever.whatever");
> (assuming there's a file named whatever.whatever in the project folder)
> And then I just need to remove the end of the string, so i get the
> address to the the project folder.
>
> I can also point to the report itself, since I know the report's name.
> Any tips on how to get the report's name directly from a javascript that
> is running in a Image's field?
>
> Thank you for your help.
|
|
|
Powered by
FUDForum. Page generated in 0.03986 seconds