How to get the page number when click the(Next page) Icon on Tableview

Hi all,
       I had implemented a tableview in one of the Views that I had implemented for a BSP application. I am using MVC framework.
Let us assume when we execute the BSP and a table view got 11 pages.
How I can keep track of the page number when we click the  (Next page, Previous page, Bottom , Top) Icons on my tableview . Is there any attribute willstore that  corresponding page number of the tableview when we click the corresponding Icon's??
I had checked both CL_HTMLB_TABLEVIEW and CL_HTMLB_EVENT_TABLEVIEW Classes and i don't find any attribute.
Any help will be appreciated.
Thanks in advance.
Thanks,
Greetson

Hi Greetson,
  I was thinking to write a weblog about that.
  But now I would like to have your opinion:
  I coded a generic method in my main controller (but you could also insert it in the application class) that save the firstvisible row in the class  me->firstvisiblerowlist (that is a table)
  DATA: l_firstvisiblerowlist TYPE zmmsp_tableview_1st_visi_row.
  DATA: ff  TYPE ihttpnvp,
        ffs TYPE tihttpnvp.
  me->request->get_form_fields( CHANGING fields = ffs ).
  LOOP AT ffs INTO ff.
    IF ff-name CP 'f*visiblefirstrow'.
      READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerowlist WITH KEY name = ff-name.
      CASE sy-subrc.
        WHEN 0.
          l_firstvisiblerowlist-name  = ff-name.
          l_firstvisiblerowlist-value = ff-value.
          MODIFY me->firstvisiblerowlist FROM l_firstvisiblerowlist INDEX sy-tabix.
        WHEN 4.
          IF sy-tabix = 0.
            l_firstvisiblerowlist-name  = ff-name.
            l_firstvisiblerowlist-value = ff-value.
            APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
          ELSE.
            l_firstvisiblerowlist-name  = ff-name.
            l_firstvisiblerowlist-value = ff-value.
            INSERT l_firstvisiblerowlist INTO me->firstvisiblerowlist INDEX sy-tabix.
          ENDIF.
        WHEN 8.
          l_firstvisiblerowlist-name  = ff-name.
          l_firstvisiblerowlist-value = ff-value.
          APPEND l_firstvisiblerowlist TO me->firstvisiblerowlist.
      ENDCASE.
    ENDIF.
  ENDLOOP.
Than you have to provide a generic method to read the firstvisiblerow for each tableview
GET_FIRSTVISIBLEROW
*IM_TABLENAME
*RE_VALUE
  DATA: l_firstvisiblerow  TYPE zmmsp_tableview_1st_visi_row.
  READ TABLE me->firstvisiblerowlist INTO l_firstvisiblerow WITH KEY name = im_tablename.
  IF sy-subrc = 0.
    re_value =  l_firstvisiblerow-value.
  ELSE.
    re_value =  1.
  ENDIF.
And in the DO_REQUSET of each controller you could write something like:
* Paginator
  DATA: l_tab1_visiblefirstrow TYPE sytabix.
  l_tab1_visiblefirstrow = o_bsp_main->get_firstvisiblerow( 'f019id_tab1_visiblefirstrow'    ).
As usual pass the value to the view via:
  o_page->set_attribute( name = 'tab1visiblefirstrow' value = l_tab1_visiblefirstrow ).
Did you get it?

