Find whether current page is the last page

Post Author: guyi
CA Forum: JAVA
                                                  hi,I am using JRC to open and view a report in my JSP.I would like to create my own toolbar in the page, for that I set the toolbar display in the CrystalReportViewer to false as follow:viewer.setDisplayToolbar(false);I
need to recognize the current page number and whether current page is
the last one, I found that CrystalReportPartsViewer has the right
method isLastPage(), unfortunately it does not work - this method
always return false.(Note that I am using the viewer.getHtmlContent() method and not viewer.processHttpRequest()) Any idea?Thanks in advanceGuy

Post Author: Ted Ueda
CA Forum: JAVA
Part of the equation is supplied via method:
    doc.getReportSource().getLastPageNumber(new com.crystaldecisions.sdk.occa.report.reportsource.RequestContext());
where doc is the ReportClientDocument class instance for the report.
Sincerely,
Ted Ueda

Similar Messages

  • Creation of a Query to show the values for the current month and the last 12 months data.

    Dear All,
    Good day!
    I have to create a Query with the below requirement.
    I have to create a Query to show the values for the current month and the last 12 months data.
    Can you please guide me how to achieve this ??
    thank you,
    Regards,
    Hema

    Hema
    explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
    you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
    for some more hints..
    http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
    http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
    http://scn.sap.com/thread/3217381
    search on SDN you will get many other ways..
    Thanks,
    Bhupesh

  • Sum from current date to the last date of sales

    Hi 
    It's been a while since I used MDX last time. 
    I have a simple question (probably). I need a measure which sums up from the current date to the last sale date. 
    It's like a reversal of Year To date.  And I need to do it date level. 
    Let's say is the sales goes like
    1/May/2000     $1000
    2/May/2000     $1000
    3/May/2000     $1000
    4/May/2000     $1000
    5/May/2000     $1000
    I need to create a measure which displays sum of current sales and last sales
    1/May/2000     $5000  
    2/May/2000     $4000
    3/May/2000     $3000
    4/May/2000     $2000
    5/May/2000     $1000
    I have a date hierarchy and hope it can be rolled up. 
    And I tried like something like ( suggested in another posting)
    [Date].[Calendar].CurrentMember:NULL}
    But this does not work for me.
    The actual MDx I wrote is 
    With member MEASURES.ActiveLicences as 
    sum ( 
    {[License Expiry Date].[FinancialYear].[YY-MMM].CurrentMember: null},
    [Measures].[No of Students]
    select {
    MEASURES.ActiveLicences,
    [Measures].[No of Students] } on columns, 
    [License Expiry Date].[FinancialYear].[YY-MMM].members on rows 
    from [Sales];
    Can anyone help me with this please? 
    Kind regards
    Mark Kim

    Hi SQLMa ,
    I was trying a similar code, using a hierarchy expression instead of a member expression for the CurrentMember functionality . Here is an Adventure Works example :
    With member MEASURES.ActiveLicences as 
    sum ( {[Delivery Date].[Fiscal].CurrentMember: null}
    , [Measures].[Internet Sales Amount]) 
    select {MEASURES.ActiveLicences,[Measures].[Internet Sales Amount]} on columns
    , [Delivery Date].[Fiscal].[Month].members on rows 
    from [Adventure Works]
    Hope it helps :)
    Regards, David .

  • Showing current date and the last 250 working days

    Hi,
    we need to report the current day and the last 250 working days. How can I implement this into the BEx by using a variable for the current day selection. How can the selection of the last 250 working days work?
    Thanx
    René

    Hi Rene,
    I think that you have to go for a customer exit variable with multiple selections. The exit will calculate all these work days and place them into output for restriction.
    Best regards,
    Eugene

  • How to find out current PAGE NAME (not Page No) in SAPSCRiPT

    Hi,
    Is there anyway i can find the current page name in sapscripts which i can check in IF condition and accordingly perform some task. I searched and found out ITCTG-TDPAGE structure but its giving me error when i try to print in text element editor.
    Regards
    Amber

    Hi Amber,
    the otf[]-Table is located in a function group...
    Sry, forgot to add this.. that's the thing without a system available
    To solve your problem, I would work with the otf-data. I just can give you suggestion because the solution might be a bit bigger.
    Set yourself a unique string into the line you want to draw a box (perhaps @BOX1). Afterwards you can replace this variable with things you want to do. There is a lot possible with having the otf-data itself.
    Important is, that you do this before calling CLOSE_FORM
    Regards
    Florian
    BTW: OP are the first two unique chars in the line
    Here is a example-coding
    FIELD-SYMBOLS: <gt_otf> TYPE ssftotf,
       <ls_otf> TYPE itcoo.
    ASSIGN ('(SAPLSTXC)OTF[]') TO <gt_otf>.
       IF sy-subrc = 0 AND <gt_otf> IS ASSIGNED.
    LOOP AT <gt_otf> ASSIGNING <ls_otf>
         WHERE tdprintcom = 'ST'
         AND tdprintpar+7 = '@UL1'.
    ENDLOOP.
       ENDIF.

  • How to check whether current time satisfies the schedule?

    I am working on a task, which is opposite of cron tab. My application is in groovy but can call all Java api. Can you please provide some pointers?
    User is allowed to schedule a rule to be executed the way crontab gives the options. For example he wants the rule to be executed from Monday to Friday from 8 am to 5 pm.
    I can’s schedule in crontabe or Quartz. At run time I have to match, whether the current time satisfy the time condition entered by user.
    I may have to store this information in the database the way we put in the cron. Eg. my tables will have following
    Id|| Policy Id|| seconds|| minutes|| hours|| Day|| Date|| month|| year
    1 || 5 || 1     || 1 || 8-17 || M-F||? || * ||*
    Now while my code is getting executing, how can I match whether the current time matches the condition mentioned above.
    Thanks in advance.

    [Using Span|http://tus.svn.sourceforge.net/viewvc/tus/tjacobs/util/] would make this easy

  • To find whether current user has SAP_ALL profile or not.

    Hi all,
    Can anyone tell me that whether is there any method by which I can pass the user id and can know whether that user has the SAP_ALL profile or not.
    The above is done by using the transaction SU01,but I need the ABAP code that is being used in this transaction.
    Regards,
    Varun.
    Message was edited by:
            Varun Bhandari

    Hi,
    Check table USR02 for the same.
    Regards,
    Ram

  • Just upgraded to FF 5.0... NOW, pressing the mouse wheel turns the current tab into the last tab that I copied. Never did this b4? Can find no settings to change this behavior..

    I have TabMixPlus and All-In-One Gestures 0.22.1 installed... have not changed any settings in them, checked to see if there was a setting to change (no), and find that the only way to keep this from happening is to restart FF 5.0. If I do NOT copy a link, then this issue does not exist. AFTER I copy a link and paste it into a new tab, Facebook, etc., then it is in memory and gets pasted with a mouse-wheel click.

    Mountain Lion is OS X 10.8
    10.6 was called Snow Leopard.
    To use iTunes 10.7 the following is required:
    Macintosh System Requirements
    Mac computer with an Intel Core processor and 512MB of RAM
    OS X version 10.6.8 or later
    Safari 4.0.3 or later
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    Do you use iTunes Match?
    That way all of your songs would be matched with the master song on the iTunes servers independently of iTunes on your Mac or PC...
    Look here for further information: http://www.apple.com/itunes/itunes-match/

  • Finding out the last event that occurred?

    Hello,
    Would anyone know how I can find out programmtically what was the
    last event that occurred? For example, I want to know if the
    delete-record event has been generated (via user clicking on
    delete record item). I tried the system variables but none seem
    to do the trick.
    Thank you,
    Sam Al-Droubi
    null

    So you do have a column to sort by (I didn't mean that it had to be an inserted date,just that there had to be some column to sort by).
    Using analytic functions (generally more efficient)
    SELECT *
      FROM (SELECT e.*, rank() over (order by empno asc) rnk
              FROM emp e)
    WHERE rnk = 1Using "old fashioned" SQL (generally less efficient)
    SELECT *
      FROM emp
    WHERE empno = (SELECT MIN(empno) FROM emp)Justin

  • How to test to see if the cursor is on the last row in a jTable?

    I like to know how to test the cursor position in jTable.

    From the many topics you post here, I can see that you are thinking in the wrong terms.
    Although it's possible, you should not test if the current row is the last one in a JTable. Instead you should test whether or not the current row is the last one in a VO instance, to which any particular JTable's model is bound.
    So, please read the API documentation for oracle.jbo.ViewObject and oracle.jbo.server.ViewObjectImpl.

  • How do I drop the last 3 characters in a string?

    Hello.  I'm trying to find a way to drop the last 3 characters in a string.  The length varies because it is a last name field.  The problem is that when a customer has a suffix on their name, III for example, it is appended to the last name all in the last name field.  If I use the ProperCase function, I end up with "Smith Iii".  How can I tell it to drop the last 3 characters?  I'll then append an UpperCase edition of the last 3 characters to that.  Thank you!

    Use the instring and right string functions then UpperCase

  • How do you change the last opened date in Lion?

    In many screens the files are organized automatically by last opened date.  This information is not available when you click command info on the individual file, however, if you list out the files and click on the option to show last opened on the row on the top you will see this information.
    From time to time it is useful to change the creation and modification dates to move where files are displayed in various windows.  While there are utilities and articles about changing the creation and last modified date using third party software or the terminal, I have not been able to find any way to change the last opened date.  This is useful if you wish to hide a file you recently opened so that another user can't just find it as one of the last opened files. 
    When I googled this question all the solutions using terminal either with touch -t or touch -mt commands changed the creation and modification dates, but did not affect the last opened date.
    Anyone have a solution to this?

    Thank you MacNix!!!!!

  • How to see the last updates made during Power Nap?

    Hello guys,
    I am using MacBook Pro with Retina Display with Power Nap turned on. I think it's a great feature, but I wouyld like more control — to be able to see the updates it has made while sleeping.
    Is there any way to see the last updates made during Power Nap? Maybe some logs etc.

    You can see updates installed via Software Update by clicking on the Apple > About this Mac > more info > System Report > scroll down to Software > Installations. That is a comprehensive list - you won't find a separate list of the last hour or whatever (that I know of). There might be a terminal command for that - or not - I don't know of one.
    FWIW, I like to know what updates are being installed when, so I do not allow automatic download/installs of anything - I allow automatic checking so I get a notification that an update is available, but then I prefer to choose if/when I will download and install.

  • Setting the last slide to stay on screen

    Hello, I am making a slide show for work and am not able to find a way to keep the last slide in the iPhoto slideshow on screen at the conclusion of the show (want to stay in presentation mode instead of going to the editing screen).
    Thanks!

    Yes, I think so. 
    Set each slide's duration time manually to what you want in the Settings/This Slide pane:
    The last slide can be set to a maximum of 999 seconds.
    If you choose music it will continue to play, repeating if the track isn't longer than 999 seconds, until the 999 seconds run out.  For longer than 999 seconds duplicate the last slide, add it at the end and set it to 999 seconds also. 
    OT

  • Looking for the last item in a string set in a particular character style

    I should find each space that is the last character in a string set in a particular character style. For example, in the passage "123 456 789" (the underlined part here indicating a passage set in a particular character style), my ideal GREP search would yield a match after the digit 6.
    How do this?

    Excellent! This works perfectly. I have used your string with the bold character formatting, and replaced the matches with [nothing], set in None style.
    On second thought, I was surprised that it indeed had worked: why was the space replaced, and not deleted? Shouldn't I have used
    (?<!.)(\s)(?=\w)
    and replaced it with
    $2

Maybe you are looking for