PDF Printing, only returns first row/page

Hi
I can easy demonstrate my problem:
Let's say I make a report query called 'select ename from emp'
This returns something like:
<DOCUMENT>
<DATE>13-AUG-07</DATE>
<USER_NAME>VIDAR</USER_NAME>
<APP_ID>150</APP_ID>
<APP_NAME>APEX - Application Builder</APP_NAME>
<TITLE>emp</TITLE>
<REGION ID="0">
<ROWSET>
<ROW>
<ENAME>KING</ENAME>
</ROW>
<ROW>
<ENAME>BLAKE</ENAME>
</ROW>
<ROW>
<ENAME>CLARK</ENAME>
</ROW>
... and so on...
Then - I make an RTF document with a simple text saying "Hello World to you <ENAME>", and upload it to the application while creating the report query.
My problem is, when I now try to open the report through the link, it just gives me page 1 with: "Hello world to you King" - but not page 2 "hello ... blake" , page 3 "...clark" etc.. How can I make ApEx+BIP loop through the rest of the rows? Is it supposed to be like this?
What I want is ONE .pdf-file with several pages, not just the first result...
Regards,
Vidar

Hi Vidar,
Yes you can. Open up your RTF template, click View -> Toolbar -> Forms.
The first icon on the toolbar is a 'Text Form Field', click on that, then double click into the field that this creates. From there click 'Add Help Text' at the bottom and you can 'Type your own' from there.
Put a <?for-each:yourrowname?> at the start of your template
and
<?end-for-each?> at the end. The BI Publisher User Guide has a section on exactly this.
Cheers,
Mike

