Re: Limit number of records to print on report
Originally posted by jdoyle
View Post
Tim,
I tested you suggestion in the zip you sent an earlier post in a different sample of my app. I didn't want to ruin my app that will be the finished product in cace I did someting wrong.
Or in case I did something wrong. :D
I entered some more data and ran a new report.
See attached example:
The weight is ok in that the last current "wtdate" is at the top (02/01/2050 1200)
You have injections and wormer sorting by "date" given. It should sort by "due" for injections and "wormer_due for wormer. Then the injection "due" for 01/01/2050 would be at the top and the "wormer Due" for 01/10/2050 would be moved to the top. Thats what I thought you wanted from your description. But I guess I got confused about what the PDF represented, I thought it showed how you wanted the order but I think I see now it was what you were getting with your test that was not what you wanted. (Everyone confused now. I tried changing these as you stated in your reply, but could not get it to work. Kept getting Invalid expression. I think we'll need some more exact details on the steps you took to diagnose what went wrong there. In the select records dialog I just pressed the xy button in the order field bringing up the expression buillder. Then using F2 chose a field. Pressed OK to close the builder and then chose descending just below the Order field.
I agree that this solution is the best.
Not sure if it is the best. It definately has its limitations. Namely the record selection is limited to the last six physical records as opposed to being able to use some other filter.(But I guess if that is allyou need it will do.) I kind a like Gabe and Tom's solution using table.external_record_content_get()
It is now 2 AM here--going to bed!
Thank you -Thank you
For your help Pleasure.
Jim
I tested you suggestion in the zip you sent an earlier post in a different sample of my app. I didn't want to ruin my app that will be the finished product in cace I did someting wrong.
Or in case I did something wrong. :D
I entered some more data and ran a new report.
See attached example:
The weight is ok in that the last current "wtdate" is at the top (02/01/2050 1200)
You have injections and wormer sorting by "date" given. It should sort by "due" for injections and "wormer_due for wormer. Then the injection "due" for 01/01/2050 would be at the top and the "wormer Due" for 01/10/2050 would be moved to the top. Thats what I thought you wanted from your description. But I guess I got confused about what the PDF represented, I thought it showed how you wanted the order but I think I see now it was what you were getting with your test that was not what you wanted. (Everyone confused now. I tried changing these as you stated in your reply, but could not get it to work. Kept getting Invalid expression. I think we'll need some more exact details on the steps you took to diagnose what went wrong there. In the select records dialog I just pressed the xy button in the order field bringing up the expression buillder. Then using F2 chose a field. Pressed OK to close the builder and then chose descending just below the Order field.
I agree that this solution is the best.
Not sure if it is the best. It definately has its limitations. Namely the record selection is limited to the last six physical records as opposed to being able to use some other filter.(But I guess if that is allyou need it will do.) I kind a like Gabe and Tom's solution using table.external_record_content_get()
It is now 2 AM here--going to bed!
Thank you -Thank you
For your help Pleasure.
Jim
Comment