How to do page break in the BSP page?

Hi,
I want to display the records in the BSP page, but the records are too many, I want to display them in several pages and I don't want to use tableview, I only want to write code to realize it.
Can anyone give me some suggestions about it?
Thanks very much. Awards will be provided.
Best Regards,
Chris Gu

Hi,
You can look at <xhtmlb:pager> tag:
<xhtmlb:pager id     = "pager"
              design = "<%=cl_xhtmlb_pager=>co_design_horizontal_simple %>+<%=cl_xhtmlb_pager=>co_design_indicator %>"
              hMin   = "1"
              hMax   = "<%= LINES( record_table ) %>"
              hIndex = "<%= l_index %>" />
You can check which action was done with the following code:
CASE l_event->event_class.
  WHEN application->mk_evtcl_pager.
    l_event_pager ?= l_event.
    CASE l_event_pager->if_htmlb_data~event_type.
**    Go to previous page/selected record
      WHEN cl_xhtmlb_pager=>co_event_left OR cl_xhtmlb_pager=>co_event_1left.
        SUBTRACT 1 FROM l_index.
**    Go to next page/selected record
      WHEN cl_xhtmlb_pager=>co_event_right OR cl_xhtmlb_pager=>co_event_1right.
        ADD 1 TO l_index.
**    Go to page/selected record with index given by the user
      WHEN cl_xhtmlb_pager=>co_event_enter.
        l_index = l_event_pager->hindex.
    ENDCASE.
ENDCASE.
Regards,
Tanguy

