How implement "Paginate" in a web app

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

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: 1 year 3 months ago

I'm use the community version.

marpresi - 6 years 1 month ago

2 Answers:

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
131338
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 2 weeks ago

>"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: 1 year 3 months ago
Feedback