Home » Archived » BIRT » sending a report parameter as an argument to a function
sending a report parameter as an argument to a function [message #71349] |
Fri, 02 September 2005 12:22  |
Eclipse User |
|
|
|
Originally posted by: sai.yelamanchili.gmail.com
Hi,
I want to send a report parameter as an argument to a function in a java
class. I'm working on Scripted Data Source. Does anyone have any ideas
on this.
Help Appreciated.
Thanks
Sai
|
|
| | | | | | | | |
Re: Error [message #71597 is a reply to message #71579] |
Fri, 02 September 2005 15:14   |
Eclipse User |
|
|
|
Originally posted by: sai.yelamanchili.gmail.com
Jason,
Its a date paramater. Its of Type DateTime.
Thanks
Jason Weathersby wrote:
> Sai,
> Is your paramater a string?
> If so make sure its double quoted.
>
> Jason Weathersby
> BIRT PMC
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa75k$gme$2@news.eclipse.org...
>
>>Jason
>>Can You please tell me why do I get the following error :
>>"Some required parameter values are not set or set to incompatible data
>>type."
>>
>>what parameter values is this referring to ?
>>
>> I appreciate Your time and effort.
>>
>>Thanks in advance
>>Sai
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>
>>>You should be able to just add
>>>var x = new A().B(params["yourparametername"]);
>>>One caveat. Dont do this in the open method of the Data Source. I
>>>believe there is a problem with this.
>>>Try it on the Data Set open method.
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>
>>>
>>>>Jason,
>>>>really looks like its gonna help me. Can you make this a little clear.
>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>argument) of that class, I mean
>>>>
>>>>In open() function:
>>>>
>>>>importPackage(Packages x.x.x.x.);
>>>>var x = new A().B();
>>>>
>>>>and now I need a argument to be set to B from a user input, how do I do
>>>>that ?
>>>>
>>>>Thanks much!
>>>>Sai
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Sai,
>>>>>You should be able to do this.
>>>>>As an example I have a class that I use as an RSS reader and in my open
>>>>>method I use a parameter to set the feed.
>>>>>
>>>>>open method on Data Set
>>>>>
>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>brss..setFeed(params["RssFeed"]);
>>>>>brss.readFeed();
>>>>>...
>>>>>
>>>>>Jason Weathersby
>>>>>BIRT PMC
>>>>>
>>>>>
>>>>>
>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>Thanks!
>>>>>>
>>>>>>Sai Yelamanchili wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi,
>>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>>java class. I'm working on Scripted Data Source. Does anyone have any
>>>>>>>ideas on this.
>>>>>>>Help Appreciated.
>>>>>>>Thanks
>>>>>>>Sai
>>>>>
>>>>>
>
>
|
|
|
Re: Error [message #71654 is a reply to message #71597] |
Fri, 02 September 2005 15:33   |
Eclipse User |
|
|
|
Sai,
Have you tried
var dt = new Date(params["yourparameter"]);
new A().B( dt);
Jason Weathersby
BIRT PMC
"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:dfa88u$ich$1@news.eclipse.org...
> Jason,
> Its a date paramater. Its of Type DateTime.
>
> Thanks
>
>
> Jason Weathersby wrote:
>> Sai,
>> Is your paramater a string?
>> If so make sure its double quoted.
>>
>> Jason Weathersby
>> BIRT PMC
>>
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa75k$gme$2@news.eclipse.org...
>>
>>>Jason
>>>Can You please tell me why do I get the following error :
>>>"Some required parameter values are not set or set to incompatible data
>>>type."
>>>
>>>what parameter values is this referring to ?
>>>
>>> I appreciate Your time and effort.
>>>
>>>Thanks in advance
>>>Sai
>>>
>>>Jason Weathersby wrote:
>>>
>>>>Sai,
>>>>
>>>>You should be able to just add
>>>>var x = new A().B(params["yourparametername"]);
>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>believe there is a problem with this.
>>>>Try it on the Data Set open method.
>>>>
>>>>Jason Weathersby
>>>>BIRT PMC
>>>>
>>>>
>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>
>>>>
>>>>>Jason,
>>>>>really looks like its gonna help me. Can you make this a little clear.
>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>argument) of that class, I mean
>>>>>
>>>>>In open() function:
>>>>>
>>>>>importPackage(Packages x.x.x.x.);
>>>>>var x = new A().B();
>>>>>
>>>>>and now I need a argument to be set to B from a user input, how do I do
>>>>>that ?
>>>>>
>>>>>Thanks much!
>>>>>Sai
>>>>>
>>>>>Jason Weathersby wrote:
>>>>>
>>>>>
>>>>>>Sai,
>>>>>>You should be able to do this.
>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>open method I use a parameter to set the feed.
>>>>>>
>>>>>>open method on Data Set
>>>>>>
>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>brss.readFeed();
>>>>>>...
>>>>>>
>>>>>>Jason Weathersby
>>>>>>BIRT PMC
>>>>>>
>>>>>>
>>>>>>
>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>Thanks!
>>>>>>>
>>>>>>>Sai Yelamanchili wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>>>java class. I'm working on Scripted Data Source. Does anyone have
>>>>>>>>any ideas on this.
>>>>>>>>Help Appreciated.
>>>>>>>>Thanks
>>>>>>>>Sai
>>>>>>
>>>>>>
>>
|
|
|
Re: Error [message #71673 is a reply to message #71654] |
Fri, 02 September 2005 15:38   |
Eclipse User |
|
|
|
Originally posted by: sai.yelamanchili.gmail.com
Yes I did,
Error persists.
Thanks
Sai
Jason Weathersby wrote:
> Sai,
> Have you tried
> var dt = new Date(params["yourparameter"]);
> new A().B( dt);
>
> Jason Weathersby
> BIRT PMC
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa88u$ich$1@news.eclipse.org...
>
>>Jason,
>>Its a date paramater. Its of Type DateTime.
>>
>>Thanks
>>
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>Is your paramater a string?
>>>If so make sure its double quoted.
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:dfa75k$gme$2@news.eclipse.org...
>>>
>>>
>>>>Jason
>>>>Can You please tell me why do I get the following error :
>>>>"Some required parameter values are not set or set to incompatible data
>>>>type."
>>>>
>>>>what parameter values is this referring to ?
>>>>
>>>>I appreciate Your time and effort.
>>>>
>>>>Thanks in advance
>>>>Sai
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Sai,
>>>>>
>>>>>You should be able to just add
>>>>>var x = new A().B(params["yourparametername"]);
>>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>>believe there is a problem with this.
>>>>>Try it on the Data Set open method.
>>>>>
>>>>>Jason Weathersby
>>>>>BIRT PMC
>>>>>
>>>>>
>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Jason,
>>>>>>really looks like its gonna help me. Can you make this a little clear.
>>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>>argument) of that class, I mean
>>>>>>
>>>>>>In open() function:
>>>>>>
>>>>>>importPackage(Packages x.x.x.x.);
>>>>>>var x = new A().B();
>>>>>>
>>>>>>and now I need a argument to be set to B from a user input, how do I do
>>>>>>that ?
>>>>>>
>>>>>>Thanks much!
>>>>>>Sai
>>>>>>
>>>>>>Jason Weathersby wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Sai,
>>>>>>>You should be able to do this.
>>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>>open method I use a parameter to set the feed.
>>>>>>>
>>>>>>>open method on Data Set
>>>>>>>
>>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>>brss.readFeed();
>>>>>>>...
>>>>>>>
>>>>>>>Jason Weathersby
>>>>>>>BIRT PMC
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>>Thanks!
>>>>>>>>
>>>>>>>>Sai Yelamanchili wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>I want to send a report parameter as an argument to a function in a
>>>>>>>>>java class. I'm working on Scripted Data Source. Does anyone have
>>>>>>>>>any ideas on this.
>>>>>>>>>Help Appreciated.
>>>>>>>>>Thanks
>>>>>>>>>Sai
>>>>>>>
>>>>>>>
>
|
|
|
Re: Error [message #71692 is a reply to message #71673] |
Fri, 02 September 2005 16:00   |
Eclipse User |
|
|
|
Sai,
I had a similar error in the past with a string parameter.
Have you checked the log file for anything under
org.eclipse.birt.report.viewer_1.0.1\birt\logs
Additionally is this the only paramter?
Jason Weathersby
BIRT PMC
"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
news:dfa9m5$k4r$1@news.eclipse.org...
>
> Yes I did,
> Error persists.
>
> Thanks
> Sai
>
>
>
> Jason Weathersby wrote:
>> Sai,
>> Have you tried
>> var dt = new Date(params["yourparameter"]);
>> new A().B( dt);
>>
>> Jason Weathersby
>> BIRT PMC
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa88u$ich$1@news.eclipse.org...
>>
>>>Jason,
>>>Its a date paramater. Its of Type DateTime.
>>>
>>>Thanks
>>>
>>>
>>>Jason Weathersby wrote:
>>>
>>>>Sai,
>>>>Is your paramater a string?
>>>>If so make sure its double quoted.
>>>>
>>>>Jason Weathersby
>>>>BIRT PMC
>>>>
>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>news:dfa75k$gme$2@news.eclipse.org...
>>>>
>>>>
>>>>>Jason
>>>>>Can You please tell me why do I get the following error :
>>>>>"Some required parameter values are not set or set to incompatible data
>>>>>type."
>>>>>
>>>>>what parameter values is this referring to ?
>>>>>
>>>>>I appreciate Your time and effort.
>>>>>
>>>>>Thanks in advance
>>>>>Sai
>>>>>
>>>>>Jason Weathersby wrote:
>>>>>
>>>>>
>>>>>>Sai,
>>>>>>
>>>>>>You should be able to just add
>>>>>>var x = new A().B(params["yourparametername"]);
>>>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>>>believe there is a problem with this.
>>>>>>Try it on the Data Set open method.
>>>>>>
>>>>>>Jason Weathersby
>>>>>>BIRT PMC
>>>>>>
>>>>>>
>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Jason,
>>>>>>>really looks like its gonna help me. Can you make this a little
>>>>>>>clear.
>>>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>>>argument) of that class, I mean
>>>>>>>
>>>>>>>In open() function:
>>>>>>>
>>>>>>>importPackage(Packages x.x.x.x.);
>>>>>>>var x = new A().B();
>>>>>>>
>>>>>>>and now I need a argument to be set to B from a user input, how do I
>>>>>>>do that ?
>>>>>>>
>>>>>>>Thanks much!
>>>>>>>Sai
>>>>>>>
>>>>>>>Jason Weathersby wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Sai,
>>>>>>>>You should be able to do this.
>>>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>>>open method I use a parameter to set the feed.
>>>>>>>>
>>>>>>>>open method on Data Set
>>>>>>>>
>>>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>>>brss.readFeed();
>>>>>>>>...
>>>>>>>>
>>>>>>>>Jason Weathersby
>>>>>>>>BIRT PMC
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>>>Thanks!
>>>>>>>>>
>>>>>>>>>Sai Yelamanchili wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>I want to send a report parameter as an argument to a function in
>>>>>>>>>>a java class. I'm working on Scripted Data Source. Does anyone
>>>>>>>>>>have any ideas on this.
>>>>>>>>>>Help Appreciated.
>>>>>>>>>>Thanks
>>>>>>>>>>Sai
>>>>>>>>
>>>>>>>>
>>
|
|
|
Re: Error [message #71709 is a reply to message #71692] |
Fri, 02 September 2005 16:20   |
Eclipse User |
|
|
|
Originally posted by: sai.yelamanchili.gmail.com
Jason
This is the only parameter.
Thanks
sai
Jason Weathersby wrote:
> Sai,
>
> I had a similar error in the past with a string parameter.
> Have you checked the log file for anything under
> org.eclipse.birt.report.viewer_1.0.1\birt\logs
> Additionally is this the only paramter?
>
> Jason Weathersby
> BIRT PMC
>
> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
> news:dfa9m5$k4r$1@news.eclipse.org...
>
>>Yes I did,
>>Error persists.
>>
>>Thanks
>>Sai
>>
>>
>>
>>Jason Weathersby wrote:
>>
>>>Sai,
>>>Have you tried
>>>var dt = new Date(params["yourparameter"]);
>>>new A().B( dt);
>>>
>>>Jason Weathersby
>>>BIRT PMC
>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>news:dfa88u$ich$1@news.eclipse.org...
>>>
>>>
>>>>Jason,
>>>>Its a date paramater. Its of Type DateTime.
>>>>
>>>>Thanks
>>>>
>>>>
>>>>Jason Weathersby wrote:
>>>>
>>>>
>>>>>Sai,
>>>>>Is your paramater a string?
>>>>>If so make sure its double quoted.
>>>>>
>>>>>Jason Weathersby
>>>>>BIRT PMC
>>>>>
>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>news:dfa75k$gme$2@news.eclipse.org...
>>>>>
>>>>>
>>>>>
>>>>>>Jason
>>>>>>Can You please tell me why do I get the following error :
>>>>>>"Some required parameter values are not set or set to incompatible data
>>>>>>type."
>>>>>>
>>>>>>what parameter values is this referring to ?
>>>>>>
>>>>>>I appreciate Your time and effort.
>>>>>>
>>>>>>Thanks in advance
>>>>>>Sai
>>>>>>
>>>>>>Jason Weathersby wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Sai,
>>>>>>>
>>>>>>>You should be able to just add
>>>>>>>var x = new A().B(params["yourparametername"]);
>>>>>>>One caveat. Dont do this in the open method of the Data Source. I
>>>>>>>believe there is a problem with this.
>>>>>>>Try it on the Data Set open method.
>>>>>>>
>>>>>>>Jason Weathersby
>>>>>>>BIRT PMC
>>>>>>>
>>>>>>>
>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Jason,
>>>>>>>>really looks like its gonna help me. Can you make this a little
>>>>>>>>clear.
>>>>>>>>Suppose, if I'm referencing a class A and invoking function B(with
>>>>>>>>argument) of that class, I mean
>>>>>>>>
>>>>>>>>In open() function:
>>>>>>>>
>>>>>>>>importPackage(Packages x.x.x.x.);
>>>>>>>>var x = new A().B();
>>>>>>>>
>>>>>>>>and now I need a argument to be set to B from a user input, how do I
>>>>>>>>do that ?
>>>>>>>>
>>>>>>>>Thanks much!
>>>>>>>>Sai
>>>>>>>>
>>>>>>>>Jason Weathersby wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Sai,
>>>>>>>>>You should be able to do this.
>>>>>>>>>As an example I have a class that I use as an RSS reader and in my
>>>>>>>>>open method I use a parameter to set the feed.
>>>>>>>>>
>>>>>>>>>open method on Data Set
>>>>>>>>>
>>>>>>>>>brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>>brss..setFeed(params["RssFeed"]);
>>>>>>>>>brss.readFeed();
>>>>>>>>>...
>>>>>>>>>
>>>>>>>>>Jason Weathersby
>>>>>>>>>BIRT PMC
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>"Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>>>news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Is there really a way to do this ? Does report parameters work with
>>>>>>>>>>Scripted Data Sources ? Is this supported ?
>>>>>>>>>>Thanks!
>>>>>>>>>>
>>>>>>>>>>Sai Yelamanchili wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>I want to send a report parameter as an argument to a function in
>>>>>>>>>>>a java class. I'm working on Scripted Data Source. Does anyone
>>>>>>>>>>>have any ideas on this.
>>>>>>>>>>>Help Appreciated.
>>>>>>>>>>>Thanks
>>>>>>>>>>>Sai
>>>>>>>>>
>>>>>>>>>
>
>
|
|
|
Detailed Idea [message #72101 is a reply to message #71709] |
Mon, 05 September 2005 13:54   |
Eclipse User |
|
|
|
Originally posted by: sai.yelamanchili.gmail.com
Jason
What I'm exactly doing is :
I have an object A and a class B. Class B has a function that takes an
argument "x", which is a date and returns ArrayList of A objects.
Now, I have to use the Scripetd Data Source to make a report from the
returned ArrayList.
In my open and fetch of Data Set, I'm usig the following code:
Open()
importPackage(Packages.com.rpc.core.accounting.model);
dt = new Date(params["input"]);
c = new B().A(dt);
itrLista = c.iterator();
Fetch()
while(itrLista.hasNext())
{
a = itrLista.next();
row["1"]= a.get1();
row["2"]= a.get2();
row["3"]= a.get3();
row["4"]= a.get4();
row["5"]= a.5();
return true;
}
return false;
I get the following error :
" Some required parameter values are not set or set to incompatible data
type."
1. while creating the report parameter input, Do I have to select type
as String or Datetime.
And any other ideas how I can proceed with this. Cudnt't find any
online-help. I'm actually new to reporting.
I appreciate Ur help.
Thanks
Sai
Sai Yelamanchili wrote:
> Jason
> This is the only parameter.
>
> Thanks
> sai
>
> Jason Weathersby wrote:
>
>> Sai,
>>
>> I had a similar error in the past with a string parameter.
>> Have you checked the log file for anything under
>> org.eclipse.birt.report.viewer_1.0.1\birt\logs
>> Additionally is this the only paramter?
>>
>> Jason Weathersby
>> BIRT PMC
>>
>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>> news:dfa9m5$k4r$1@news.eclipse.org...
>>
>>> Yes I did,
>>> Error persists.
>>>
>>> Thanks
>>> Sai
>>>
>>>
>>>
>>> Jason Weathersby wrote:
>>>
>>>> Sai,
>>>> Have you tried
>>>> var dt = new Date(params["yourparameter"]);
>>>> new A().B( dt);
>>>>
>>>> Jason Weathersby
>>>> BIRT PMC
>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>> news:dfa88u$ich$1@news.eclipse.org...
>>>>
>>>>
>>>>> Jason,
>>>>> Its a date paramater. Its of Type DateTime.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>> Jason Weathersby wrote:
>>>>>
>>>>>
>>>>>> Sai,
>>>>>> Is your paramater a string?
>>>>>> If so make sure its double quoted.
>>>>>>
>>>>>> Jason Weathersby
>>>>>> BIRT PMC
>>>>>>
>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>> news:dfa75k$gme$2@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Jason
>>>>>>> Can You please tell me why do I get the following error :
>>>>>>> "Some required parameter values are not set or set to
>>>>>>> incompatible data type."
>>>>>>>
>>>>>>> what parameter values is this referring to ?
>>>>>>>
>>>>>>> I appreciate Your time and effort.
>>>>>>>
>>>>>>> Thanks in advance
>>>>>>> Sai
>>>>>>>
>>>>>>> Jason Weathersby wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Sai,
>>>>>>>>
>>>>>>>> You should be able to just add
>>>>>>>> var x = new A().B(params["yourparametername"]);
>>>>>>>> One caveat. Dont do this in the open method of the Data Source.
>>>>>>>> I believe there is a problem with this.
>>>>>>>> Try it on the Data Set open method.
>>>>>>>>
>>>>>>>> Jason Weathersby
>>>>>>>> BIRT PMC
>>>>>>>>
>>>>>>>>
>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>>> news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Jason,
>>>>>>>>> really looks like its gonna help me. Can you make this a little
>>>>>>>>> clear.
>>>>>>>>> Suppose, if I'm referencing a class A and invoking function
>>>>>>>>> B(with argument) of that class, I mean
>>>>>>>>>
>>>>>>>>> In open() function:
>>>>>>>>>
>>>>>>>>> importPackage(Packages x.x.x.x.);
>>>>>>>>> var x = new A().B();
>>>>>>>>>
>>>>>>>>> and now I need a argument to be set to B from a user input, how
>>>>>>>>> do I do that ?
>>>>>>>>>
>>>>>>>>> Thanks much!
>>>>>>>>> Sai
>>>>>>>>>
>>>>>>>>> Jason Weathersby wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Sai,
>>>>>>>>>> You should be able to do this.
>>>>>>>>>> As an example I have a class that I use as an RSS reader and
>>>>>>>>>> in my open method I use a parameter to set the feed.
>>>>>>>>>>
>>>>>>>>>> open method on Data Set
>>>>>>>>>>
>>>>>>>>>> brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>>> brss..setFeed(params["RssFeed"]);
>>>>>>>>>> brss.readFeed();
>>>>>>>>>> ...
>>>>>>>>>>
>>>>>>>>>> Jason Weathersby
>>>>>>>>>> BIRT PMC
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in
>>>>>>>>>> message news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Is there really a way to do this ? Does report parameters
>>>>>>>>>>> work with Scripted Data Sources ? Is this supported ?
>>>>>>>>>>> Thanks!
>>>>>>>>>>>
>>>>>>>>>>> Sai Yelamanchili wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>> I want to send a report parameter as an argument to a
>>>>>>>>>>>> function in a java class. I'm working on Scripted Data
>>>>>>>>>>>> Source. Does anyone have any ideas on this.
>>>>>>>>>>>> Help Appreciated.
>>>>>>>>>>>> Thanks
>>>>>>>>>>>> Sai
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>
>>
|
|
|
Re: Detailed Idea [message #72121 is a reply to message #72101] |
Mon, 05 September 2005 14:42  |
Eclipse User |
|
|
|
Originally posted by: sai.yelamanchili.gmail.com
Jason
What I'm exactly doing is :
I have an object A and a class B. Class B has a function that takes an
argument "x", which is a date and returns ArrayList of A objects.
Now, I have to use the Scripetd Data Source to make a report from the
returned ArrayList.
In my open and fetch of Data Set, I'm usig the following code:
Open()
importPackage(Packages.com.rpc.core.accounting.model);
dt = new Date(params["input"]);
c = new B().A(dt);
itrLista = c.iterator();
Fetch()
while(itrLista.hasNext())
{
a = itrLista.next();
row["1"]= a.get1();
row["2"]= a.get2();
row["3"]= a.get3();
row["4"]= a.get4();
row["5"]= a.5();
return true;
}
return false;
I get the following error :
" Some required parameter values are not set or set to incompatible data
type."
After I enter the date,
the error is:
" Script engine error: TypeError: findOpenDepositsAsOfDate is not a
function. (DataSet:OpenVendorDeposit.open#2 "
1. while creating the report parameter input, Do I have to select type
as String or Datetime.
And any other ideas how I can proceed with this. Cudnt't find any
online-help. I'm actually new to reporting.
I appreciate Ur help.
Thanks
Sai
Sai Yelamanchili wrote:
> Jason
> What I'm exactly doing is :
> I have an object A and a class B. Class B has a function that takes an
> argument "x", which is a date and returns ArrayList of A objects.
> Now, I have to use the Scripetd Data Source to make a report from the
> returned ArrayList.
> In my open and fetch of Data Set, I'm usig the following code:
>
> Open()
> importPackage(Packages.com.rpc.core.accounting.model);
> dt = new Date(params["input"]);
> c = new B().A(dt);
> itrLista = c.iterator();
>
> Fetch()
> while(itrLista.hasNext())
> {
> a = itrLista.next();
> row["1"]= a.get1();
> row["2"]= a.get2();
> row["3"]= a.get3();
> row["4"]= a.get4();
> row["5"]= a.5();
> return true;
> }
> return false;
>
> I get the following error :
> " Some required parameter values are not set or set to incompatible data
> type."
>
> 1. while creating the report parameter input, Do I have to select type
> as String or Datetime.
> And any other ideas how I can proceed with this. Cudnt't find any
> online-help. I'm actually new to reporting.
> I appreciate Ur help.
>
> Thanks
> Sai
>
>
> Sai Yelamanchili wrote:
>
>> Jason
>> This is the only parameter.
>>
>> Thanks
>> sai
>>
>> Jason Weathersby wrote:
>>
>>> Sai,
>>>
>>> I had a similar error in the past with a string parameter.
>>> Have you checked the log file for anything under
>>> org.eclipse.birt.report.viewer_1.0.1\birt\logs
>>> Additionally is this the only paramter?
>>>
>>> Jason Weathersby
>>> BIRT PMC
>>>
>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>> news:dfa9m5$k4r$1@news.eclipse.org...
>>>
>>>> Yes I did,
>>>> Error persists.
>>>>
>>>> Thanks
>>>> Sai
>>>>
>>>>
>>>>
>>>> Jason Weathersby wrote:
>>>>
>>>>> Sai,
>>>>> Have you tried
>>>>> var dt = new Date(params["yourparameter"]);
>>>>> new A().B( dt);
>>>>>
>>>>> Jason Weathersby
>>>>> BIRT PMC
>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>> news:dfa88u$ich$1@news.eclipse.org...
>>>>>
>>>>>
>>>>>> Jason,
>>>>>> Its a date paramater. Its of Type DateTime.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>> Jason Weathersby wrote:
>>>>>>
>>>>>>
>>>>>>> Sai,
>>>>>>> Is your paramater a string?
>>>>>>> If so make sure its double quoted.
>>>>>>>
>>>>>>> Jason Weathersby
>>>>>>> BIRT PMC
>>>>>>>
>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in message
>>>>>>> news:dfa75k$gme$2@news.eclipse.org...
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> Jason
>>>>>>>> Can You please tell me why do I get the following error :
>>>>>>>> "Some required parameter values are not set or set to
>>>>>>>> incompatible data type."
>>>>>>>>
>>>>>>>> what parameter values is this referring to ?
>>>>>>>>
>>>>>>>> I appreciate Your time and effort.
>>>>>>>>
>>>>>>>> Thanks in advance
>>>>>>>> Sai
>>>>>>>>
>>>>>>>> Jason Weathersby wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> Sai,
>>>>>>>>>
>>>>>>>>> You should be able to just add
>>>>>>>>> var x = new A().B(params["yourparametername"]);
>>>>>>>>> One caveat. Dont do this in the open method of the Data
>>>>>>>>> Source. I believe there is a problem with this.
>>>>>>>>> Try it on the Data Set open method.
>>>>>>>>>
>>>>>>>>> Jason Weathersby
>>>>>>>>> BIRT PMC
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in
>>>>>>>>> message news:dfa5mo$etj$1@news.eclipse.org...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Jason,
>>>>>>>>>> really looks like its gonna help me. Can you make this a
>>>>>>>>>> little clear.
>>>>>>>>>> Suppose, if I'm referencing a class A and invoking function
>>>>>>>>>> B(with argument) of that class, I mean
>>>>>>>>>>
>>>>>>>>>> In open() function:
>>>>>>>>>>
>>>>>>>>>> importPackage(Packages x.x.x.x.);
>>>>>>>>>> var x = new A().B();
>>>>>>>>>>
>>>>>>>>>> and now I need a argument to be set to B from a user input,
>>>>>>>>>> how do I do that ?
>>>>>>>>>>
>>>>>>>>>> Thanks much!
>>>>>>>>>> Sai
>>>>>>>>>>
>>>>>>>>>> Jason Weathersby wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> Sai,
>>>>>>>>>>> You should be able to do this.
>>>>>>>>>>> As an example I have a class that I use as an RSS reader and
>>>>>>>>>>> in my open method I use a parameter to set the feed.
>>>>>>>>>>>
>>>>>>>>>>> open method on Data Set
>>>>>>>>>>>
>>>>>>>>>>> brss = new Packages.org.birt.examples.sds.BirtRssReader();
>>>>>>>>>>> brss..setFeed(params["RssFeed"]);
>>>>>>>>>>> brss.readFeed();
>>>>>>>>>>> ...
>>>>>>>>>>>
>>>>>>>>>>> Jason Weathersby
>>>>>>>>>>> BIRT PMC
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> "Sai Yelamanchili" <sai.yelamanchili@gmail.com> wrote in
>>>>>>>>>>> message news:df9vb6$6a3$1@news.eclipse.org...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Is there really a way to do this ? Does report parameters
>>>>>>>>>>>> work with Scripted Data Sources ? Is this supported ?
>>>>>>>>>>>> Thanks!
>>>>>>>>>>>>
>>>>>>>>>>>> Sai Yelamanchili wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>> I want to send a report parameter as an argument to a
>>>>>>>>>>>>> function in a java class. I'm working on Scripted Data
>>>>>>>>>>>>> Source. Does anyone have any ideas on this.
>>>>>>>>>>>>> Help Appreciated.
>>>>>>>>>>>>> Thanks
>>>>>>>>>>>>> Sai
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>
>>>
|
|
|
Goto Forum:
Current Time: Fri May 02 18:20:25 EDT 2025
Powered by FUDForum. Page generated in 0.05387 seconds
|