How to create a text file of apex

Hello.

I have apex 5 user and I need to create a txt file to format a report ANSI classic interactive report or query.

I need a TXT, CSV file because this file allows it to import into another application.

Is it Possible? How?

Thank you!!

Hmm, could be done in a select statement in a variable:

DECLARE l_Clob_Item CLOB;

l_Length NUMBER;

SELECT Col1 | Col2. COL4 IN l_Clob;

l_Length: =.DBMS_LOB.GETLENGTH( l_Clob);

Next, you need to write code to allow download of the clob machine local users

owa_util.mime_header('application/octet', FALSE );
  htp.p('Content-length: ' || l_length);
  htp.p('Content-Disposition: attachment; filename="My_text_File"');
  owa_util.http_header_close;
  wpg_docload.download_file( l_Clob );
  apex_application.stop_apex_engine;

Something like this should work...

Thank you

Tony Miller
Software LuvMuffin
Ruckersville, WILL

Tags: Database

Similar Questions

  • AppleScript - extraire extract values from a table, create a text file with these values

    Hello world

    Lets say I have a table that looks a bit like this

    And this table I would create 2 text files (or even more, depending on how many switchnames are there) who look a bit like these

    Is it still possible?

    I suppose to create a Service (which can be called in numbers) with Automator which includes an Applescript script - but - no idea since the script is not one of my strong suits.

    There is not need to be perfect, because tables are not necessarily the model presented above - so to tweek the script to the application will be necessary. The text files can be created/saved in the same folder as the file numbers is in.

    Y at - it script-genius out there?

    See you soon

    Florian

    Select the column of fist of the data, and then run this script by copying the Forum and paste it into the script editor.  The files will appear on the desktop

    say application "Numbers".

    say front document to tell the worksheet active

    say ( class is worn) fromfirst table whose selection range

    selectionRange defined in column 1 of the selection

    set cnt to 0

    the value destRange for range

    the value currentList to {}

    -the list of switches

    Repeat with acellule in selectionRange cells

    -say acellule to set the value on the NTC

    pass the value to the value of cell

    if and ((cnt > 0) (switch is not missing value) and (currentList is not contain switch)) then

    switch and the value in the currentList currentList

    end if

    NTC put to the cnt + 1

    end Repeat

    -Display dialog box "to the list of items is:" & currentList & "a list" & (currentList County) ".

    Repeat with aswitch in currentList

    " game textOut to '# Script generated with Applescript for switch' & aswitch &"

    # on "& (today's date) &"

    !

    conf t

    "

    set cnt to 0

    Repeat with acellule in selectionRange cells

    -say acellule to set the value on the NTC

    pass the value to the value of cell

    -Display dialog "aswitch is []" & aswitch & "] and switch is []" & switch & "]".

    if (aswitch contains the switch) then

    the value cellCol to address a column of first cell of acellule

    address of line of first cell value cellRow in of acellule

    value to the aport (value of the cell of the column (cellCol + 1) cellRow) integer

    the value vlan for the (value of the cell cellRow of column (cellCol + 2)) integer

    the value desc to the (value of the cell cellRow of column (cellCol + 3))

    " put to textOut textOut &.

    !

    "" IG 1/0 interface / "& aport &.

    switchport mode access

    switchport access vlan "" & vlan & ""

    Description LINK TO "" & desc & ""

    "

    on the other

    -Display dialog box "did not: []" & aswitch & "] and []" & switch & "]".

    end if

    NTC put to the cnt + 1

    end Repeat

    Set myFile to open for access (path to the Office as text) & aswitch & '_output.txt' the with write permission

    textOut write to myFile

    MyFile close access

    end Repeat

    end say

    end say

    end say

  • How to create a .bat file that references another hard drive?

    I am trying to create a simple .bat file that creates a text file listing all the files in the folder designated on the top line. However when I tried the version below, he created a list of the files on my desktop instead. How can I make 'look' the path on my internal D drive?

    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt
    Start C:\tftDocuments.txt

    Hello

    Information about batch files
    http://www.computerhope.com/batch.htm

    First, you need to access the real player if you're not already on it.

    D:
    CD D:\inetpub\kthings
    dir > C:\tftDocuments.txt

    You can display on the screen or have an application to display.

    TYPE tftDocuments.txt

    Or

    Notepad tytDocuments.txt

    -------------------------------------

    Maybe an application such as this one would be useful.

    KarenWare - printer - free directory
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    I hope this helps.

  • How to write the text file in Shockwave?

    Someone knows how to write the text file in Shockwave on the disc of the user?

    Thanks in advance.

    These Xtras can cause a lot of havoc when used with the intent to hurt.
    What you can do is to write with setpref and store a list of backups and the
    registers itself separately. Next, you need to build your own save/open
    dialog box for the user:
    * Choose a previously saved file to load or replace
    to create a user type the name of a new file to be saved.

    The only thing that remains is that the user can't decide where files
    are saved.

    Manno

    SiuLinda wrote:
    > Thanks a lot for your answer.
    > Yes, cookies is good, but I have to write a program to save the text file in
    > When the user wants, the user can open these files later if they like as, using
    > Filextra and Fileio, but I found that all these Xtra extensions seem to be not supported by
    > shockwave.
    >

    --
    ----------
    Manno Bult
    [email protected]

  • How to create a playlist file

    How to create a playlist file

    Hello

    Double post. Please use:

    http://h30434.www3.HP.com/T5/notebook-PC-sound-and-audio/playlist-file/m-p/5101752

    Thank you.

  • How to erase a text file...

    Hi all...

    I wud would like to know how to delete a text file...

    Am currently replacing the text file and writing... In fact, I need to open the file (after erasing the content) and write.

    I think that replace the file every time is not a good idea...

    So please let me know how to delete the text file.

    Thanks in advance.

    You can set the file size to zero using "Set File Size" in the palette of advanced file i/o.

  • How to create the .cod file to run on the Simulator BB9900

    Hi, I already from the zip package in order to use the bbwp command to create the .cod file and be able to run on the simulator of BB9900, but when I run this command as described in: https://developer.blackberry.com/html5/documentation/compile_ww_app_for_smartphones_1873321_11.html

    It creates two files, each with a .bar file, this type of file, I can't run it on the 9900 Simulator but a .cod file is required to run applications on the sim card.

    I don't know how to create the .cod file.

    Thank you

    Have you used Blackberry Webworks SDK for smartphone or Tablet SDK? The .cod files should be located in the subfolder OTAInstall of your output folder if you are using the Webworks SDK for Smartphone

  • How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Dear all

    How to create a VPN file .pcf for the CISCO VPN CLIENT software profile

    Concerning

    Hi Imran,

    Can't do much about that because it depends on what authenticate you the VPN server and how the settings. But let me introduce you to the memory layout. Once you install and open a VPN client. Press it again and it opens up a new page for the VPN config.

    Example of configuration as it is attached. But it differs depending on the configuration of your vpn server.

    Once you create and save this profile. Your FCP file is stored.

    Please assess whether the information provided is useful.

    By

    Knockaert

  • How to create a video file name?

    Goal: Create a video file in the SDK of the waterfall.

    Error: When the file name is created, the real file name still be 'VID_00000142.mp4 '.

    mfilenameLabel-> setText also shows the "VID_00000142.mp4".

    Question: How to create a video file name?

    Mini code:

    char * videofilename = "." "/ shared/camera/test.mp4";

    If (camera_roll_open_video (mCameraHandle & mVideoFileDescriptor,
    videoFilename, sizeof (videofilename), CAMERA_ROLL_VIDEO_FMT_MP4)
    == CAMERA_EOK) {}

    mfilenameLabel-> setText (basename (videofilename));

    Thank you for your attention,

    Finally, we use the rename (filename, videofilename) to solve our problem.

  • How to load the text file into a table and retrieve data line by line?

    I'm looking to help understand how to open a text file, each line in a table of load.  The data will be called to change the content of the text layer.  Thanks for any help.

    I did not test this code, but something like

    var a = [];

    var f = new File (Folder.desktop + "/ TestFile.txt");

    If (f.open ('r')) {}

    While (! f.eof) {}

    a.push (f.Readln ());

    }

    f.Close ();

    }

    Alert ("I read" + a.length + "lines in the file.");

    for (var i = 0; i)< a.length;="" i++)="">

    DoSomethingWithThisLine (a [i]); //<-- you="" need="" to="" write="">

    }

  • How to create a PDF file in Bridge?  I can find no longer output

    How to create a PDF file in Bridge?  I can find no longer output

    Hi kanderson

    What version of the bridge are you using?

    Please consult Bridge help | Create PDF and web galleries

    Similar thread:-blank output (bridge CC) Module

    Concerning

    Assani

  • How to create a text field containing text/label which can be modified by the end user?

    Hello

    I'm trying to figure out how to create a text field containing text or a label that can be changed by the end user. Can do something like this in LiveCycle?

    Below, I have a text field that contains a question and another text field where the user will enter their answer. Is there a way to allow the end user to change the text of the question, as shown in the example?

    Capture.PNG

    Hello

    If you used a standard text for the 'legend' field you could set the value by default (in the value of the object palette tab) in the legend and the legend of the value None (in the page layout palette).

    Concerning

    Bruce

  • How to create a zip file of AcrobatXI in windows 8.1?

    How to create a zip file of AcrobatXI in windows 8.1? acrobat.com documents?  Sorry do not know what the community to ask this in this community?  The email provider I used didn't seem to want to accept thanks Adobe send first and since Adobe send ends January 6, I'm assuming a zip file is best...  I thought I had seen an Adobe Zip file somewhere, but have not been able to locate him. Any help appreciated.

    Thank you.

    Sherrie

    Hi Sherrie l.,

    Send Adobe is the current solution to Adobe for sending large files. (This is Adobe SendNow who retires soon.) Can you tell us what you were running by using Adobe send?

    It is not a special version of Zip for Acrobat files, but you could reduce the size of the PDF file if you have Acrobat. Or, in Windows, you can create a Zip file by choosing File > Send to > compressed (zipped) folder.

    Best,

    Sara

  • How to create the new file alertlog.

    How to create the new file alertlog. Need the DB bounce?

    -Chandra

    H wrote:
    How to create the new file alertlog. Need the DB bounce?

    -Chandra

    Is that your alert log file size seems huge? Rename it with another name, Oracle will automatically creates a new name that alert_.ora

  • How to create the .isf file?

    I've seen a lot of information regarding the use of the .isf files, but it has everything to do with the importation of this configuration file. Some people refer to exporting from a project with the mappings that you want to reuse, but nowhere can I find instructions on how to create this file.

    Can someone please explain how to create a .isf file in RH9?

    He hides in file > project settings

Maybe you are looking for

  • Siri are not sent by SMS in iMessage (OS Sierra)

    This seems to be a strange problem that I can not find a solution. My Macbook is connected to my iPhone SE. They all run the two most recent software updates. When I manually type my messages (in iMessage) on my Macbook to a non - iOS user, everythin

  • Purchase of 3rd Apple Airport Extreme Base Station

    My current 2 Apple Airport Extreme Base Stations (the two 5th generation) are implemented as shown in the screenshot below. My fiber service (80 MB/s) is hard directly on an Apple Airport Extreme Base Station plugged into my home office (via an Ether

  • restore from Time Machine

    I have time Machine active on my iMac. How can I restore notes from 20:00 last night? TIA

  • Reduction of the data on the iPhone

    How can I take the photos on the iPhone. They are saved so I would go down and they take no space.

  • Tecra M5: Wireless connection is no longer working

    I have a new Toshiba Tecra M5. I originally put in place to connect to my WAP Home/office with no problems. After using it in a place where no WAP was available and making the home, wireless connection"is not available" and I can't do so. Additional