BusinessObject doesn't support sort and filter

Stimulsoft Reports.WEB discussion
Post Reply
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

BusinessObject doesn't support sort and filter

Post by jkoo »

Do you have any plan to support sort and filter capability for BusinessObject(that is, when RegBusinessObjects() is called)?
Or
Is there any alternative way ?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

BusinessObject doesn't support sort and filter

Post by Alex K. »

Hello,

Business Objects are so specific that applying to them the standard methods of sorting, filtering, grouping is not possible. Alternatively, you can use the RegData() for adding them to the report dictionary. In this case, it may be used both sorting and filtering.
Also for filtering you can use Conditions.

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

BusinessObject doesn't support sort and filter

Post by jkoo »

One more question,

Is there a way to load data inside report (that is, by script or event subcription)?
If there is any sample, please let me know.

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

BusinessObject doesn't support sort and filter

Post by HighAley »

Hello.
jkoo wrote:Is there a way to load data inside report (that is, by script or event subcription)?
If there is any sample, please let me know.
There are several way to do it.
Could you explain your issue in more details for more particular answer?

Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

BusinessObject doesn't support sort and filter

Post by jkoo »

I'd like to define user functions to return business objects.
For example,

Code: Select all

IList GetProducts(string category)
{
    return ...
}
Then I'd like to make end users design reports by calling this user functions inside the report.
I think it's the way to create report at web without compiling program.

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

BusinessObject doesn't support sort and filter

Post by HighAley »

Hello.
jkoo wrote:I'd like to define user functions to return business objects.
For example,

Code: Select all

IList GetProducts(string category)
{
    return ...
}
Then I'd like to make end users design reports by calling this user functions inside the report.
I think it's the way to create report at web without compiling program.
Please, see the example code that you can use in your function:

Code: Select all

MyObject2 obj = new MyObject2();
obj.list = new MyObject2.Category[2];
MyObject2.Category c1 = new MyObject2.Category();
c1.number = 1;
c1.name = "Cat1";
c1.description = "desc for n1";
MyObject2.Category c2 = new MyObject2.Category();
c2.number = 2;
c2.name = "Cat2";
c2.description = "desc for n2";
obj.list[0] = c1;
obj.list[1] = c2;

this.BusinessObjectsStore[0].BusinessObjectValue = obj;
Thank you.
jkoo
Posts: 64
Joined: Fri Aug 19, 2011 8:08 pm

BusinessObject doesn't support sort and filter

Post by jkoo »

Hi Aleksey

One more question,
Where is the best place to put this script to load data?
I think 'Printing' or 'Begin Render' event is a candidate.

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

BusinessObject doesn't support sort and filter

Post by HighAley »

Hello.
jkoo wrote:One more question,
Where is the best place to put this script to load data?
I think 'Printing' or 'Begin Render' event is a candidate.
Put this script to 'Begin Render' event.

Thank you.
Post Reply