Page 1 of 1
BusinessObject doesn't support sort and filter
Posted: Fri Aug 19, 2011 8:12 pm
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
BusinessObject doesn't support sort and filter
Posted: Mon Aug 22, 2011 2:05 am
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.
BusinessObject doesn't support sort and filter
Posted: Mon Aug 22, 2011 11:24 am
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
BusinessObject doesn't support sort and filter
Posted: Wed Aug 24, 2011 12:59 am
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.
BusinessObject doesn't support sort and filter
Posted: Wed Aug 24, 2011 1:21 am
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
BusinessObject doesn't support sort and filter
Posted: Thu Aug 25, 2011 8:19 am
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.
BusinessObject doesn't support sort and filter
Posted: Tue Aug 30, 2011 11:55 am
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
BusinessObject doesn't support sort and filter
Posted: Wed Aug 31, 2011 8:05 am
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.