Similar Messages

  • 64-bit driver only returns first row of table

    I have a C++ application using ADO (the MSADO COM components) and the Oracle OLEDB provider for database access. The application works fine on a 32-bit computer using the 32-bit Oracle client and driver. However, when I run a 64-bit build of the application, running on a 64-bit computer (Windows Server 2008 x64), using the 64-bit Oracle client and driver, a SELECT operation returns only the first row of the table.
    Note that this is only happening with the ActiveX ADO components. ADO.NET is not having a problem.
    In both cases I am connecting to the same database, which is Oracle 10.2 (32-bit) running on a different server. I have tested with Oracle client 10.2.0.4 and 11.1.0.7 and got the same result in both cases.
    I have reproduced the issue with a simple table (one column, NVARCHAR2(255)) and simple code.
    In the code, I execute "select count(*) from tablename" and get the correct record count (more than one record). But when I then open the recordset ("select columnname from tablename"), ADO reports EndOfFile after I have read the first row and called MoveNext on the recordset.
    My Oracle knowledge is limited so I don't know if there are driver properties I should be checking.
    Anyone have ideas?
    Thanks in advance.

    For 10.2 it's fixed in 10204 Patch 21 and higher.
    For 11.1 it's fixed in 11107 Patch 12 and higher.
    Cheers,
    Greg

  • How do I print only the first page of multiple PDF documents?

    I have about 1,500 PDF files (scientific papers) that I need to print only the first page of... Any suggestions on how to do this as a single job or as a few jobs? The files are organized in a bunch of different folders, so if there was some way to do this folder by folder, that would be ok too. Thanks!

    Make sure that in System Preferences Printing & Fax pane you set the default printer to the one you want to use, then put all of these PDF files into their own folder, then open terminal and type the following (without hitting return afterward):
    lpr -o page-ranges="1-1"
    Then drag one of the PDF files into the terminal window (it will add it's path to the end of your command) and replace the file name with *.pdf, so it will look like this:
    lpr -o page-ranges="1-1" /Users/todd/Documents/My\ Folder/*.pdf
    Then hit return.

  • How do you print only the first ten rows in a table?

    Hi everyone:
    I am trying to print only the first ten records by using <?for-each: <group name>?> and <?end for-each?>. Is there any stop tag that I could use to stop printing after the printing the first ten records without modify the XML data file? I am using XMLP Desktop 5.6.2. Thanks for your help!

    You are right kkretser. However, if your report have 2 or more layouts pages. You may want to output the necessary records to each page like the first 10 records to the first page the next the to the second page. Like you said I figure out now that you can use <?if:position()<10?> print out the rows and then on the second page layout, you can do <?if:position()>=10?>. Thanks to all of your replys, guys!

  • TS3276 Hello. When trying to forward a multiple page PDF document, only the first page appears. Does anyone know how to fix this. TY

    Hello. When trying to forward a multiple page PDF document, only the first page appears. Does anyone know how to fix this. TY

    Are you sure?   I believe the mail program only previews the first page for you, but sends the whole attachment.  Try opening the attachment (e.g., select and hit spacebar for a preview of the whole thing, or by double-clicking it, or control-clicking then "Open...")  You should see the whole document.

  • Printing only odd/even numbered pages does not work

    I've got following problem: Printing only odd/even numbered pages does not work. Not in Preview, nor Adobe Reader. I Don't know why. i'm using a hp Color LaserJet 2550L. I just worked fine, but I cannot remember the time this failing first occured. I really hope the problem will be solved quick and easy.
    Thanks so far
    Bastian.

    Mine does not work either. I have trashed prefs, rewrote permissions, ran Disk Utility from a separate HD, etc. and I cannot get this feature to work.
    I got 45 odd pages to print last night and now it won't print odd or even pages. I am reduced to printing every backside page one at a time. If I would have known about this problem before I could have saved myself an hour and just printed them all on single sided sheets. I tried to save paper and now I'm screwed (timewise)......
    Any other suggestions would be greatly appreciated.
    Thank You,
    Dave Buckley

  • When I convert a document from wordperfect to PDF it only converts the 1st page and ignores the othe

    When I convert my wordperfect document to PDF it only converts the 1st page and does not even show the other pages.  This is a new development because in the past it has converted all pages. 

    Hi KP122,
    Is it document specific or occurs with all the documents.
    What is the extension of the word perfect documents?
    You can convert the following File types to PDF
    Microsoft Word (DOC, DOCX)
    Microsoft PowerPoint (PPT, PPTX)
    Microsoft Excel (XLS, XLSX)
    Microsoft Publisher (PUB)
    text (TXT)
    Rich Text Format (RTF)
    Adobe PostScript® (PS)
    Adobe InDesign (INDD)
    image (bitmap, JPEG, GIF, TIFF, PNG)
    OpenOffice and StarOffice presentation, spreadsheet, graphic, and document files (ODT, ODP, ODS, ODG, ODF, SXW, SXI, SXC, SXD, STW).
    To convert a file type not listed above, use Adobe CreatePDF Desktop Printer.

  • Installing the PDF Printer only ?

    Hello,
    We bought a bunch of Acrobat license for most of our users and we want to have some of the users using the Full product, while most of users should only have the right to print to PDF.
    I have been trying to install the PDF Printer only using the "Custom install" option from SETUP.EXE, but I can't install only the printer. Acrobat Standard will always get installed.
    Is there anyway I can install only the Printer and not the full Acrobat product?
    Thanks,
    Christophe

    Is installing a separate PDF software printer the only way?
    Depends on what application you want to do this for. For some applications there are third-party action downloads available that can allow you to, for example, export InDesign files to a specified folder in PDF.

  • How to setup a four page PDF in Adobe Acrobat 9 Pro to print only one of four pages?

    Hello,
    I have a request from a end-user to setup a four page PDF in Adobe Acroat 9 PDF to only allow printing of one specific page of the four page PDF.
    The end-user will abe able to view the four pages in the PDF - however - the PDF would only allow printing of one page.  The PDF would need to be pre-set for the end-user.  Is there a setting Adobe Acrobat 9 Pro to allow this type of specific pre-set printing.
    I appreciate your help.  I hope to hear from you soon.

    No, Acrobat can't do that.

  • Cheque printing only on first page

    Hi,
    Iam a newbie in XML/BI Publisher. I am doing a AP Cheque printing. In the report I have to print the invoice lines and at the bottom of first page I need to print the cheque. I did all necessary stuffs for this in the RTF template.
    But now the cheque is getting printed in the second page if the lines comes to the second page or after printing the lines if there is no space for the cheque then its getting printed in the next page.
    Can anyone guide me how to print the cheque only in the first page bottom alone.
    The sample output which I needs is like this,
    page 1-
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    |..............................|
    | cheque print...........|
    page 2
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    thanks a ton in advance.

    Hmm,
    There is no way you can say fix that and show this only in first page.
    but you can achieve it.
    1st method.
    give enough space for the check in the first page, by reducing the no of lines in the first page, so that you can accommodate the cheque .
    for this, you can do like,
    if the position is less than 9 and mod of postion is zero , that means you are in 9 line, then call a sub-template and after that you can put a page-break. this condition is for first page only.
    now put an another if condition here, if the position is > 9 and position mod X is zero, then put a page break. x is no of lines to be displayed in 2nd, 3rd, 4th pages.
    2nd method.
    put the differnet header and footer for first pge.
    and cal the sub-template in footer of first page.
    in tht sub-template you have the check.

  • af:table, only the first row of the table is effect

    Hi experts,
    I have an issue about using the <af:table, needs your help:
    1.The default selected line is the first line of the table(This should be ok).
    2.Only the first line can react to my manipulate, such as select one line and click delete button.
    3.While choosing the other line-->click the command button, the page will be refreshed and the selected one will turned to the first line. (Now the selected row, will be the first row). And will do nothing ,and has no action with the command button.
    I have an page OVS_Server.jspx, parts of it is :
    <af:table value="#{backVS.serverList}"
    var="row" rows="20"
    emptyText="#{globalRes['ovs.site.noRows']}"
    binding="#{backing_app_broker_OVS_Server.serverListTable}"
    id="serverListTable" width="100%"
    partialTriggers="poll1 commandButton_refresh commandButton_searchServer"
    selectionListener="#{backing_app_broker_OVS_Server.onSelect}">
    <f:facet name="selection">
    <af:tableSelectOne text="#{globalRes['ovs.site.selectAnd']}" autoSubmit="true"
    id="tableSelectOne" required="false">
    <af:commandButton text="#{globalRes['ovs.site.server.poweroff']}"
    id="commandButton_powerOff"
    action="#{backing_app_broker_OVS_Server.powerOffAction}"
    partialTriggers="tableSelectOne"
    disabled="#{backing_app_broker_OVS_Server.unreachableServer}"
    />
    <af:commandButton text="#{globalRes['ovs.site.edit']}"
    id="commandButton_edit"
    action="#{backing_app_broker_OVS_Server.editAction}"
    />
    <af:commandButton text="#{globalRes['ovs.site.delete']}"
    id="commandButton_delete"
    action="#{backing_app_broker_OVS_Server.deleteAction}"
    />
    </f:facet>
    <af:column sortProperty="ip" sortable="true"
    headerText="#{globalRes['ovs.site.serverHost2']}"
    id="column_ip">
    <af:commandLink text="#{row.ip}"
    id="commandLink_ip"
    shortDesc="#{globalRes['ovs.site.viewUpdateDetails']}"
    action="#{backing_app_broker_OVS_Server.viewAction}"
    immediate="true"/>
    </af:column>
    <af:column sortProperty="serverName" sortable="true"
    headerText="#{globalRes['ovs.site.serverName']}"
    id="column_serverName">
    <af:outputText value="#{row.serverName}"/>
    </af:column>
    </af:table>
    One JavaBean OVS_Server.java,and part of it is :
    public class OVS_Server {
    private CoreTable serverListTable;
    private VirtualServer selectedServer;
    public void onSelect(SelectionEvent selectionEvent) {
    selectedServer = (VirtualServer)serverListTable.getSelectedRowData();
    public String deleteAction(){
    if (selectedServer!=null) {
    deleteServerOper.execute();
    return "deleteServer";
    Would anyone show some lights on it?
    Thank you very much.

    Thank you for your reply!
    But the example you mentioned also has the issue like one of the comments :
    "Hi, on selecting the first row it displays the correct value, when navigating to another row still it displays the old value and not fetching the new selected row, actually I can see this on your sample screen shots... is there any way we can fix??"
    Is there any resolution?

  • Sapscript bottom text in Main, just for the last page, but printing only in the last page

    I need to print a text but only for the last page in the main window.
    I have tried with IF.
    IF &PAGE& = &SAPSCRIPT-FORMPAGES&
    BOTTOM
    ....TEXT
    ENDBOTTOM
    ENDIF
    But it prints in all pages in every main window.
    Can someone point me what I am doing wrong or how can I do this?
    Regards,
    Carlos

    Hello Carlos,
    the problem with this condition is the following.
    The Sapscript composer cannot know during the processing of e.g. the first page,
    how many pages will follow. So &SAPSCRIPT-FORMPAGES& still contains the same
    value like& PAGE& and is filled with the correct values only at the very end of the processing.
    (when the total number of pages is known).
    So I suggest you to use the BOTTOM command in the print program,
    when the processing of all item of the MAIN window is ended.
    There is an other variable &NEXTPAGE&.  &NEXTPAGE& will always be 0
    when it reaches to last page to print. The problem with this variable that
    it can not be used in a condition in MAIN window too, only in a separate page window.
    Regards,
    Hedvig

  • Return first row entered based on date column

    I'm trying to select the first entered row in a table, as judged by the datetime column. If more than one row has the same date and time, then only one row should be returned (any row having that datetime is fine). Some processing will occur on that row and then it will be deleted. The select statement is used thereafter to select the next (first) entered row in the table, etc. This way, the rows are processed first-in first-out (FIFO) style. Here's my example table:
    create table my_table
    datetime date,
    firstname varchar2(50)
    insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'ken');
    insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'john');
    insert into my_table(datetime, firstname) values(to_date('2012-04-02 11:00:00', 'YYYY-MM-DD HH24:MI:SS'),'sue');
    commit;
    Here's my example select statement, which returns simply one row of the above, since all are the same date and time:
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table )
    AND rownum = 1;
    My question is, if I use the following
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table );
    It returns all 3 rows:
    DATETIME FIRSTNAME
    02-APR-12 11:00:00 ken
    02-APR-12 11:00:00 john
    02-APR-12 11:00:00 sue
    So, wouldn't setting rownum = 2 return john, and rownum = 3 return sue? For example,
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table )
    AND rownum = 2;
    return no rows. I just want to make sure I'm understanding how the select statement above works. It seems to work fine for returning one row having the minimum date and time. If this is always the case, then everything is fine. But I wouldn't have expected it not to return one of the other rows when rownum is 2 or 3, which makes me question why? Maybe I can learn something here. Any comments much appreciated.
    Edited by: tem on Apr 2, 2012 2:06 PM

    Hi,
    tem wrote:
    ... So, wouldn't setting rownum = 2 return john, and rownum = 3 return sue? For example,, ROWNUM
    SELECT *
    FROM my_table
    WHERE datetime = ( select min(datetime) from my_table )
    AND rownum = 2;
    return no rows. I just want to make sure I'm understanding how the select statement above works. It seems to work fine for returning one row having the minimum date and time. If this is always the case, then everything is fine. But I wouldn't have expected it not to return one of the other rows when rownum is 2 or 3, which makes me question why? Maybe I can learn something here. Any comments much appreciated.ROWNUM is assigned as rows are fetched and considered for inclusion in the result set. If the row is not chosen for any reason, the same ROWNUM will be reused with the next row fetched. ROWNUM=2 will not be assigned until a row with ROWNUM=1 has been included in hte result set.
    So, in your example:
    SELECT  *
    FROM    my_table
    WHERE   datetime = ( select min(datetime) from my_table )
    AND     rownum = 2;Say the first row that happens to be fetched has firstname='ken'. It is assigned ROWNUM=1, and fails the WHERE clause condition "WHERE rownum = 2".
    Say the next row fetched has firstname='john'. ROWNUM=1 hasn't been used yet, so this row is also assigned ROWNUM=1, and it fails the WHERE clause for the same reason. Likewise with the next row; it also is assigned ROWNUM=1, and it also fails.
    When using ROWNUM in a WHERE clause, you almost always want to say "ROWNUM = 1" or "ROWNUM <= n".
    You could also use the analytic ROW_NUMBER function:
    WITH     got_r_num     AS
         SELECT     datetime, firstname
         ,     ROW_NUMBER () OVER (ORDER BY  datetime)     AS r_num
         FROM     my_table
    SELECT     datetime, firstname
    FROM     got_r_num
    WHERE     r_num     = 1
    ;Here, all values of r_num are available, so it would make sense to say things like "WHERE r_num = 2" or "WHERE r_num >= 2".
    Edited by: Frank Kulash on Apr 2, 2012 5:31 PM
    Added to explanation.

  • Bapi call returns first row?? Please help

    After an "execute()" call is made on the model , the return structure shows only first row.
    The context picks it up and shows the first row.
    Have you faced this issue before.
    Can you give some pointer(s)?
    Thanks a bunch.

    Hi,
    1. Try executing BAPI in R/3 with the same parameters that you provide from your web application and see how many rows it return. Also check the size of the output node in WD to confirm that it returns exactly the same number of rows for same parameters using wdContext.node<outputnode>().size();
    2. Also invalidate the node after executing the BAPI using wdContext.node<outputnode>().invalidate();
    Regards,
    Murtuza

  • How do I set only the first row of a DataGrid as the selected row?

    I have a "Go" button on a search form that fetches data into an already data bound grid.  After the data is fetched, I want to make the first row in the Datagrid the selected row, as if the user clicked on it.  If the result set is empty, I don't want the code to crash.  (I only want one row to be able to be selected at a time)
                protected function btnGo_clickHandler(event:MouseEvent):void
                    getSBJsResult.token = baa_data_svc.getSBJs(cmbSrch.text);
                    grdSBJs. //  ?????  What goes here to select the first row?

    This should do it.
    If this post answered your question or helped, please mark it as such.
    if(myDataGrid.dataProvider.length > 0){
      myDataGrid.selectedIndex = 0;

Maybe you are looking for