-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Hi, great kit!
I am struggling implementing multiple arrays within one report.
For example:
defaultValues = @{
@"Assets": Assets,
@"Debtors": Debtors,
@"Bank": Bank};
Where each of these is an array of an "item" object.
In the demo you have the one "articles" array.
I want to have a title for each array in the report rather than a long list of transactions, so it would look like:
Assets
….report rows
….report rows
...report rows
Debtors
….report rows
…report rows
...report rows
Bank
…report rows
…report rows
etc.
This works without doing anything to the required delegate method below, if it fits onto one page:
- (id)reportsGenerator:(PRKGenerator *)generator dataForReport:(NSString *)reportName withTag:(NSString *)tagName forPage:(NSUInteger)pageNumber offset:(NSUInteger)offset itemsCount:(NSUInteger)itemsCount
However, when it goes over one page it is displaying the same data on multiple pages.
Do you have an example of how I can do this?
Do I need to return the below for each array and do something with the offset?
[[defaultValues valueForKey:tagName] subarrayWithRange:NSMakeRange(offset, count)]
Any help would be greatly appreciated, thanks.