Similar Messages

  • How to check credit card number when clicking Update order

    Hi Experts,
    I need to check credit card number when clicking Update order.
    I put  if(document.forms['order_positions'].elements['nolog_cardno'].value == "") in submit_refresh function,  but get "document.forms.order_positions.elements.nolog_cardno.value is null or not an object" error.  Any advises?
    Thanks, Jin

    Try like this
          if ( document.forms['order_positions'].elements['nolog_cardno[0]'].value == "" )

  • Generalizing the return page number when linking to a page in another app

    Hello.
    I know how to link to a page in another app within the same workspace. However, my problem arises when the user tries to go back to the page in the first app.
    Is there a way to "generalize" the "return path". I do not want to hard-code the return page number within a "back link" element on the target page. I was wondering if there is some sort of substitution string I can use in the return http address that automatically "knows" what the returning page number is. Hope I'm making sense here.
    Thanks for any help/advice.

    Funky:
    I have tried some work but no success
    I don't know what you are asking of me. I have given detailed step-by-step instructions on how to implement what I suggested earlier on in this thread. Look at my postings on 9/13/2006. What part are you having trouble with?
    Could you be more specific?
    I'm afraid I am going to have to ask you the same question.
    if page is not submited (called through Tab)
    Apex standard tabs do submit the page and fire after-submit computations defined on the calling page before branching to the "current" page for the tab you click on.

  • How to get sales invoice number when you know print spool id

    I'm using a version of program rstxpdft4 to download printed invoices to pdf.  I'd like to include the invoice number in the name of the download file, but I don't know how to determine that value.  I'm getting the spool id from table TSP01.
    Thanks,
    Den

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • How to get a report "closed" when using the ReportViewerBean

    I read the article /people/ted.ueda/blog/2008/12/20/crystal-reports-for-eclipse--ensuring-report-cleanup from Ted Ueda regarding cleaning up reports for the RAS server.  However, I'm trying to figure out how to get this accomplished for a thick client accessing a local rpt file and then displaying that file using the ReportViewerBean.  I can't seem to get the report closed. I tried the dispose() techniqe from the article, but with no success.
    My basic process is:
    1) Press button on main frame to open and set up report
    2) Pass open report (via ReportClientDocument) object to the viewer frame class (which views report in separate window using ReportViewerBean)
    3) Close viewer window when done, destroy ReportVieweBean and close ReportClientDocument
    4) Press button again on main frame later to view report
    If I set up the report but skip the step of sending the report to the viewer frame, ReportClientDocument.isOpen() will go from true to false after I execute just  the ReportDocumentClient.close() command.  However, if open the viewer frame, I cannot get the report closed.
    In the window closing event for my viewer window I have:
    public void quit() {
                try {
                    CrystalReportViewer crv1 = new CrystalReportViewer();
                    crv1.setReportSource(reportClientDoc.getReportSource());
                    reportViewer.destroy();  //this is a ReportViewerBean
                    reportClientDoc.close();  //this is a ReportClientDoc
                    crv1.dispose();
                    //the following is always true
                    System.out.println("ReportClientDoc.isOpen: " + reportClientDoc.isOpen());
                    this.dispose();
                catch(ReportSDKException ex) {
                    ex.printStackTrace();
                catch(ReportSDKExceptionBase ex) {
                    ex.printStackTrace();
    I'm using the latest Java CR4E 12.2.205.825 downloaded from the CR4E website.  Any ideas?
    Edited by: Joseph Huber on Mar 16, 2010 8:13 PM

    The webservices you are trying to use are not the ones used for enterprise, they are used for non-enterprise applications accessing reports that are stored in a specific location on the web server.
    Here are samples that use our Enterprise SDK:
    [https://boc.sdn.sap.com/samples/84/1193|https://boc.sdn.sap.com/samples/84/1193]
    Here are samples that use our Enterprise Web Service SDK:
    [https://boc.sdn.sap.com/samples/84/1197|https://boc.sdn.sap.com/samples/84/1197]
    You can also look at the SDK documentation available here:
    [http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]

  • How to get sales order number when it is created in VA01

    hai experts,
    i have a requirement , when i create a sales order using transaction VA01 and save the transaction number , after saving i want to catch the sales order number and use in some other fucntion moudle, how can i do that  , should i use the events or any other methods to do the same
    regards
    m.a

    You can call you Z function module either from the workflow or from a BADI' where you can access the newly created sales order the BADi name is BADI_SD_V46H0001 and the method that you need to check is
    EXIT_SAPLV46H_003     Customer Function when Creating/Changing Header
    You can even call the FM from workflow too, but aganin for tht you need to create a ZBOR, if at all you are using a standard Business object and you hvae to create a new task and include that new task in the workflow by creating a new background Activity step. which I personally feel that you eed to put some more effort to fix the issue.
    Instead it is simple and sweet to call that function module from the Method which mentioned. where you can acess the sales document number tooo check int he method parameters.

  • How to get undo datafile number without opening the database ?

    I cannot open the database because the my undotbs01.dbf file is corrupted :
    SQL> connect sys/... as sysdba
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Process ID: 6627
    Session ID: 170 Serial number: 5
    SQL>
    I tryed several solutions but I failed. So I want to use RMAN :
    set newname for datafile X to '/location/undotbs01.dbf';
    But how can I get X which is the file number for my undo tablespace ? I cannot call
    SELECT tablespace_name,file_id,file_name FROM dba_data_files;
    because my database cannot be opened.

    hi,
    hi have this problem and i cannot solve it, the customer has not backup data base
    can you help me ?
    thanks
    can you send me the note you are talking about ?
    thanks
    regards
    I cannot open the database because the my undotbs01.dbf file is corrupted :
    SQL> connect sys/... as sysdba
    Connected to an idle instance.
    SQL> startup mount;
    ORACLE instance started.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    SQL>

  • Where do i find the 'order number' when installing the Adobe Creative Suite 6?

    I cannot find any 'order number' what so ever. All i have is the 'product code' which is printed on the yellow booklet that came with the software. I have tried entering this code into the 'order number' box and there are too many characters for it to fit in the box. Hense i got an email off Apple saying it didnt work. However they said that this 'product code' was the right code and the one i should be using, so why doesnt it work?? I have found a set of instructions online explaining how to install this software and it said to get the 'order number' i need to go into my 'order history' i did this...and apparently i have no history of buying anything, when clearly that is wrong seeing as i bought the software package along with my macbook on monday 11th march 2013 (3 days ago). I have phoned the Apple Store in Birmingham and the guy i spoke to talked me through installing the software on a trial basis, using the disc that came with the package. He said once it had installed, it would give me the option to make the trial into the real version and would provide me with a code in order to do so. This did not happen. I am nearly tearing my hair out. Someone help me please? I am a student and need the 'serial number' (i think thats what its called) in order to prove i have a legitimate copy of the software. But before i get the serial number i need to sort out this 'order number' so i can send off my application and prove i am a student. I also want to be able to use the software as soon as possible as i study Graphic Design and that is the whole reason i bought it.

    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How to get max sequence number when some record exists in data base table

    Hi,
    I need to create sequence such a way that it should starts from max value already exists in table.
    Example:
    I have table like below:
    ID NAME
    1 A
    2 B
    3 C
    4 D
    Now when creating sequence it should start from 5 but I should't hard code STARTS WITH 5 in the create sequence. Is there any way to do this without hard code the max value in the sequence. It should automatically take the max + 1 value for next data when I insert.
    CREATE SEQUENCE TEST_SEQ.NEXTVAL
    START WITH [Max + 1 val from the table]
    MAXVALUE 9999999999999999999999999999
    MINVALUE 1
    NOCYCLE
    CACHE 20
    NOORDER;
    Thanks.....
    Edited by: 998976 on Apr 18, 2013 4:37 AM
    Edited by: 998976 on Apr 18, 2013 4:38 AM

    Hi,
    The numbers in a CREATE SEQUENCE statement are all literals; no other kinds of numeric expressions are allowed.
    You need dynamic SQL to do anything like what you want. For example:
    COLUMN     seq_start_col     NEW_VALUE  seq_start
    SELECT     1 + MAX (val)     AS seq_start_col
    FROM     table_x;
    CCREATE SEQUENCE TEST_SEQ.NEXTVAL
    START WITH  &seq_start
    MAXVALUE 9999999999999999999999999999
    MINVALUE 1
    NOCYCLE
    CACHE 20
    NOORDER;

  • Is there a way to modify the file name when clicking the pdf button to be different

    I wish to have the default name to something like document type_document #.

    Hi,
    Only possible when you export through File--->Export--->PDF. If you directly click PDF icon, system will store with default format.
    Thanks & Regards,
    Nagarajan

  • Any way to make DM select the closing tag when clicking the opening tag?

    Visual Studio allows you to for example select an opening
    <p> tag... and then bolds the closing </p>. Same with
    <div> and so on. I realize DM has a breadcrumb view near the
    properties window but that's comparatively weak. Any way to make
    this happen with DM9?
    That would be really handy - I'm amazed it's not default.
    Thanks!

    Have you explored the features available in the Coding
    Toolbar? e.g. Select
    Parent Tag
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7bca.html
    Regards
    John Waller

  • How to get the total page number when using Crystal Report in JSP

    In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
    Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
    Thanks.

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • When converting word to pdf the cover page of my documet gets page number 1.On the original the numb

    When converting word to pdf the cover page of my documet gets page number 1.On the original the number pages start from the second page.How to keep the original format?

    Michael's reponse is correct. However, as far as I knew, OFFICE 2007 came with printer metrics turned off, meaning it is not supposed to be sensitive to the printer selection. The setting is buried in the options list for compatibility. If it is turned off and a change in printer does affect the result, it would appear just one more of the many things in OFFICE 2007 that MS messed up. The latest one for me has been helping students with the messed up equation editor when you want to add equation numbers in a "standard" way. One of the MS employees even wrote a workaround macro for that problem.

  • When clicking the + tab in the tab bar how do I set new tabs to automatically open my home page

    When clicking the + tab in the tab bar how do I set new tabs to automatically open my home page

    You can do that by using an add-on such as:
    * NewTabURL - https://addons.mozilla.org/firefox/addon/newtaburl
    * New Tab Homepage - https://addons.mozilla.org/firefox/addon/new-tab-homepage
    Another way of opening the home page in a new tab is to middle click on the home button in the navigation toolbar.

  • Deleted cell number appears (along with the edited number) when sending a text.  How do I get rid of it?

    Deleted cell number appears (along with the edited number) when sending a text.  How do I get rid of it?

    It has nothing to do with iOS 6. It's always been that way. Given that it's been this way for so long, one assumes that Apple knows about it and has their own reasons for not changing it.
    Restore the phone as new, not from back up to delete the numbers. Or, wait until the cache gets overwritten.
    Best of luck.

Maybe you are looking for

  • Troublesho​oting middle click quirks

    Hello All New to the world of lenovo.   I am trying to troubleshoot an issue where the middle mouse button randomly works and am trying to figure out if it is hardware or software related. Some info Hardware: Lenovo x230 OS: Ubuntu 12.04.2 (64bit) Ke

  • Flash player 11.0.1.152 installation problem with Windows Vista 64-Bit

    Hello, I just can't get Flash Player to install on my computer with Windows Vista 64-Bit - doesnt matter if I try with Firefox, Opera or IE (I usually use Firefox). The download isn't a problem, but when I start the downloaded .exe, this file just di

  • Is there a equivalent of "Data Validation" function in Numbers?

    Hi, I think this question have been asked before in 2009. But there's no conclusive answer. I just imported a medium complexity xlsx sheet into Numbers, "data validation have been removed data retained" message appeared. Is there a equivalent functio

  • Which Logical data base has SAP System tables (EDI)

    Hi, Which Logical database has SAP System tables(related to EDI-Cross application). Could you please any one share this your thoughts. Points will be rewared. Thanks, Senthil

  • InfoObject to R/3 Field Mapping

    Does anybody know of a list that shows the standard Business Content InfoObjects and what they typically are mapped to in R/3? The reason is that I want to use the standard InfoObjects wherever possible without creating new ones unnecessarily. As an