setting up page number for jqgrid - dynamic

I am facing a problem in setting up the page numbers of jqgrid dynamically. I am new to this jqgrid and would like the assistance to learn it fast.
I have a scenario which if somebody can answer would be very great for me.
I have an application, which can bring millions of records in a single query output.
For this i want something like paging chunks of data instead of getting all data at once (which will not happen anyhow)
For this, i would hit server for first time and find out the total records to be displayed, but return only 2000 of it.
Once user uses paging next button and reaches the last record, on click of next button, the next 2000 records from server will be brought up.
Problem here is the pager shows that there are only 20 pages (i have set 100 as total records in a page), and it disable next button as soon as page 20 is accessed, thus stopping to get new set of data from server
Even if somehow, i get the next set of data, the page should shows me only 20 records of initial. I want page to show me total records/size of page in first go itself although there will be only 2000 records, so that next, previous, first and last button can be used freely and data from server can be brought as and when required.
Has anybody worked on such a thing? I am really stuck with this requirement for over 2 weeks now. Thanks to all in advance. Hope to get an answer soon on this.

I have got it working using localreader which helps me set the total, records and page count to correct values.

Related

SSRS doesn't display all the data when toggle option is used (only one page for display ~1000 rows)

I have issue in SSRS where I have a report for some indicators, but
underneath some of the indicators I want to display detailed info rows for that indicator. Because of that I used toggle option so I don't see rows of detailed info rows unless I need them. And everything is on this one page which is ok.
But issue comes in a case where there is almost 2000 rows for detailed info for certain indicator and when I expand tablix I don't see all the data but only 1400 rows for example and don't see anything what was after that tablix in the report.
When I try to display data without toggling option there is about 50+ pages instead of only 2 (I think SSRS want's all tablix's content to be on 1 page which in this case can't be done and everything else on the rest).
Is there a solution for this?
I tired grouping of data and putting option page break after new group but no luck.

My recordset returns only one record even though there are more one record in Microsoft Access

I am creating a form that loads all the information from the Activity_Table into the form. So basically when the user chooses the name of the Company from the Company_Name drop down, and selects the site from the Site_Name combo box, it is supposed to return the values from that site and put them into the form.
Basically one site can appear more than once in the Activity_Table. Yet, whenever the user selects the name of the site, it only returns one record. To make sure of this, I used the .Recordcount method to check how many records that will be retrieved.
So when you check the Activity table, the Site "Accra Mall - 630kva Gen 2 " appears 4 times, yet when you check the recordcount, it only says it appears Once. So because of this, I cannot move either forward or backwards to either the next or previous record.
To make sure that there was nothing wrong with my sql, I run the query in the Query Design and it produced all 4 records of "Accra Mall - 630kva Gen 2".
So there is nothing wrong with the sql statement. Can anyone help me out please?
This is when I choose the name of the site
We can see that it returns only One record here
Yet this is the amount of records it's supposed to produce(This was when I tried the sql code in the query design tab. It returns 4 records, Not 1). So the recordcount is supposed to be 4. Not One.
this is when I tried the sql to in the previous picture.
If I replicated your problem correctly then the answer is to set Data-Entry to no. Check your form properties. Under the data tab there is a data-entry property. set data-entry to no. From microsoft at https://support.microsoft.com/en-us/office/dataentry-property-f4236759-27f6-4fcd-abb0-4aa4acd8fe87 we get an explanation:
You can use the DataEntry property to specify whether a bound form opens to allow data entry only. The Data Entry property doesn't determine whether records can be added; it only determines whether existing records are displayed. Read/write Boolean.

MS Access form is requerying every time I scroll

I have an MS Access continuous form, one of the fields checks the count of files in a folder relevant to the record. These files are stored on a 12.5 Kbps (the speed of a floppy disk) Sharepoint server, so it takes about 7 seconds per record to query the number of files. And that's fine, except that any time I scroll up or down, it requeries the file count of the records that are newly visible on screen. This means I can't scroll past more than one record every 7 seconds.
What I'd like for the form to do is query ALL the records it would show in the continuous form, and then stop requerying them unless specifically told to.
The line for the data source is
WorksheetFileCount: FlrFileCount("\\vaww.visn21.portal.va.gov\sanfrancisco\education\EDADMIN\ProgramFiles\" & [ProgramID] & "\worksheet\") .
What I have tried so far.
Build a separate query for the data and direct the form to that query. Same result.
Build a report from the form. Same result.
EDIT: One particularly weird thing is that it doesn't actually query those folders until that area of the query is visible on screen. So if I put the folder query in the 10th column, and my display only shows 9 columns, it doesn't query the folders until I scroll to the right, at which point it queries all of them. So something in Access is querying JUST the records visible on-screen.

Adobe Forms records do not flow after first page

I'm kinda stuck with a problem which I have no idea how to fix. I'm doing a nested loop using 2 tables in the form but the output is funny where the records disappear for records more than a page. It shows only one page but not the balance of it. Besides that, there is a blank page before the records as well. Please help me with this.
if the child table has less than 72 records per item, then it's fine.
Thank you Gurus
Use Parallel Cursor for the nested loop and store all values in 1 Final Table.

Restricting table row in SQL Reporting 2008

I need to restrict the number of rows in my tablix, and have the left overs go to another page and also be restricted to the same amount and so on....
So my sample dataset has 2 records, to test I added a Grouping Expression as described here http://msdn.microsoft.com/en-us/library/ms157328.aspx
=int((RowNumber(Nothing)-1)/1)
...and set page breaks
this worked successfully, with the first record displayed on its own page and subsequent record displayed on a new page...
Howver when I choose to restrict the no of records to 12 e.g.
=int((RowNumber(Nothing)-1)/12)
I'd expect to see those 2 records displayed on the first page, though i only see one of them...
Any thoughts? Thanks
Thought Id come back and let others know what I had done wrong here, it might help someone.
I was incorreclty applying the expression to the details row... you have to right click the details row then Click Add Group -> Parent Group and apply the expression there.