Similar Messages

  • How to put line break in the text

    Hi guys,
    This is a simple problem.i don't know how to concat a line break while creating a text.
    I am looping through the results of a query and want to form the text using the results.
    For each row of the resultset,I want to create a new line in the text i create.
    I was wondering how to put a new line in the text.
    I thought I can concat '\n' ,but it does not work.
    the code snippet in the procedure is :
    for c1_rec in c1 loop
    vMsg := ' There are ' || c1_rec.total ||
         ' documents of type ' || c1_rec.doc_type || '\n' ;
    end loop;
    Please give the solution.
    Thanks in advance.

    Thank you Mark.
    I tried your suggestion.But line break is not working in email.
    Here is how my code is
    in procedure 1 ,i create the message String as :
    for c1_rec in c1 loop
    vMsg := vMsg || ' ' || today_str || ' - ' || c1_rec.total ||
         ' Total inbound documents from : ' || c1_rec.target_value || CHR(13)||CHR10) ;
    dbms_output.put_line(' ' || vMsg);
    end loop;
    --here sending mail calling another procedure
    sendmail( '[email protected]' ,'[email protected]' , 'Test Subject ' , vMsg );
    In Procedure 2( i.e sendmail procedure )
    i am preparing email server connection from and to adresses .Then i am preparing and sending message as
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    conn:= utl_smtp.open_connection( EmailServer, Port );
         utl_smtp.helo( conn, EmailServer );
         utl_smtp.mail( conn, SENDER);
         utl_smtp.rcpt( conn, RECEIVER )
    mesg:= 'Subject: ' || SUBJECT || crlf ||
                   'Date: '||TO_CHAR( SYSDATE, 'Dy, dd Mon yyyy hh24:mi:ss' )||
                   crlf ||
                   'From:'||SENDER|| crlf ||
                   'To: '||RECEIVER || crlf ||
                   'Content-Type: text/html; charset=ISO-8859-1' || crlf ||
                   '' || crlf || MESSAGE ;
         utl_smtp.data( conn, mesg );
         utl_smtp.quit( conn );
    even now the mail we are getting is not having the line break.I am having line break in dbms output,but not in the mail.
    Is there any mistake how I am sending the mail.Or is there any other way we can put line break in the text
    Thank you.

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • How to find out the page break in the scripts?

    Hi Friends, this is very urgent, plz help me,
    I want to initialize one field(&script-counter&) at each page break. so how can I find out when the page break has occured?
    regards,
    Venkat.

    Hi Naresh,
    here it is automatically continuing with new page(once the first page is completed). but I just want to know when that new page had triggered.
    regards

  • How to keep track of the sequence of the BSP Pages being invoked.

    Hi,
    How to keep track of the sequence of the BSP Pages being invoked.
    I have a BSP Page A.htm. There are two other pages B.HTM and C.HTM in the same BSP Application.
    The page B.HTM has a link A.HTM. The page C.HTM also has a link A.HTM. On clicking  these links the Page A.HTM would be invoked. Is there any way to keep track which BSP Page  (i.e B.HTM or C.HTM) invoked the page A.HTM.
    Any input on this Regard would be of great help.
    Thanks and Regards,
    Pavithra

    Hi Pavithra,
    Declare in page attributes:
    appl_url type string
    In the onClick event of the link that calls the A.htm page , use:
    call method runtime->get_url
    receiving
    URL = appl_url.
    Now appl_url contains the url (also name) of the page that invoked A.htm .
    Hope it helps.
    Anubhav.

  • How do I get rid of the blank space after one paragraph and before the next paragraph startsin Pages '09?  I understand that I should not have a page break mid paragraph but that is what I want.

    How do I get rid of the blank space after one paragraph and before the next paragraph startsin Pages '09?  I understand that I should not have a page break mid paragraph but that is what I want.

    Hi stephanie,
    These are unrelated questions/statements.
    Space before and space after a paragraph are controled in the Text Inspector, as you've found out.
    Pages will create a page break whenever there is no room for another line on the page. That break can come anywhere in a paragraph.
    You may be thinking of Widow and Orphan prevention, and the other Pagination controls, found under the More button in the Text Inspector. (If that's what you found, then thanks for the refresher! I hadn't been to that pane for awhile, and had forgotten the variety of pagination controls available.
    Regards,
    Barry

  • How do I get a section break/page break when the item is greyed out?

    I've created an A4 document in word processing mode, with four identical A6 text boxes covering the entire page. Then I've created a second page with four more A6 text boxes so I can print a postcard on both sides of the card. Trouble is, Pages has made two extra text pages that I don't want, the first is linked to Pages 1 and 2, and the second is separate. I can't create a section break or page break because the command is greyed out, so I can't delete page 3. When I try and delete page 4, which is a stand alone page, it also deletes pages 2,3 and 4, leaving me with just page 1!
    I don't have any problem with page breaks or section breaks in an ordinary A4 document with just one text box on a page, but I often want to create multiple text boxes and when I do I have always had this problem, ever since Pages was first introduced. Can anyone tell me what I'm doing wrong, please?

    Thank you, Yvan, but I've tried that. Firstly, I unchecked the headers and footers tick box in the Inspector because I want the postcards to be exactly A6 size, that is, one quarter of A4. I've tried making the lower two text boxes slightly smaller (which I don't really want to do, because I want them A6 size) but I still can't get the insertion point to appear below the text box – it stays resolutely in the next page and won't go back up to the previous page. Any further ideas? Thank you.

  • How to SELECT ALL records of a TABLE VIEW in the BSP page

    Hi All,
    In the BSP portal, I am displaying some data(multple records) in the form of a table using the BSP TAG <htmlb:tableView>. I wrote the logic in the 'VIEW' of the BSP application which will be triggered by the controller. I have used the attribute selectionMode = "MULTISELECT" to have a Check Box to select a row.
    My requirement is to have a button/checkbox on the first column of the header of the table view. By clicking on this, it should select/desect all the records of the table. Could someone please help me how to do this? What attribute I should use in the tableview to get the button in the header row of the table and how to select all the records of the table.?
    Please provide your valuable inputs.
    Thanks & Regards,
    Paddu.

    Select all / Deselect all functionality when onRowSelection is there

  • How do I match the printed pdf page breaks with the page breaks from the online form?

    The online form is setup to be 4-5 separate pages...each page going to a different person/group when it is printed in a pdf. However, when the form is printed, it prints out all the blanks and the forms are off by about a half page.
    Is there any way to not print the blank spaces (I have several boxes hidden based on choices of the user), and to make the printed pdf honor the online page breaks?

    Hi;
    When you are viewing the "Design" while authoring your form there is a "View" setting that you can access from the "View" menu along the top right, or from the dropdown at the bottom right corner, if you change from "Web View" to "Page View" you can add page breaks there that will affect the PDF.
    Page View is an authoring view to design for PDF where Web View is an authoring View to design for web/browser/HTML forms.  You can use both so that your form looks good in both web and PDF.  Some features have to be added/edited in Web View because they are not supported in PDF such as Attatchments and Skip/Page logic, those are not available to add/edit in Page View.  The Page Breaks added in Web View are not used in the PDF, in Page View "Implicit page breaks" are added automatically based on the size of the page in PDF and you can add "Explicit page breaks" using the form field toolbar as you did in Web View (which will only be used in the PDF).
    When you ask if there is any way not to print the "blank spaces" you are referring to the questions that had remained hidden based on skip logic right?  At this time the entire form is saved/printed to PDF, there is not an option to omit those hidden fields.
    I hope that I understood your issue correctly, let me know if I can help further.
    Thanks,
    Josh

  • How to put page break in SMARTFORMS

    Hi Guys,
              Can anyone please let me know How to put page break in SMARTFORMS
    Regards
    Avi

    Hi,
    Look at the below thread, you will get the answer
    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
    Regards
    Sudheer

  • I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    I am creating a form, it shows 1 page, but when I save it as a PDF Form there are 2 pages, 1 is blank. How do I get rid of the blank page in the form?

    Hi,
    You may open the original form in FormsCentral and toggle to “Page View” at the lower right corner. Adjust the page content to make sure no page breaks in this view.
    Thanks,
    Wenlan

  • How to insert a character and paragraph break at the beginning of a paragraph using Grep

    Dear Community!
    I am stucked...
    I have several books in indesign, which I want to export into epub. I have a standardized procedure, to be able to assign the task to students.
    My problem i I have a paragraph style 'heading2' and I would like to insert a paragraph break before which is styled 'new page'.
    Here is the theory I have thought about:
    -with find and change find the style 'heading2'
    -insert a special character + paragraph break before the first character of the paragraph
    -with a second find and change find the special character
    -replace with nothing and style with 'new page'
    My question is how to insert with grep (?) before the first character anything.
    Please help me!
    Thanks in advance
    ND

    Look in the flyout panel of your Paragraph panel.
    (Or in the Online Help -- a resource a lot of people seem to overlook... It's even *called* "Keep Options". ...
    >I have a problem along these lines that I have not found the answer to by searching, and neither have I been able to start a new discussion on this. (These forums are kind of hard to figure out)
    ... on the top right of THIS web page I can see a heading "Actions", with below it the text "Start a discussion" ...)

  • How to Get Page Break Before Inline TOC in EPUB?

    I'm exporting a book file to epub.  The TOC is created correctly inline, but I can't yet find a way to get a page break right before it. 
    In EPUB Export Options->Advanced, I have selected Split Document->Based on Paragraph Style Export Tags.
    The TOC Header (saying "Table of Contents") has the paragraph style "TOC Heading." In paragraph styles panel->Edit all Export Tags, I have checked the checkbox for "Split EPUB" next to the "TOC Heading" style.
    But, after export, there is no page break before the TOC Header.
    How can I correct this?
    Thanks very much in advance to all for any info.

    I think basically you're doing it correctly. I've run into the same problem. What I found is that the heading in the PLACED table of contents (placed by using the Layout > Table of Contents feature and placing it onto the page) will not work for making a page break. It's a special kind of object because it can be updated by the Update Table of Contents command.
    You have to do a workaround: You need to create "Table of Contents" in a separate frame and apply the TOC Heading paragraph style.
    In the TOC style, DON'T include content for the TOC title. Look at the screen captures below of my TOC.
    By separating the "Contents" into its own frame it works in EPUB:

  • How to avoid page break up in background

    hi all,
              i have developed new report i don't given page break statement .. in foreground it s coming correct  without any page break..
    when i have  schedule in background page break is coming please let me know how to avoid page break in background process.
    regards ,
    santosh
    Edited by: santosh jajur on Jul 8, 2009 12:16 PM
    Edited by: santosh jajur on Jul 8, 2009 12:46 PM

    Hi,
    When you view the output from the report run in batch you are presumably looking at the spool output.  Because you are viewing a preview of what is sent to the printer the spool applies page breaks based on the printer parameters.  When you run the report in dialog you view the report on the screen, and the spool is not involved, so no page breaks.
    If you print your report in dialog then review the spool you'll find it has the page break just as the background run has.
    Regards,
    Nick

  • How to insert Page Break in SPOOL file

    How to insert Page Break in SPOOL file.

    How to insert Page Break in SPOOL file.
    SET NEWP[AGE] {1|n|NONE}
    SET NEWPAGE is not supported in iSQL*Plus
    Sets the number of blank lines to be printed from the top of each page to the top
    title. A value of zero places a formfeed at the beginning of each page (including
    the first page) and clears the screen on most terminals. If you set NEWPAGE to
    NONE, SQL*Plus does not print a blank line or formfeed between the report pages.
    http://www.lc.leidenuniv.nl/awcourse/oracle/server.920/a90842/ch13.htm
    SQL> SET PAGESIZE 5
    SQL> SET NEWPAGE 0 --a form feed between your pages
    SQL> SPOOL C:\output.doc
    SQL> SELECT * FROM emp;
         EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800          0         20
          7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
          7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
         EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
          7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01-MAY-81       2850          0         30
          7782 CLARK      MANAGER         7839 09-JUN-81       2450          0         10
         EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
          7788 SCOTT      ANALYST         7566 09-DEC-82       3000          0         20
          7839 KING       PRESIDENT            17-NOV-81       5000          0         10
          7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
         EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
          7876 ADAMS      CLERK           7788 12-JAN-83       1100          0         20
          7900 JAMES      CLERK           7698 03-DEC-81        950          0         30
          7902 FORD       ANALYST         7566 03-DEC-81       3000          0         20
         EMPNO ENAME      JOB             MGR HIREDATE         SAL       COMM     DEPTNO
          7934 MILLER     CLERK           7782 23-JAN-82       1300          0         10
    13 rows selected.
    SQL> SPOOL OFFKhurram

Maybe you are looking for

  • Flash file insert not showing up in Safari

    Hi. I've got a simple artist's website that was created in Dreamweaver 8 with Flash MX file inserts for the images. I downloaded the new Safari for Windows browser yesterday to test it, and I'm getting the little blue box in place of the Flash files

  • How to remove a disk or diskgroup

    Without breaking up your db, is there a way to remove a disk or disk group ? thanks, Chau

  • Photoshop CS6 installation with student licensing and moving to Windows 64 bit?

    I purchased PS CS6 with student licensing. I was told that I can do two installations (or activations). My question is this: I am currently running Windows 7 32 bit, but I plan to reinstall Windows 7 64 bit later in order to increase my RAM. If I ins

  • External drive to Mac mini

    Hey guys...I just got a mac mini...and I m new to a apple computer...I tried to plug in a external hard drive but it only allows me to get data out of the drive but not putting data back into the drive...anyone got any idea how can I put data back in

  • VDS installtion on Unix or Windows ?

    Hi Experts, We have NW IDM 7.1 installed on HP UX with Oracle 10.2. We have installed the MMC on a local windows desktop. We are planning to use Virtual Directory Server for connecting / intergrating with SAP GRC Access Control for Risk Analysis. Wha