How implement "Paginate" in a web app

0
I'm starting with issues related to the use and implementation of JasperServer rest_v2 services.
I've made for my purpose, the implementation of services to show a simple report. I even managed to show the inputControls developing a library itself to shape the html elements.
 
In particular I find the disadvantage that not quite understand how the paginated. 
 
They have worked with this? I would give any advice or recommendation to consider?
 
Thank's!
Martin.-
marpresi's picture
Joined: Apr 25 2016 - 11:56am
Last seen: 3 years 5 months ago

I'm use the community version.

marpresi - 3 years 5 months ago

2 Answers:

1

Is the report paginated when you view it on JasperReports Server? If not, you probably set your report not to paginate in your report layout.

>"I can not make it work as desire."

How do you want it to work? Are you using "Default Pagination"? Are you getting a paginated report with the default setting?

hozawa's picture
51278
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 months 1 week ago
0

>"Is the report paginated when you view it on JasperReports Server?"

Yes, it is.

Report Example

>"How do you want it to work? Are you using "Default Pagination"? Are you getting a paginated report with the default setting?"

I wish to work with the default pagination.

See:

public string GetResource(string resource) 
{            string pathResource = "resources?q=" + resource;
           var cookie = Login("jasperadmin", "Report2016");            
wClient.Headers.Add("Cookie", cookie);            
SetHeader("Accept", "application/json;q=0.8");            
try            {                
var requestLogin = wClient.DownloadString(GetServiceUrl() + pathResource + "&limit=10&offset=0&forceTotalCount=true");               
return wClient.ResponseHeaders["Set-Cookie"];            
}     catch (Exception ex)            {                return ex.Message;            }  }    

marpresi's picture
Joined: Apr 25 2016 - 11:56am
Last seen: 3 years 5 months ago
Feedback