Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Server-to-data-source paging

Not applicable
Hi, all,

Im trying to set up a server to data-source paged service. Ive got everything set up so that Im getting my assembler called and am returning values, but Im not getting paged calls.

Specifically:

public Collection fill(List fillArgs, int begin, int rows)

is always called with begin == -1 and rows == -1, instead of getting real values to page through. In addition:

public boolean useFillPage(List fillParameters)

is never called (my implementation always returns true for all parameters).

This is my destination configuration:




session
com.williams.finance.invoice.dao.InvoiceReviewListAssembler









And my Flex code for calling the data service:

myDataService = new DataService("invoiceListDataService");
myDataService.autoSyncEnabled=false;
myDataService.fill(myArrayCollection, params);

Am I missing something in here?

Thanks.

tj
2 Replies
Not applicable
To follow up on my own message, it appears that the pageSize header is not being sent as part of the message from Flex to the JavaAdapter, but I have no idea on why. I even added a 'myDataService.pageSize=100;' in the flex client. 😞



tj
Not applicable
To follow up once again (for the sake of future developers :), I found the answer. Our project consists of multiple sub-projects. While I had set the -service flag for the main project, the sub-project that contains the code did not have the flag. Adding that compile flag fixed the problem.