Csv output  filename &item.

hello,
i have a report and enabled csv output.the filename-help say:Specify a name for the export file. If no name is specified, the region name is used followed by the extension .csv.
ok,filename is not specified,and my region-name is
Kundenrechnung Nr. &P35_X_RECHNR.
P35_X_RECHNR is an hidden item and works fine in regionsname,as example regionsname looks like Kundenrechnung Nr. 719
but when i downlaod the file,the filename is Kundenrechnung Nr. &P35_X_RECHNR..CSV
how can i use my hidden item in csv filename ?
[email protected]

Hi Christian,
in your case there is a timing problem: The substitution for the region title is part of the region rendering process as is the filename. There is no double-substitution at that point. Imagine the current state to be filename:=NVL(substitute(filename), region_title) where region_title has the value that is handed to the rendering process.
We reference a hidden page item as filename directly, e.g. "&PX_FILENAME..csv"
The item value is calculated by a page process that is executed "On Submit - After Computations and Validations", and that works fine. You could try to set the filename to be "Kundenrechnung Nr. &P35_X_RECHNR..CSV" since P35_X_RECHNR should contain the appropriate value at that time.
-Udo

Similar Messages

  • BI Publisher Schedular:CSV output filename - attachment.out

    Hi
    is it possible to change the filename when bursting thru e-mail.
    the file always shows up as attachment.out.
    if it possible can you please tell me how it can be done.

    Hi,
    This is can be resolved by applying "patch-9026236"
    Thank you.

  • Use a flexible Filename in REPORT CSV OUTPUT

    -> ReportAttributes -> csv-output -> filename
    I tried to use &item. and :Item but it seems the FILENAME of the csv-output is fixed. But I would like to give a name depending from context. Any ideas ?

    Marc,
    Sure. The region is a PL/SQL function body returning a SQL query :
    declare q varchar2(256);
    begin
    q := 'select * from ' || v('CURRASSVIEW');
    if v('CURRASSSLXID') IS NOT NULL THEN
    q := q || ' WHERE INSTR(' || '''' || v('CURRASSSLXID') || '''' || ', SLXID ) > 0';
    end if;
    return q;
    end;
    Where CURRASSVIEW is an app item that is the name of a VIEW object behind the scenes. Various view objects have been created to peek into a data wharehousing scheme. Unfortunately, I can't go into great detail....my company would freak if I posted actual data (pharmaceutical). However, I have tracked it down to the following scenario :
    One of the columns that comes through is a VARCHAR2(2). The excel-spoolling is fine while this column is empty, and when the report in Excel reaches a row with a value in this column, it dies. The values are all of length 1, so I'm not sure where else to look.
    Sorry for lack of details...any hints you could give as to where to continue research would be appreciated.
    Matt

  • Values for htmldb_item.text  field do not display in CSV output

    HTML DB experts,
    I have a report query with the following 2 items in the SELECT statement:
    wwv_flow_item.display_and_save(2, DOC_CD, 10) DOC_CD,
    htmldb_item.text(3, DOC_DESC, 50, 255) DOC_DESC
    I have enabled the CSV output for this report. The problem is, when I generate a csv file, only the DOC_CD (wwv_flow_item.display_and_save) displays. The values for the DOC_DESC (htmldb_item.text) do not display. What do I need to do to get the DOC_DESC to display?
    Thanks for your help.
    Message was edited by:
    [email protected]

    Items rendered using htmldb_item generate HTML tags on the form, not plain text. You are right, the CSV export excludes them.
    Your best best is to create another report region on some other page with the same query except replace all the htmldb_item() calls with regular columns i.e. make it a read-only report and use the "export: CSV" template and put up a link to this page at the bottom of your editable report (instead of the builtin CSV link). This way when you click on this link, it will generate your report and immediately offer to export it to CSV
    Hope this helps.

  • Classic Report CSV output failed to parse SQL query

    Hi,
    I'm trying to get a CSV output from a classic report. I'm generating the report based on a PL/SQL block that will return an SQL query. But when i download the CSV excel just gives me a:
    failed to parse SQL query:
    ORA-00936: Missing expression
    and shows me the query that the application is trying to parse. I'm also using bind variables (page items) in the PL/SQL block that is returning me the SQL query. I think that the reason that it fails to parse the query is that the query that is shown in excel has no bind variable values.
    Anyone got any ideas?

    Hi Arif,
    run your page in debug mode and check out the SQL statement which is actually executed for the report. That might help to diagnose what is going wrong.
    If you wish you can also post the report SQL statement which is getting executed.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Creating a CSV output of just the rows of data.

    Dear All,
    I am trying to create a CSV output from SQL*Plus using the following method... All I need is the pure data, and nothing else.
    set verify off
    set feedback off
    set termout off
    set heading off
    set echo off
    spool <filename>
    <my sql statement>
    spool <off>
    The problem is that the SQL statement is displayed in the output file.
    Does anyone know how to switch this off, before I spool the file, or can I spool the file immediately after execution. I.e. Build this into the SQL statement (somehow)???
    Thanks
    David.

    If you want to handle 100% the output file you can use the package UTL_FILE but the file is going to be store in the server.
    UTL_FILE
    With the UTL_FILE package, your PL/SQL programs can read and write operating system text files. UTL_FILE provides a restricted version of operating system stream file I/O.
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_file.htm#ARPLS069
    Joel Pérez
    http://otn.oracle.com/experts

  • How to Generate CSV Output from JD Edwards BI Publisher

    Hi All,
    I have a report "Critical Date Report" - R15611 in JD Edwards 8.11. This report has to be generated as CSV output from BI Publisher which is embedded to JDE.
    The purpose we want use BI Publisher is to move some of the data displaying to different place in the page(ex: Move the company address from top left corner to Bottom right corner).
    In order to achieve this
    1.We created blank rtf template and upload to XML repository using P95600 application
    2.Create report definition using P95620 application
    3.Here I see the available output types as PDF,RTF,HTML,EXCEL,POWERPOINT and XML,ETEXT(GRAYED OUT)
    Which output type we can use for CSV ?
    4.Execute the report definition of the critical date report from P95620 to get the XML source
    5.This XML source will be loaded into the blank rtf template
    6.From this point no idea how to design the rtf template in order to get the CSV output.
    7.We did design and output type as excel - but the result data is not in good formatting and alignment*(Headers and footers are repeating).*
    If any one has worked on similar type of requirement,let us know how to do or send a sample XML source,rtf template and how the CSV output will be. Or any document link present in Oracle site will be helpful. Please let me know if you need more details.
    Thanks in Advance.
    Vijay

    Hi Vijay,
    For CSV output, you need an E-text template (not RTF) that's why its grayed out! You can use Excel as output type and have (No headers and footers) , then you can open the file in Excel and store it as CSV. Does not always display correctly though.
    Why are you compelled to use BI publisher? you can use the JDE standard csv output report, (as is used by most EDI systems) of course this may involve a bit of customization if you wants the fields arranged differently.
    -Domnic

  • No data found in csv output

    I have a classic (non-interactive) report that shows some strange behaviour.
    It's a simple page with a report region.
    On the report attributes page under 'report export' the value for 'Enable CSV output' is set to 'Yes' and 'Link label' has a meaningful discription.
    In the development database it works as expected:
    When I run the page the data is displayed and when I click the link for csv output I can either save or open the file. In both cases I find the data I expect in the csv file.
    In production, however, when I run the page the data is displayed, but when I click the link for csv output the resulting csv file just shows "No Data Found"
    I can imagine the report not returning any data, but in that case I shouldn't see any data on screen either.
    And it's extra weird that in development it all works fine.
    Anybody that can offer any help?
    Thanks in advance.

    Hi Eric
    I would never dream of telling anyone not to argue with me :D I've been wrong before and will be again, no doubt!
    For the DIV problem, I was more concerned with &lt; appearing in the output rather than the SQL statement itself - generally problems such as this happen when something on the page is incorrectly formed. When you get a chance, in FireFox, install the Web Developer add-on. When this is installed, on the right-hand end of its toolbar, you will see three buttons - the last two tell you about css and javascript errors. For HTML errors, if you have a text editor that has syntax highlighting, do a View Source on the loaded page, take a copy of the source and paste it in to a new document in the text editor. Save this with an HTML file extension. This should colour-highlight everything. It should become obvious what is wrong as you tend to end up with way too much in the same colour. Finally, on the loaded page, right-click on the DIV text and select Inspect Element - this switches you to a heirarchical view of the HTML on the page in the FireBug pane. Follow the tree up from the DIV and have a look at the structue - at some point, something will look wrong.
    Andy

  • Apex 3.1.2 - missing column in CSV output

    Hi,
    We recently moved our application to apex 3.1.2. There is a report with a CSV output that worked fine in apex 3.0.
    With the same report in apex 3.1.2, one column is missing in the CSV file but is showing on the report. Show column is set to YES, include in export is set to YES and there is no condition in the column attributes.
    Any idea what my cause this problem ?
    Patrick

    I've found the problem. In the print attributes of the report, the column that was missing in the csv file had a column width set to null. When I put 10 in that field (same as the other columns), it suddenly appears in the csv file.
    If I set the column width back to null, the column dissapears again. This must come from the upgrade to apex 3.1.2.
    To find columns that could have this problem, I suggest you take a look at APEX_APPLICATION_PAGE_RPT_COLS.
    +select *+
    from apex_application_page_rpt_cols
    where include_in_export = 'Yes'
    and nvl(print_column_width,0) = 0

  • ADF - Component File Download Listener - Setting the output filename

    Studio Edition Version 11.1.1.2.0
    Hi, I would like to learn how to set the output filename as current data + filename. I have a button with the component File Download Listener that has theses parameters
    Content/Type: application/pdf
    Filename: test.pdf
    Method: fullReportPDF()
    I needed that when the user clicks the button, that he return the current date + filename statically defined.
    How i may to make this?

    In a bean you implement a method which return the filen ame date and static part concatenated and set it as EL into the af:fileDownloadActionListener
    // on the page
    <af:fileDownloadActionListener contentType="application/pdf"
                                             filename="#{XYZBean.filename}"
                                             method="#{XYZBean.fullReportPDF}"/>
    // in the bean
        public String getFilename()
            String fn = (new Date()).toString() + "static_part.xyz";
            return fn;
        public void fullReportPDF(FacesContext facesContext, OutputStream outputStream) { ... }where XYZBean is the bean where you have implmented the method fullReportPDF.
    Timo

  • PDF Printer stopped prompting for output filename

    I use the Adobe Acrobat PDF Printer to create PDFs from a variety of applications. My version of Acrobat Pro is 10.1.6. The printer is configured to prompt me for the output filename, but never does. It used to work, but I can't figure out what has changed. I have done a repair of Acrobat, and even went so far to uninstall and reinstall.

    Turns out to be an OS problem. I cannot print to my HP printer either! (And this is after rebooting.) Oh well. Off to the Mac forums for assistance. Thanks anyway for those of you who looked at this.

  • Date Extension on Crystal Output Filename in Scheduler

    Post Author: mek
    CA Forum: General
    We use Crystal Reports 10. When we schedule reports through the CMC scheduler we add the date to the output filename by selecting the DateTime option from the variable properties list ( ex. ExpoSalesSummaryReport_%DateTime%.xls generates a file named ExpoSalesSummaryReport_2007-04-25-10-46-33.xls).  The date format that is automatically concatenated onto the filename by Crystal is not what we need. We do not want the time in the date extension and we want the date format simplified, without dashes.
    Our team needs to have additional values available in the variable properties list of the report scheduler that would allow us to select a specific date format to be concatenated to the filename when we schedule reports. For example, we would like to have the following selections in the picklist (new options that we want to add and use are bolded), ex:
    Title
    ID
    Owner
    DateTime
    FileExtension
    DateMMDDYY
    DateMMDDYYYY
    DateMONDDYY
    DateMONDDYYYY
    Is it possible to create new parameters for the scheduler picklist that can add a date extension to the filename in the format we want? I would think that there must be some way to customize the file extension mask behind the scenes in Crystal 10.
    Thanks in advance for your help.

    Hi Raafje,
    Like I've already discussed in my Blog ,Using Date Expressions on Filenames of Burst Query has its own limitations. This date expression that you have tried for sysdate-1 (%d-1%m%y) will not hold good to the requirement. Anyways you can resolve the issue using other work arounds.
    Method I (Using CAST and DATE Functions)
    1.Previous Day -> CAST(DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)
    2.Month of Previous Day -> CAST(MONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE ) ) AS CHAR)
    3.Year of Previous Day -> CAST(YEAR(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)
    Sample Code
    +'ReportName'||'-'||CAST( DAYOFMONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)||'-'||CAST(MONTH(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE ) ) AS CHAR)||'-'||CAST( YEAR(TIMESTAMPADD(SQL_TSI_DAY, -1, CURRENT_DATE)) AS CHAR)||'.pdf'+
    Method II (Using Server Variables)
    1. Create a Dynamic Repository Variable like Previous_Date(Non-System Session variables can also be used)
    2. Create a Initialization blocks
    In Data Source Section - Edit Data Source and place the below query
    Select TO_CHAR(SYSDATE-1,'MM/DD/YYYY')
    FROM Dual (you can use any date format as required)
    3. In Variable Target Section
    Edit Target -
    Give the Name as Previous_Date (as you created in Step1) and Enable the Radio Button as Dynamic
    Place date in Default Value like '9/22/2010'
    4. Now use this Repository Variable in the filename parameter of the burst query as VALUEOF("Previous_Date") for Repository Variable
    and VALUEOF(NQ_SESSION.Previous_Date) in case you have created a session variable for the query
    Thanks & Regards,
    Goushalya
    http://obiee-bip.blogspot.com/2010/05/dynamic-delivery-file-naming-in-bi.html
    Edited by: Goushalya on Sep 29, 2011 7:09 AM

  • Change Build Output Filename for SSIS Project

    I have a Visual Studio 2010 solution (TxMExtractLoad) with two SSIS projects: TxMExtractLoad.Discovery and TxMExtractLoad.Contract1.  The project name (in project properties) is set to the proper two-part name in each project.  However, when I
    do a "Build", the generated .ispac file loses the second part of the project name: both projects build to "TxMExtractLoad.ispac" (in different directories, fortunately).
    I can see where I can change the output *path* for the build, but not the output *filename*.
    Any help, anyone?
    Thanks in advance...

    Came across this post whilst encountering the same issue and thought i would post the solution i discovered
    The ispac will get its name from the Name defined in the project properties minus whatever is following the final name part
    Therefore, your SSIS package of TxMExtractLoad.Discovery will become TxMExtractLoad.ispac 
    If you change the name in project properties to something like TxMExtractLoad.Discovery.myProject
    or TxMExtractLoad.Discovery..ispac then when you build it it will build as TxMExtractLoad.Discovery.ispac 
    Hope this helps

  • Problem in CSV Output

    when i am trying look at the csv outpt even if i am not giving the table header row in the template design it is taking some other header rows and displaying it in the output i need just the data in the csv output
    how to solve this issue
    Can you give me any idea how to proceed on this issue.
    Thank you
    Have a Nice Day.

    If some could specify solution for this, it will be great help for me.
    I ll give an example:
    if the data model contains 5 columns and if I design template with 2 columns with some aggregation function included .Then if I try to view the same report in csv format, it displays all the 5 columns from the data model without considering the template. But when I try to view the same report in different format (excel, html, pdf, etc) it is displaying as it is uploaded in the bi publisher. So I request someone to give solution for the same
    And i want add one more question to this post
    when the bi publisher report viewed in a csv format, it includes the column header as well. I want to remove these header from the csv output.
    Edited by: user12511280 on Sep 12, 2011 10:08 PM

  • Scheduled Excel/CSV output with 65k rows

    Hi Experts,
    I just wanted to confirm if in 3.1, can the scheduled excel/csv output handle >65 rows.  From what we've read, it is possible and we assumed that's thru manual run.  However, we aren't too sure if it is the same when scheduled.
    Kind Regards,
    Mark

    Hi,
    When the Webi excel output is > 65K rows, the 1st tab contains the 1st 65K rows and the rest goes to 2nd tab and forth and each tab has maximum 65K rows.
    However, there is a limitation on the total number of tabs can be created in a excel file during this conversion.  You will find out when you get there.
    Hope this helps,
    Jin-Chong

Maybe you are looking for