Function in the Apex that returns the path of a file?

Hello

I have a lot of files distributed across multiple servers.
For the moment we handle them with an excel sheet. All links to these files are there.

To improve the treatment, I would like to use my APEX Application instead of Excel.

-> Files must remain on the servers-> no BLOB-download
-> We need a collection of links to files
-> The Oracle database A No. rights to access drives. HAS local access drives user rights.


My goal: a button that makes:

-When you press: open 'Open file' - window
((The user navigates and selects a file))
-Display the link/path to the file in the P41_LINK_TO_FILE textfield
-Save this link/path as new entry in my link (Finally, that I won't need help with this step ^^)


If this button worked I can display these links in an interactive report and use the ' right click '->' save target as ' etc.


Question:

Is is possible to get this working "magic button"?
I feel a little lost. Someone at - he words I could google?


Thank you very much for reading!

pAT

Published by: pAT on December 1st, 2011 05:00

I have two news for you, a good and a bad...

I managed to create a test page to simulate what I explained, but it turns out that, probably because of the usual 'security concerns', browsers are hiding the path of the actual file.
If I use Firefox it will return only the name of the file, if I use Chrome, it returns something like C:\fakepath\filename (even though my browser runs on Mac...).
After a search on the web for similar information, I understand that there is no solution due to javascript security restrictions.

Flavio

----
http://oraclequirks.blogspot.com
http://www.yocoya.com

Tags: Database

Similar Questions

  • How to find the path of a file

    Hello

    I have Windows 7 Starter.

    The search utility can be used to search for files by using the ' * ' wildcard, but unfortunately it does not show the path for no results.

    I would like to know how to find the path of a file of my choice.

    For example, I record a radio on the internet, which is then saved as "MP3". Now, I want to edit such a file, but I need to know where the file is actually stored. Simply access within a 'library' does not show me where the file is actually located.

    How to discover all paths where a particular file format?

    I hope to receive a response to this request.

    Kind regards

    Rayt333

    An option for the search utility see the paths for all of its results, would be useful.

    Hi Ray

    Overall view for the search folder for Detailsof Windows Explorer , by using the View Menu on the right side of the toolbar.

    Click on the last name column heading and select the folder item.

    If you do not see the folder item, click other, scroll and select the folder item. This will add the folder column.

    Use the left mouse button to drag the folder column to the left, next to the column name .

    Now, when you perform a search, the folder column will show the path of each file found.

    Concerning

  • SQLdeveloper said when at the beginning of navigation in C:\Program Files\Java\jre8\bin: "cannot find a Java SDK SE to the path C:\Program Files\Java\jre8\bin.

    SQLdeveloper said when at the beginning of navigation in C:\Program Files\Java\jre8\bin: "cannot find a Java SDK SE to the path C:\Program Files\Java\jre8\bin.

    Runs as an administrator.

    I'm administrator of my PC with Windows 7 64 bit.

    Installed the Java jdk-8u11-windows - x 64 .exe.

    You're VERY close - just remove the part "\bin".

  • How to select the path to a file icon button to a table?

    I have a SYSTEM_PATHS table name. All physical access paths as 'where the forms of execution are located' or 'where performance reports are located' are stored in its ranks for example (C:\HRMS\FORMS\)
    I memorized the path of the icon files (.ico) inside. The forms of execution can take the path of the icons for the buttons of this table. And access the icon of the chosen path. I use forms 6i. Normally, I put the path of the icon files in the nerve to property of the button as (C:\HRMS\ICON\). But now, here, I don't have a path but its in the column of a table. How to select the path to a file icon button to a table using forms 6i?

    Hello Gul,

    have you tried

    set_item_property('Button name',ICON_FILENAME,);
    

    Concerning
    Marcus

  • Lightroom CC do not remember the path of import file.

    Hello

    Since the update of Lightroom CC this week he remembers most the path of the file in the folder on my computer where to store my RAW files for import. Import this way whenever I have I have to run lightroom in the folder which is a royal pain as RAW folder is buried deep in other folders. I have verified that all import options, but can't find anything that is changed, so don't understand why he doesn't remember the path of the file. Everyone found it and not how to fix it?

    TIA.

    This has been discussed previously. Adobe is apparently aware of the problem, and if all goes well it will be corrected in a future update.

  • Add all files in the path when creating file folio in Folio Builder

    Hello everyone.

    I'm using InDesign CS 5 and the creation of folio for iPad 2. My Folio builder was working fine until last week, but all of a sudden I see a change in the way it behaves. When I update the files in the Folio Builder, it adds all the files in the path of access (not only the links in the file), including source of PSD files and other related files that I have never used in InDesign, do folio file will increase in size. Can someone help me please how do I remedy this situation?

    I thank you very much in advance.

    I look forward to your solution.

    You have an HTML file in there? If so, put it (as well as its assets) in its own folder.

    Bob

  • How to get the path of PDF file?

    Hello

    Adobe Livecycle ES2 V9

    Here is the code that I currently use (postSave):

    var fileName = event.target.documentFileName;

    at this point, fileName is (myForm.pdf), there is no path to the file

    fileName = fileName.substring (0, fileName.indexOf("."));

    xfa.host.exportData (".") ("/" + name + ".xml", 0);

    In fact, when the user saves the document PDF an XML file is automatically saved in the same directory with the same name as the PDF file.

    The problem is event.target.documentFileName only gets the pdf and the extension (ex: site_checklist.pdf)

    If the client opens two or more PDF files, it tries to export the XML file in the directory of the first open PDF file (or the last, it have not narrowed down).

    How can I get the path of the current PDF (not PDF more recently opened)?

    I can find no documentation for .documentFileName, I tried documentFilePath too.

    The property you are looking for is the 'path' property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.411.html

    Here is the documentation for documentFileName: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.389.html

  • Limiting the path to a file type?

    Hey all,.

    OK, this should be simple...  I did the search and looked in the help files, but did not find what I'm looking for... I want to limit my path to a single file type, in this case I just want to see Excel spreadsheets in a folder.  I have the default folder set, but finding what I need... someone at - it a trick?    TIA!

    Chad

    There is an entry model to the file dialog box. It may take string ina as "*.xlsx" and you will find all the names of files with the extension "xlsx".

  • How to change the path of a file download? Sometimes, I want to save a file in a specific folder on my hard drive and I don't know how to do it. Thank you.

    There is a default folder for downloading files from the internet ("Descargas" or "Downloads"). But, what can I do if I want to save the file to another location on the hard drive?

    Thank you.

    Options > general - in the middle of this window see downloads

    Save files to:-then click on the Browse button to set different default location to save downloads. Or, select always ask me where to save files.

  • Are the XQuery functions that are supported in the path of a function XMLTable clause?

    Hello

    Oracle 11.2, can I use XQuery functions in the path of a function XMLTable clause? I tried, but does not fit any result. Here is an example with and without the function fn:lower-case():

    SQL >
    SELECT EVENT_ID, ACTION
    OF EVENTSCHEMA.event x,.
    XMLTABLE ('/ *' from EVENTXMLTEXT)
    COLUMNS
    PATH varchar (10) ACTION ' / * / action'
    );

    EVENT_ID ACTION
    ------------- -----------
    1000 OBSERVE
    1001 OBSERVE

    SQL >
    SELECT EVENT_ID, ACTION
    OF EVENTSCHEMA.event x,.
    XMLTABLE ('/ *' from EVENTXMLTEXT)
    COLUMNS
    ACTION varchar (10) PATH "fn:lower - case(/*/action)".
    );

    EVENT_ID ACTION
    ------------- -----------
    1000
    1001


    At the end of the day, I will generate lines such as

    PATH of char (1) INFERRED ' if (fn:upper - case(/*/cah:extension/cah:inferred) = 'TRUE') then if "t" ElseIf (fn:upper - case(/*/cah:extension/cah:inferred) = 'FALSE') then 'f' not null'.
    PATH of TIMESTAMP BIZTRANSACTIONDATE "fn:adjust - dateTime-to-timezone(/*/cah:extension/cah:bizTransactionDate).

    but they also return null. If I remove the XQuery functions in them, they work.

    Do you know what could be the problem here?

    Thank you!
    -Daniela

    Works for me:

    SQL> with my_sample_table as (
      2    select xmltype('
      3    MONDAY
      4    TUESDAY
      5    WEDNESDAY
      6    TUESDAY
      7    FRIDAY
      8    SATURDAY
      9    SUNDAY
     10  ') xmldoc
     11    from dual
     12  )
     13  select x.*
     14  from my_sample_table t
     15     , xmltable(
     16        '$d/days/day'
     17        passing t.xmldoc as "d"
     18        columns day varchar2(30) path 'if (string-length(.)>6) then lower-case(.) else (.)'
     19       ) x
     20  ;
    
    DAY
    ------------------------------
    MONDAY
    tuesday
    wednesday
    tuesday
    FRIDAY
    saturday
    SUNDAY
    
    7 rows selected
     
    

    Do you know what could be the problem here?

    Please post an example of XML document.

  • I'm doing a script that takes a list of e-mail from a text file and then allow me to select a save as a string. I found some ways to get the path of the file, but I'm in check by pulling the list

    I found some ways to get the path of the file, but I am defeated by pulling the list from that. the function of the path get gives me the path as "Macintosh Users:: Documents: extractedb.txt (myUsername).

    What I can't understand is how to get a dialog box to display a list that represents the content in the text file, I need to change the contents of the text file, I need the box to show me what I chose and I want to save my selection as a single string.
    e '.

    example of extractedb.txt information:

    [email protected]

    [email protected]

    [email protected]

    * has a random number of emails as well *.

    I want this is to pull those emails from the text file and turn them into a list so I can get to be a selection in my dialog box.

    Any help would be great = D

    Assuming you have a text file with your example e-mail addresses, the following AppleScript will read this file in a list (mf_List) and then use this list as input to choose among the list. Because multiple selection is allowed (control button), the output is sent to a list (sel_addr). We check if the Cancel button was pressed by testing for false and if this condition is met, we the script error.  Based on a single or multiple list item content of the list, display accordingly.

    game of mf to ((path to the folder as text) & "mail_list.txt")

    the value mf_List to {}

    the value sel_addr to {}

    the value mf_List to paragraphs of (read file mf)

    the value sel_addr to (choose from the list mf_List with title ¬

    ('Mail list' with multiple selections allowed without empty selection allowed)

    If sel_addr is equal to false then

    Error number-128

    return

    end if

    If length of sel_addr is equal to 1 then

    sel_addr display dialog box as text

    on the other

    the value Point to the text of TID to AppleScript delimiters

    the value Point text in AppleScript return delimiters

    display the dialog box elements of sel_addr in the text

    the value Text of point AppleScript delimiters to TID

    end if

    return

  • Where to find the path function

    OK newbie stupid question where in the heck is the function of the path, I marked as log file and more likely I probably got fed up trying to find one copied from other VI. I never thought it would be under the file IO, but I can't find this little icon from anywhere?

    Thank you

    Thanks, I think I thought about it, I had to go to the front in the paths of the chain, but I would have thought you place it couple of façade or block diagram.

  • Find the path to the java program window in LabVIEW

    I am writing some software that depends on various java installed files properly in bin and lib/ext files files from the latest version of the java runtime installed.  I would like to be able to check if these files are in place and give an error message in my LabVIEW code if they are not.  However, the path to these files may differ on different machines depending on the version of java installed and the version of windows being used (for example C:\Program Files (x 86) \Java\jre7 vs.)  C:\Program Files\Java\jre6).  I use the 32-bit version of LabVIEW and the system Exec.vi to all my calls to java.  Does anyone know of a way directly from LabVIEW or command in Windows, I could use the system of Exec.vi to find these paths?  Thank you.

    In case anyone else has this problem:

    Use the LabVIEW functions in connectivity > access to the Windows registry (thanks Yamaeda)

    Access "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment" (thanks TiTou)

    You can specify if you want to only 32-bit or 64-bit with Key.vi register open (no need to deal with the Wow6432Node in the Windows registry, LabVIEW manages)

  • How to get the path of the vmdk to a VM stop file?

    Hi guys,.

    How to get the path of the vmdk to a VM stop file in ESX Server via the VIX API?

    I try to get it via the VixVM_ReadVariable() function. but it seems that this function requires that the virtual machine is power on.

    I don't want to go the virtual machine started, I just want to know if I can get the path of the vmdk file when a virtual machine is power off.

    Thanks in advance.

    Sorry, I don't have any samples.

    However, if you look at the layoutEx of the managed object VirtualMachine field, you will see that the VirtualMachineFileLayoutEx data object has a field "files" which should contain the paths of affected files.

    I hope that it should be able to help get started.

  • Change the path of the file of the scanned Document

    Hi, can someone do that to me. I have a HP Deskjet 2515 all-in-one printer, I was wondering how to change the location of the file of the scanned photos or documents. Whenever I scanned a document, it was recorded on the forlder of my documents in the library. Please help me how this issue can be resolved.

    Hello

    To change the path of digital file, please see below.

    Open the wizard from HP printer > under Print, scan & Fax > scan a Photo or a Doc > advanced settings > Destination > under save location you select path

Maybe you are looking for

  • Why support Mozilla will not close even if I reboot computer

    There is no way to close the support of mozilla. There is no drop-down list. I've had computers since the 1980 and never stumbled on this. Computer shutdown and commissioning occurring at the mozilla support page. No options available for out or dele

  • Xfinity toolbar enabled but does not appear on the screen

    My Xfinity toolbar is enabled but does not appear on the screen. Tried to turn it off, remove it and add it back, but no luck. There is a space in which it above my Norton toolbar but it's only this - space. How can I make it reappear?

  • Photosmart7520: Firmware updates

    Yet to see updates for Mavericks and must use a workaround in order to scan a document.  HP actually does support Apple software.

  • Transfer the software to another PC

    Hello I have a retail copy of Microsoft Office XP on a PC that is defective and must be disarmed to screw up the hard drive. I can reinstall my Office XP on my new machine and, if so, do I need to do to make sure that it is "registered" as a copy is

  • I have found my gesture control in the Media Gallery?

    in sony vaio I did not gesture control in the multimedia gallery. using firstly that the gesture control option after that it's not all was