CSV template

I am using the CSV template to download the report generated by a query. Is there a way to set the default finlename of the download to an item's value on the page or to a quesry result?

Im running htmldb 1.5 and I cant see anything in the report attributes to set the name of the file to download.
It defaults to the name of the region... but when I try and use $P1_XXX. notation to substitute a variable, but that doesnt work either.
All I really want is to produce a txt file labelled anything. i.e. (test.txt) but is seems to always append a .csv
Asim

Similar Messages

  • Cut and Paste part of image from Photoshop to .csv template

    Hi all,
    I have my own javascript to determine which portion(coordinates) of an image i wish to cut.
    But what codes can i add to my javascript to paste the image into an excel(.csv) template that i've prepared on the desktop?
    And if the above is possible, how then to control which row/column in the excel(.csv) will the image be pasted in?
    This is because the excel(.csv) is a Template, thus i will need the image to be pasted only in certain row/column...
    Can someone help me?
    Thanks so much in advance.

    Very strange, I created the relevant folders and it all seems to work ok here, so don't know what's gone wrong?
    #target photoshop
    function main(){
    if(!documents.length) return;
    var paper_no=900;
    var Excel = File("~/desktop/myfolder/records/"+Number(paper_no)+".xls");
    var Cell ="C22";
    if(!Excel.exists){
        alert("SpreadSheet does not exist!");
        return;
    try{
    var SB = app.activeDocument.selection.bounds;
    }catch(e){return;}
    app.activeDocument.selection.copy();
    var Width = SB[2].as('px') - SB[0].as('px');
    var Height = SB[3].as('px') - SB[1].as('px');
    var doc = app.documents.add(UnitValue(Width,'px'),UnitValue(Height,'px'),72);
    app.activeDocument.paste();
    doc.flatten();
    var tmpFile = File(Folder.temp +"/deleteMe.jpg");
    if(tmpFile.exists) tmpFile.remove();
    SaveForWeb(tmpFile,60);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    var VBS = File(Folder.temp +"/VBS.vbs");
    VBS.open('w');
    VBS.writeln('Set objExcel = CreateObject("Excel.Application")');
    VBS.writeln('Set objWorkbook = objExcel.Workbooks.Open("'+decodeURI(Excel.fsName)+'")');
    VBS.writeln('objExcel.Visible = false');
    VBS.writeln('Set mypic = objWorkbook.ActiveSheet.Pictures.Insert("'+decodeURI(tmpFile.fsName)+'")');
    VBS.writeln('mypic.Top = objWorkbook.ActiveSheet.Range("'+Cell+'").Top');
    VBS.writeln('mypic.Left = objWorkbook.ActiveSheet.Range("'+Cell+'").Left');
    VBS.writeln('mypic.Width = objWorkbook.ActiveSheet.Range("'+Cell+'").Width');
    VBS.writeln('mypic.Height = objWorkbook.ActiveSheet.Range("'+Cell+'").Height');
    VBS.writeln('objExcel.ActiveWorkBook.Close True');
    VBS.close();
    VBS.execute();
    main();
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality;
    activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);

  • Add header text to CSV template in OBIEE 10g

    I have a .rtf template that i use to make a CSV file. Is it possible to append text to the beginning of it and produce a CSV repoprt?

    Any inputs .. plsss
    Regards,
    Pankaj

  • Address Book -  CSV Import Template?

    I want to create a CSV file to import a large number of contacts into Address Book. I do not know what order the fields are supposed to be in. Does anybody know where I can find a CSV template to use to import these contacts into Address Book?
    Thanks,
    Dan

    I can't tell you what order they go in, but generally speaking, you would use the typical First Name, Last Name, etc order of things. If you take the record with the most amount of data and put that in a text file named 'test.csv' and import it without any field names, Address Book will show you a screen where you can choose which field names you want those pieces of data assigned to, and from that you can create the field names in your actual CSV file and then import it.
    Keep in mind that CSV has a very specific syntax it's expecting, so if you don't conform you data to it, you won't get the results you want. You can read it here: CSV Syntax
    Mulder

  • WCS: AP / MSE Authorization Controller Template via CSV file???

    hello experts we are required to create a large number of "AP / MSE Authorization Controller Templates" on a WCS 7.0.172.0 system. ideally we would like to create these templates via CSV file to make the import as easy as possible. when the import is done via csv file the name of the template is automatically being set to the mac address of the access point. this because there is not way (at least not in the documented example) on how to specify the template name in the CSV file. so the question is, if anybody knows how we can specifiy the template name during the csv templated based creation in order to make sure we have the APs hostname set as the name of the template. further usage will be much more easy when the template has the AP hostname. any suggestion is highly welcome many thanks

    Stephen,
    debug mac add  00:19:55:5f:cc:fa is empty and
    (Cisco Controller) >show interface summary
    Interface Name                   Port Vlan Id  IP Address      Type    Ap Mgr Guest
    ap-manager                       1    2        10.148.0.4      Static  Yes    No
    management                       1    untagged 10.148.0.3      Static  No     No
    virtual                          N/A  N/A      1.1.1.1         Static  No     No
    (Cisco Controller) >
    (Cisco Controller) >
    (Cisco Controller) >
    (Cisco Controller) >show interface detailed management
    Interface Name................................... management
    MAC Address...................................... 64:00:f1:91:4f:80
    IP Address....................................... 10.148.0.3
    IP Netmask....................................... 255.255.255.192
    IP Gateway....................................... 10.148.0.1
    VLAN............................................. untagged
    Quarantine-vlan.................................. 0
    Physical Port.................................... 1
    Primary DHCP Server.............................. 10.16.16.225
    Secondary DHCP Server............................ Unconfigured
    DHCP Option 82................................... Disabled
    ACL.............................................. Unconfigured
    AP Manager....................................... No
    Guest Interface.................................. No
    (Cisco Controller) >

  • 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.

  • Error importing network device using CSV file

    While importing a CSV file of a single network device, I am getting this error:
    Value for attribute TrustSecDeviceID is Mandatory
    In the CSV template (downloaded from ISE web gui), I don't see a field TrustSecDeviceID. What is the error referring to?

    Kashish,
    This looks like a bug but I attached a template that you can use and i tested with my ise 1.1.1 patch 1 and it worked fine, just replace the fields that I entered and you should be good to go! Were you able to get the password reset successfully on the PSNs?
    Good luck!           
    Tarik Admani
    *Please rate helpful posts*

  • DTW BOM Template - price list missing

    Hi All,
    I am working on SAP 2005 B PL 44. the ProductTrees.csv template (master) that comes with DTW does not show 'PriceList' Column, I want to insert the price list (i.e -1 for last purhcase price) at the time  of BOM header creation. how can I add it? I tried adding a column called 'PriceList' at the end in this template but while mapping it does not show it in the column's drop down.
    Thanks ,
    Binita Joshi

    Binita,
    Since you mentioned last purchase price, I thought you were talking about child item prices. Here are a few points for you to consider:
    1. The Price List field in the header pertains to the parent item and not to child items. A parent item in BOM may not have a last "purchase" price in most cases. It is not that you change it once in the header and all child item prices will change - no.
    2. If you want to change the price list for child items in existing BOMs, use the "update" templates for productTree lines with comment field "Update". I tried it now for an existing BOM and it works even for price list '-1'.
    3. If you to (manually) update the price list in header of BOM it will only display the parent price in the field at bottom as defined in the selected price list. If you want to update the price in that price list with DTW, U can use PriceLists.csv.
    Thanks,
    Ajay

  • Sql query to downloaded csv file

    Hi.
    This is probably something really easy, but I cant find how to do it.
    I want to run a dynamic SQL query and have the output appear in csv format as a file the user can save to disk.
    Is this easy, if so how? Or is there a longer packaged based solution to this?
    Regards,
    Asim

    Asim,
    First you need to create a report, you can use a simple SQL query based report, or if your query is dynamic, use a region of type PL/SQL function returning SQL query. Then go to the reports attributes page and enable the CSV link for that report. When running your report page, you’ll notice a CSV export link that lets your download your report as a CSV file.
    Alternatively, If you don’t want to run the report as a regular HTML DB page at all, then you could just choose the CSV template as the report template on the reports attributes page. When running the page with that template, it opens a file download dialog for the CSV file right away. You could integrate this with your own application by placing a “download” button on some other page, that on clicking of this button branches to the CSV download page and by doing so, lets you download the file.
    Marc

  • Export to CSV: Enhancement requests

    Could I request the following enhancements in the Export to CSV feature?
    1. Allow only specific columns to be exported, not all the columns shown on the report
    2. Allow the column heading row to be optional
    3. Allow the option to create a formatted spreadsheet using the SYLK format (this will allow basic formatting like bold column headers, aligning data, etc)
    Thanks

    Vikas,
    Thank you for your suggestions. Conditionally including or excluding certain columns is a good idea. You can do that today if you setup a regular report and one used for the CSV export on another page. The second report would use the CSV template and you would branch there from the first page using a button or link. The queries could be the same, because you could just use column conditions to determine what columns to include. Of course this approach isn’t ideal because you would have to maintain two reports. So I’ll look into adding conditions just for CSV exports and into adding an option to exclude the column headings. We used to have SYLK exports in earlier versions of HTML DB but this didn’t seem to be a wildly used format anymore. We are however working on alternative and improved ways for formatting your report exports.
    Thanks,
    Marc

  • Changing Report Template Dinamicaly

    Hello everybody, I am starting in APEX and I need to change "Report Template" attribute in a classic report programmaticaly. I need to generate a classic report for screen and in CSV format, but obviously I dont want to make 2 reports.
    Thanks a lot
    Ander

    Of course.
    I make a primary form with two buttons ("Print Preview" and "Excel Output", for example). In this form I make every filter selection (ranges, orders, etc).
    My final report have a "CSV Template" assigned, I call it from "Print Preview" button using "Printer Friendly" parameter in YES, and without this parameter for the "Excel Output" button. You can improve this method creating another button (called"Direct Print" for example) for direct printing and using REQUEST parameter and a popup call for the report, you can include a javascript code in the report like this one:
    if (":REQUEST" == "VALUE SENT FOR YOU AS A REQUEST")
    window.print();
    window.close();
    I hope this will be useful.
    Ander

  • What is Attachment Order Number while importing contract csv file

    Hi Experts,
    We are trying to change the phase of one contract document through csv template import.
    For that we have given values to all mandatory fields in the csv template.
    But,  What is the Attachment Order Number field in the template and what do we need to provide here ?
    Please share your thoughts.
    Thanks
    Krish

    Hi Kushagra,
    The problem has been resolved.
    I have imported the csv in the following section.Setup--> Document Setup-->Agreement section --> contract document import.
    Earlier I tried to import in the following section, System administration -->import.
    Hence it gave me error.
    Thank you for your posts.
    Regards
    Krish

  • Change download columns from report

    Hi! I have a report, with some columns and I'd like to change the columns when downloading as csv file.
    Let's say that I have a report with col1,col2, col3,col4 and some hidden columns: col5, col6, col7. When I download the file I'd like to have only
    col2, col3, col6, col7.
    How can I do this?
    Thanks!

    Currently there is no way to do this. The CSV export function just re-runs the exact same report as you see it on the screen and transforms it to CSV format.
    Another option is to create a report with the columns you want in the CSV on another page, and use the export:CSV template as in
    http://tinypic.com/jzya2t.jpg
    and provide a link to that page. This will run that page and instead of showing the page it will popup the File download box.
    Hope this helps.

  • How to display data in interactive report column without colons (:)

    Dear Apex gurus,
    I'm a newbie and have just created an Apex application from a spreadsheet. I've created a named list of values and used it in a checkbox against a field in the default page 3 Create form.
    When I've selected multiple values in my check box in the form, the data in the interactive report appears as one line with colons separating the selected values like this: Dog:Cat:Bird
    What I would like is to have the data appear in the interactive report column as a multi-line list like this:
    Dog
    Cat
    Bird
    I can work around this by modifying the SQL code in the Region Source of the Region Definition of the report (Default Page 1 interactive report) to replace the colons with <br>
    SELECT replace("PETS_CHOSEN",':','<br>') "PETS_CHOSEN", FROM "MYAPP" Note: this doesn't format properly in the posting. I replace the colon with a html br
    This works, but seems to be a hack to me. I am guessing that I've missed a simple option setting somewhere, but I can't find it.
    The other problem with this solution is that when I export the report to Excel, what is exported is Dog<br>Cat<br>Bird, which is seems worse than colons.
    Thanks,
    - Morgan
    Edited by: mnrussel on 16-Feb-2009 04:13

    Hi Morgan,
    I think you have at least two choices:
    1 - Replace the colons with ', ' (comma and space) - sort of reasonable on screen and in an export
    2 - Create a second page that has the same report but uses the "export: csv" template. Create a manual link to this page to replace the standard Export link. When such report pages are requested, they download immediately instead of displaying. You can, therefore, use commas in this one and &lt;br&gt; tags in the on-screen report version
    Andy
    ps - To display tags in a post, use &amp;lt; for &lt; and &amp;gt; for &gt;

  • Help needed in Export to Excel

    Hi All,
    I needed some clarifications/suggestions on using the export to excel.
    1) When I click on export to excel, a <div> tag also gets exported. I came to know that this is becuse of selecting the "Enable Partail Page Refresh" to Yes. Now, I have pagination in my reports and I also need to export to CSV/Excel. Is there no way where in I can use PPR as well as export the report without the DIV tag?
    2) I have a number column to which I have given APEX inbuilt hyperlinks. When I do an export the columns where I have given these links do not get Exported. Any way to overcome this? I cant give links in SQL query as then all number formatting would be lost.
    3) In my report display I have colspan = "2" for some alternate rows. In my excel output I obtain these correctly but without colspan. Is it possible to merge the cells in excel output wherever there is colspan="2"? Or am I asking too much?
    Any suggestions would be welcome. Please let me know what can be done to solve this.

    Hi
    One solution which I've used before is to have a separate page for the export. Have a report on that page that uses the same query as the actual report (including any filters based on page items) and set the report to use the Export: CSV template. The Export link on the original page needs to be removed and replaced with a link to the new page. When you click the new link, the page opens as a download file automatically.
    This way, you don't need to worry about pagination and you can use different fields on your export.
    Andy

Maybe you are looking for

  • Does iCloud save my data more than once when i back it up?

    I only have about 75 contacts and 165 pictures, which is the only thing I have on iCloud and the only thing I want to have saved. My iCloud keeps telling me that my storage is full but theres barley anything in it? It's a 5GB but still it shouldn't b

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script. How can I do it? Thanks!

  • Ipad2 cannot connect to apple store in china

    ipad2 16g wifi strong signal i can only browse website can't use app with internet connection based, can't use map as well

  • Expressions and Defining High/Low Limits

    I have an accuracy requirement to assign a 1.5% and a 1% High/Low  from a previous test.  The previous test is a Numeric Array where the first 12 values have to be assigned a 1.5% limit and the remaining 4 have a 1% limit.   Is there a way to do two

  • Metadata not synched in LR and Bridge

    I am confused. Metadata that I apply to an already imported image in LR does not show up when the image is viewed in Bridge. Metadata that I apply in Bridge does not show up when the already imported image is then viewed in LR. Hmmm, is this supposed