How to make pagination of output?

for example :
below example outputs a new table in one page while i want to make it output in
different page (it means first page then next page and then ...)
how to add php code in that example and make it output what i want.
who can help me?
<?php
create table testtable (
order_number number(4),
item_id number(4),
quantity number(8),
item_desc varchar2(16)
insert into testtable values (1001,1,10,'apple');
insert into testtable values (1001,2,20,'banana');
insert into testtable values (1002,2,50,'banana');
insert into testtable values (1002,1,30,'apple');
commit;
Table Test DATA
order_number item_id quantity item_desc
1001 1 10 apple
1001 2 20 banana
1002 2 50 banana
1002 1 30 apple
$table ="testtable";
$sid="(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=202.79.36.170)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=WLDB)))";
$conn = ocilogon("hr", "hr", $sid);
$sql="select distinct(item_desc) item_desc from $table";
$stmt = oci_parse ($conn, $sql);
oci_execute ($stmt);
$items=array();
$result= array();
$i=0;
while ($result = oci_fetch_array($stmt,OCI_BOTH)) {
$items[$i]=$result['ITEM_DESC'];
// echo $result['ITEM_DESC'];
$i=$i+1;
//build part of select stateme
for ($i=0; $i<sizeof($items); $i++) {
$select_items .= "SUM($items[$i]) $items[$i],";
for ($i=0; $i><sizeof($items); $i++) {
$decode_items .= "DECODE(item_desc,'$items[$i]', quantity, null) $items[$i],";
//final SQL statement
$sql="SELECT $select_items order_number
FROM (SELECT $decode_items order_number FROM $table )
group by order_number";
$stmt=oci_parse ($conn, $sql);
oci_execute($stmt);
echo "><table border=1>";
echo "<tr>";
echo "<td>Order Number</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "><td>".$items[$i]."</td>";
echo "</tr>";;
while ($row = oci_fetch_array ($stmt, OCI_BOTH)) {
echo "<tr>";
echo "<td>".$row['ORDER_NUMBER']."</td>";
for ($i=0; $i<sizeof($items); $i++) {
echo "><td>".$row[$i]."</td>";
echo "</tr>";
echo "</table>";
?>

who can help me or give me an example ?

Similar Messages

  • How to make dual mono output from one mono track

    Please forgive my complete ignorance of music mixing/sound board terminology: I'm only using Logic Pro X because Apple deliberately made it impossible to use Soundtrack Pro as part of a roundtrip with FCPx. Soundtrack Pro is what I've always used for editing audio for video.
    I recorded two tracks with the video: microphone on the right and and lavalier on the left. The mic was just a backup and the lav track is what I want to use.  I imported the audio into LPx and now I want to use only the left channel but I want it to output equally on both channels. I've searched all over for a simple explaination (at least one who is not a music editor can understand) and haven't found one.
    How can I do this? Thanks.
    Second question: I found the little icon that lets makes the timeline scroll to follow the playhead (ridiculous that FCPx doesn't have this) but I can only make it work for one clip at at time. Is there a way to turn it on permanently?

    On the Channels Strip (of the Audio Track with the Audio Region), ctr+click on the left segment of the Input Button. That opens a popup menu where you can select Left (only the left channel of the Audio Region is played as mono), or Right (only the right channel of the Audio Region is played as mono).
    Once the signal flow of the Channel Strip is mono (one channel), you can use the "Mono➤Stereo" version of some plugins to convert the Channel Strip to a stereo channel.
    About your second question. If you are referring to the little blue "Catch Playhead Button", that automatically scrolls the Workspace when the Playhead reaches the right border to keep the Workspace visible. You also can also enable  the "Scroll in Play" mode in the local View Menu. That one locks the Playhead in the center and scroll the Workspace "underneath"
    However if you are referring to that little Play icon in the left upper corner of the Region Header (only visible in the Editor), that one, the "Solo Play Button", only plays that Region in solo mode. It is basically a combination of "Play " and "Solo" in on button. You can find all those little informations and much more in my graphically enhanced manual "Logic Pro X - How it Works".
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • How to make this example output in using Excel table ?

    for example :
    <?php
    $con = oci_connect("apps","apps","prod");
    $sql = " select h.order_number,to_char(h.ordered_date,'YYYY/MM/DD HH24:MI'),h.order_type_id
    from oe_order_headers_all h
    where to_char(h.ordered_date,'YYYYMMDD') = '20060620'
    and h.org_id = 85 ";
    $smt = oci_parse($con, $sql);
    oci_execute($smt);
    echo "<table border = 1>";
    echo "<tr><td>order_number</td><td>ordered_date</td><td>order_type</td></tr>";
    while($rows = oci_fetch_array($smt,BOTH_NUM)) {
    echo "<tr>";
    echo "<td>".$rows[0]."</td>";
    echo "<td>".$rows[1]."</td>";
    echo "<td>".$rows[2]."</td>";
    echo "</tr>";
    echo "</table>";
    ?>
    above example outputs table generally from IE while i want to make it output throught Excel and outputs Excel table.
    who can help me ?
    thanks!

    Hi,
    the pear command is a programm, which is installed together with php, as long as you did not configured php with the configure-option "--without-pear".
    After you have downloaded a package like Spreadsheet_Excel_Writer-0.9.0.tgz into a folder like, let's say
    c:\myDownloads\pear\ (on Windows-systems)
    or /myDownloads/pear/ (on UNIX-systems)
    you take your Commandline (console, xterm ... ( onUNIX)) or CMD (on Windows) and change to that directory:
    $> cd /myDownloads/pear (UNIX)
    $> CHDIR C:\myDownloads\pear\ (Windows)
    After this, just type:
    pear install Spreadsheet_Excel_Writer-0.9.0.tgz
    press [ ENTER ] and that's it. The installation will be finished.
    After this small steps are done, you can start writing code, using Spreadsheet_Excel_Writer
    running
    $> pear --help
    will give you more infos on using the pear utilities.
    Greetings from Hamburg
    Thorsten

  • How to make stop analog outputting

    Hi nice guys,
    I'm working on an analog voltage simulation, some signals are longer than half hour, maybe one hour. The function I want to do is, when I click the stop button, the analog output can be stopped immediately. I have no exp. and no idea to make it out.
    Thank u in anvance.
    best regards
    Dai

    Sounds like you are looking for something like this
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Stop Task.png ‏18 KB

  • How to make report output non editable

    Hi can any body give me sample code on how to make the report output non editable.
    thanks in advance
    kp

    Hi
    What are you meaning?
    U don't want to allow to change the data in the selection-screen?
    If it's so:
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    If you need to change only certain fields:
    PARAMETERS: P1 ......,
                P2 ...... MODIF ID AAA.
    SELECT-OPTIONS: SO_1 FOR .....,
                    SO_2 FOR ..... MODIF ID AAA.
    AT SELECTION-SCREEN OUTPUT.
       LOOP AT SCREEN.
          CHECK SCREEN-GROUP1 = 'AAA'.
          SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDLOOP.
    Max

  • How to make a Input Field with multiple lines?

    hey folks,
    i need to make a popup window or a dynpro with 2 input fields, where the user can write on multiple lines. why isnt there such an input field in the screen painter? how can i make this? if i can do this with a dynpro it would be nice but a popup with that feature would be better. didnt found any infos anywhere except for that thread, but its answer didnt work with my dynpro:
    How to make a input/output field with multiple lines
    thx for any helping answer

    i made it just like in that thread but there is an error message telling that gv_custom_container is not declared.
    *  MODULE status_0110 OUTPUT
    MODULE status_0110 OUTPUT.
      CREATE OBJECT custom_container
        EXPORTING
          container_name              = 'TEXT_CONTROL'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5.
      CREATE OBJECT text_editor
        EXPORTING
          parent                     = gv_custom_container
          wordwrap_mode              = cl_gui_textedit=>wordwrap_at_windowborder
          wordwrap_to_linebreak_mode = cl_gui_textedit=>false
        EXCEPTIONS
          error_cntl_create          = 1
          error_cntl_init            = 2
          error_cntl_link            = 3
          error_dp_create            = 4
          gui_type_not_supported     = 5.
      SET PF-STATUS 'STATUS_0110'.
      SET TITLEBAR 'TITLE'.
    ENDMODULE.                    "status_0110 OUTPUT
    Edited by: rafe b. on Oct 26, 2009 2:56 PM

  • How to make checkbox field inactive in the output of ALV report.

    Dear All,
    I am having one ALV report in whose output there are checkboxes against each record. Example: the output columns of my ALV report are:
    Checkbox, Sales Document No, Billing Document No.
    Now, my requirement is that if for the Sales Document No there exists any Billing Document No in the output then the Checkbox should be inactive but if the Billing document coloumn is empty for a particular Sales Document No then only the Checkbox field should become active.
    Kindly guide me on how to make this checkbox field inactive.
    Waiting for your reply.
    Warm Regards,
    N.Jain

    Hello,
    Follow the below steps:
    1.Define as--> GS_STATUS TYPE SLIS_STATUS,
    2.check layout check box fieldname is not initial.
          then set the status according to your logical conditions
          GS_STATUS-FLG_CHECKBOXES_ACTIVE = 'X'
    Hope this would help you.
    Let me know your feedback.
    Regards,
    Raju

  • How can i make the input/output field to a multiple lines in ModulePool...

    hi all...
    can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
    say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
    rather i can say my question like, how to increase the height of the input/output field.
    Desired Functionality:
    • The user wants to display a long text.
    • now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
    hope u got my question...
    please help me in this regards...

    hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
    If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
    Edited by: murashali on Mar 18, 2008 1:36 PM

  • How to make the print, email button work in PDF output

    Hello,
    I'm using LC  Designer ES2 to create a xdp form with print, email and httpSubmit  button. Then using LC server to generatePDF output, binding with xml  dynamically. But after that I got the static pdf file and none of the  button work,
    I really need help on how to make it work. Any configuration, plug-in....
    Thanks,

    Hi,
    This is solved by note 1281208.
    Thanks,
    Edited by: Zhijie Kong on May 24, 2011 6:06 PM

  • Hi there, can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac Mini? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? Thanks in advance, Grtz T.

    Hi there,
    Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? I'm also suffering massive audio lag issues with the Apogee jam after waking the mini from sleepmode, wich pretty much renders it useless.
    Thanks in advance,
    Grtz T.

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

  • How to make a row as selected in output internal table in oops ALV

    Hi All,
    I have ALV grid output using oops ALV concept, in my output i have a checkbox as first column when i select this checkbox and press a push button 'Print' which is there above ALV grid that particular line in output table should get selected and i need to code some logic for printing selected row.
    how to make the particluar row in the output internal table to be selected and where to write the logic for print once it is pressed?
    Thanks in advance
    Srilakshmi.

    but the checkbox is not getting set in internal table when i select some checkboxes.
    can anybody explain y the checkbox in internal table not set?
    Hi Srilakshmi,
    As explained by Uwe, when we change a field ( say check box ) in ALV grid, the view (frontend) changes (showing the tick mark) but the changed data ( normally ) is not transfered to the backend.
    We can initiate this data transfer by just registering the cl_gui_alv_grid=>mc_evt_modified  edit event
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
    Now as soon as we check a checkbox, the data_changed event is triggered.
    This initiates data transfer to the backend and the checkbox field in internal table is updated.
    check the below code for example.
    DATA: go_cont            TYPE REF TO cl_gui_custom_container,
          go_grid            TYPE REF TO cl_gui_alv_grid,
          gt_fieldcat        TYPE lvc_t_fcat,
          gv_language        TYPE spras VALUE 'E',
          gt_outtab          TYPE TABLE OF bus_loca_demo WITH HEADER LINE.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *       MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      SET PF-STATUS 'BASIC'.
      SET TITLEBAR  '001'.
      PERFORM create_and_init_alv CHANGING gt_outtab[]
                                           gt_fieldcat.
    ENDMODULE.                    "pbo OUTPUT
    *       MODULE PAI INPUT                                              *
    MODULE pai INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'PRINT'.
          BREAK-POINT.
      ENDCASE.
    ENDMODULE.                    "pai INPUT
    FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
                                      pt_fieldcat TYPE lvc_t_fcat.
      CHECK go_cont IS NOT BOUND.
      CREATE OBJECT go_cont
        EXPORTING
          container_name = 'CUSTOM'.
      CREATE OBJECT go_grid
        EXPORTING
          i_parent = go_cont.
      PERFORM build_display_table.
      PERFORM build_fieldcat CHANGING pt_fieldcat.
      go_grid->set_table_for_first_display( CHANGING  it_fieldcatalog      = pt_fieldcat
                                                      it_outtab            = pt_outtab ).
      go_grid->set_ready_for_input( 1 ).
      go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
    ENDFORM.                               "CREATE_AND_INIT_ALV
    FORM build_display_table.
      FREE gt_outtab.
      DO 10 TIMES.
        gt_outtab-creation_partner = sy-index.
        gt_outtab-date_field       = sy-datum.
        APPEND gt_outtab.
      ENDDO.
    ENDFORM.                               "build_display_table
    FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'BUS_LOCA_DEMO'
        CHANGING
          ct_fieldcat      = pt_fieldcat.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'CHECKBOX'.
            ls_fcat-checkbox = 'X'.
            ls_fcat-edit     = abap_true.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'ENTER_FIELD' OR 'DBLCLICK_FIELD'.
            ls_fcat-no_out  = abap_true.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                               "build_fieldcat
    Cheers,
    Jose.

  • How to make an checkbox editable and uneditable within a single alv output.

    Hi,
    How to make an checkbox editable and uneditable within a single alv output depending on condition.
    I have used Reuse_alv_grid_display.
    In my output every checkbox is editable. i have used edit = 'X'.
    I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv

    >
    Mukilansap wrote:
    > I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv
    Use alv styles to achieve this, set the style for each record before displaying the ALV. Structure LVC_S_STYL.
    Take a look at the example BCALV_EDIT_02, it is OOPS based, but check how the style table is filled.
    regards,
    Advait

  • How to make ALV output Colorless

    Hi All,
    How to make ALV output Colorless at all....
    I have Sum field which after all the rows it iwll do sum and it is showing in ALV .it is showing in Yellow color. Client dont want that.
    Currently I am using ALV_LIST_DISPLAY Fm to see this report output via Mss.
    So the client want a plane paper color which 2 things are strukcing me up.
    1) How to make Sum row(Final Sum up row) as colorless
    2) How to make header as colorless.(Header column like emp no , emp name ,e.t.c)
    Regards
    sas
    Can any body any Idea is this possible or not..
    Edited by: saslove sap on Apr 13, 2011 11:26 AM

    Hi sap.,
    I don't think decolor header is possible.,  but u can show totals color less by calculating manually.,
    as., in field catalog  donot use do_sum = 'X'.  so it will not calculate totals and yellow color will not appear., now u calculate total and append at last row., 
    ex: loop at itab into wa.
    wa_alv-f1  = wa-f1.
    wa_alv-f2 = wa-f2.
    temp_total = temp_total + wa-f2.
    append wa_alv to itab_alv.
    endloop.
    wa_alv-f1 = 'Total'.
    wa_alv-f2 = temp_total.
    append wa_alv to itab_alv.
    now itab_alv contains all records along with total..
    hope this helps u.,
    reply if u need some more clarifications.,
    Thanks & Regards
    Kiran

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • Captivate 7: How to make the output fit-to-screen

    Hi Everyone,
    For the long time, I was in search of making the published SWF be able to display the project as fitting to the screen. I was previously using Captivate 5.5. But now, I'm using Captivate 7. Does anyone know how to make the same thing happen to the SWF file? I previously had to make a change in the HTML script. But that same script line does not exist in the HTML file published from Captivate 7.
    Please be aware that I don't know much about HTML scripts. So please be explicit with your assistance.
    Thank you in advance for any assistance that you can provide.

    Hi there
    In Captivate 7, when you publish in SWF format, choose the option titled "Scalable HTML Content".
    Cheers... Rick

Maybe you are looking for

  • 503 Service not available

    Hi. Could you help me .... I modified a bsp to display a PDF file into a new popup window, and I tested into my quality server using SE80 transaction and with my portal application after and evething was OK but when a released the new BSP into produc

  • Multiple Copys Of The Same Movie.

    I have 2 copys of the same movie on my ipod touch, One working and one not. i can delete the working copy of the movie but not the broken one. does anyone know how to fix this?

  • Java API's supported in the Jdeveloper, IAS, and RDBMS product components

    If there are any technical errors or "mistatement of the facts" in this posting, please let me know about them .. This article is being delivered in Draft form and may contain errors. Please use the MetaLink "Feedback" button to advise Oracle of any

  • Remote App Opens for a second then crashes

    My remote app will briefly open then close on its own before I can hit any of the buttons. I have tried deleting the app entirely and reinstalling it and still get the same response. I am using the orig ios that came on the iPhone (5s). I am hoping I

  • Vendor Return of Imported goods

    Hi Sap Gurus, Can any body explain me the procedure to return the imported goods. is it necessary to generate ARE1/ARE3 reg. for return of imported goods? regards, abhay Edited by: Abhay Patil on Mar 26, 2008 11:04 AM