How to use Client_Host without the exe file path

Hi,
i'm using oracle forms 10g,
in my application the users can upload any type of files (doc,xls,pdf,avi ,.. etc) and any user can download and open any of these files.
i implement this using client_host and including the path of winword.exe or AcroRd32.exe ,...
in many cases i don't know where these exe files are installed in the client side or whether it is installed or not.
i tried this command : client_host('calc.exe') it works and show me the calc without including the path of this exe file.
what i want to do is to just call the target file(doc,pdf,avi,..) in the client_host without having to precede this with the exe and path like the calc.exe example.
if you go to start->run and write for example c:\ahmed.mpeg , windows automatically call the real player or any other video software installed and open the movie.
can we implement this in oracle forms? and how?

Hi, you attach a procedure to download a file in the local runs from Windows and to close it updates in the database and then delete the local directory
PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
IS
-- Open a stored document --
LC$Cmd Varchar2(1280) ;
LC$Nom Varchar2(1000) ;
LC$Fic Varchar2(1280);
LC$Path Varchar2(1280);
LC$Sep Varchar2(1) ;
LN$But Pls_Integer ;
LB$Ok Boolean ;
-- Current Process ID --
ret WEBUTIL_HOST.PROCESS_ID ;
     V_FICHERO VARCHAR2(500);
     COMILLA VARCHAR2(4) := '''';
     BOTON     NUMBER;
     MODO     VARCHAR2(50);
     URL     VARCHAR2(500);
Begin
     V_FICHERO := V_ID_DOC;
          -- Ruta y nombre del fichero temporal --
          LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
          LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
          --LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
          LC$Path := 'C:';
          LC$Fic := LC$Path || LC$Sep || LC$Nom ;
          -- Descargamos el fichero --
          If Not webutil_file_transfer.DB_To_Client
          LC$Fic,
          'TABLE_NAME',
          'ITEM_NAME',
          'WHERE'
          ) Then
          Raise Form_trigger_Failure ;
          End if ;
          -- Abrimos el fichero temporal en local --
          LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
          Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
          LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
          If LN$But <> 0 Then
               Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
     Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
     LN$But := Show_Alert( 'ALER_STOP_1' ) ;
     LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
     Raise Form_Trigger_Failure ;
          End if ;
          -- Actualizamos el fichero en la BBDD --
     If Not webutil_file_transfer.Client_To_DB
          LC$Fic,
          'TABLE_NAME',
          'ITEM_NAME',
          'WHERE'
          ) Then     
          NULL;     
          Else
               Commit ;
          End if ;     
     -- Eliminamos el fichero temporal local --
          LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Exception
          When Form_Trigger_Failure Then
          Raise ;
End ;

Similar Messages

  • How-to use Excel for the XML file input?

    Hello all,
    Following our discussion with Gerhard Steinhuber on the very nice tutorial from Horst Schaude , "How to upload mass data via XML File Input" , I am starting this new discussion.
    In the comments section of this previous cited tutorial, Rufat Gadirov explains how to use a generated XML from Eclipse instead of your XSD file as your source in Excel.
    However, in spite of all the instructions, I am still facing the same issue in Excel when I try to save my file as XML : "The XML maps in this workbook are not exportable".
    What I try to do is to create one or more Sales Orders with multiple Items in it from a XML File Input, using excel to enter data.
    The part with the File input is working (if I directly upload my file to the webDAV, it creates a sales order instance with multiple items).
    The only missing part is the Excel data input that I cannot make work. Any help on this matter would be greatly appreciated.
    Here is my XML file that I try to use as a source in Excel before inputing data from Excel:
    <?xml version="1.0" encoding="UTF-8"?>
    <p:MySalesOrderUploadedIntegrationInputRequest xmlns:p="http://001365xxx-one-off.sap.com/YUUD0G3OY_" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <MessageHeader>
        <CreationDateTime>2015-03-02T12:00:00.000Z</CreationDateTime>
    </MessageHeader>
        <List actionCode="01" listCompleteTransmissionIndicator="true" reconciliationPeriodCounterValue="0">
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
            <MySalesOrderUploaded>
              <MySalesOrderUploadedID>idvalue0</MySalesOrderUploadedID>
              <MyBuyerID schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeID="token">token</MyBuyerID>
              <MyDateTime>2015-03-02T12:00:00.000Z</MyDateTime>
              <MyName languageCode="EN">MyName</MyName>
              <MyBillToParty schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyBillToParty>
              <MyDateToBeDelivered>2001-01-01</MyDateToBeDelivered>
              <MyEmployeeResponsible schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MyEmployeeResponsible>
              <MySalesUnit schemeAgencyID="token" schemeAgencySchemeAgencyID="1" schemeAgencySchemeID="token" schemeID="token">token</MySalesUnit>
                <MyItem>
                    <MyItemID>token</MyItemID>
                    <MyItemProductID schemeAgencyID="token" schemeID="token">token</MyItemProductID>
                    <MyItemDescription languageCode="EN">MyItemDescription</MyItemDescription>
                    <MyProductTypeCode>token</MyProductTypeCode>
                    <MyRequestedQuantity unitCode="token">0.0</MyRequestedQuantity>
                    <MyConfirmedQuantity unitCode="token">0.0</MyConfirmedQuantity>
                    <MyNetAmount currencyCode="token">0.0</MyNetAmount>
                </MyItem>
            </MySalesOrderUploaded>
        </List>
    </p:MySalesOrderUploadedIntegrationInputRequest>
    Thank you all for your attention.
    Best regards.
    Jacques-Antoine Ollier

    Hello Jacques-Antoine,
    I suppose that as you have tried to construct a map from the schema, you have taken the elements from the List level down. In this case I also can't export the map.
    But if you take the elements from the level MySalesOrderUploaded down, you'll get the exportable map (screenshots)
    Best regards,
    Leonid Granatstein

  • How to find out where the exe file was installed?

    Hi there,
    I have the following problem: In my VI, I'm reading a .txt file through the vi "Open Config Data" in which I specify the path of the txt. file and it returns me a refnum that is used to read the file. When I made the installer to this application, I included this txt, thus, the txt is kept together in the directory where the application is installed. The problem is that the path that is specified to the vi "Open Config Data" is not valid anymore, since the instalation directory is different. I'd like to know if there's a way to know where the application was installed. Maybe through a registry? If you have a suggestion, I'd be glad to hear it.
    Kind Regards,
    Bruno Ponne

    In addition to the information that JB provided, you can also do something like what is shown in the attached VI that I use. It takes the approach of stripping the current VI's path till it gets to something that doesn't end in .exe, .llb or .vi. This will give the OS path regardless of where the VI is located. I find this useful because I sometimes build applications utilizing a library of plugins and, depending upon where the plugin library is located, the path to it may not be the same things as the path to the executable.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    Extract my OS path.vi ‏42 KB

  • How to use SQLExec without the ODBC error

    When I execute the query using SQLExec it gives alarm on Excel ODBC driver.Please provide detailed instructions on how to use this object.

    Mani,
    I have found an example that you can use to help you in your development of your Lookout application. This example will eventually be found in the resource Library of the Developer Zone.
    Attachments:
    sqlexcel.zip ‏132 KB

  • How do I set up the .exe file for silent (unattended) install?

    I'm looking to do multi installs across different platforms with a WPI

    Are you printing this yourself, on a network copier for example? If it's going to be printed on an offset press, it will have to be imposed by prepress techs, and it's their job to make sure that the pages are aligned correctly. There will be some part of a cross-spread image that will be lost in the spine, and their imposition method will take into account whether pages need to be moved outward from the spine by small amounts (called creep) to compensate for the wrap-around that is a part of bindery, but perfect binding isn't as bad as saddle stitch as far as that goes. Talk to your printer, but you will likely just need to compose the book in normal facing-page readers spreads and provide a multi-page PDF (not exported as spreads). They will impose the pages into printers spreads, and thank you for not doing that yourself. There will be aspects of their production that you won't or can't know about, and if you impose it, it will just make it harder for them if they have to undo what you have done incorrectly.

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • How to download the exe file, rather then installing

        hi, as my working pc has very low internet connectivity, how can i download and take this installable file to my pc? because when ever i click on download flash builder 4.7 trail it starts installing rather then downloading and getting saved in some location.. please help me

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • How to create the exe files for java application

    How to create the exe file for java application?
    got any software to do that?
    Thanks

    In terms of converting java applications into exe files, there are 3 schools of thought:
    1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
    http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
    2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
    http://www.sureshotsoftware.com/exej/
    http://www.objects.com.au/products/jstart/index.jsp
    http://www.duckware.com/products/javatools.html
    http://www.ucware.com/jexec/
    http://www.rolemaker.dk/nonRoleMaker/javalauncher/
    http://www.jelude.cjb.net/
    http://thor.prohosting.com/~dfolly/java/index.html
    3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
    http://www.excelsior-usa.com/jet.html (evaluation version available)
    4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
    Can't think of any free options right now.

  • I received an email containing a spreadsheet created using Mac Office 2004 on my new MacBook Air equipped with Mac Office 2011.  When I saved the document, my Finder lists the document without the .xls file extension. Why?

    I received an email containing a spreadsheet created using Mac Office 2004 on my new MacBook Air equipped with Mac Office 2011.  When I saved the document, my Finder lists the document without the .xls file extension. Why?
    All other .xls documents created by Mac Office 2004 retained the .xls file extention when I migrated them over to the new MacBook Air.

    I know what happened.  When I saved the document I somehow hit the Hide File Extension box.  Sorry to trouble this group. I simply resaved it w/o activating the Hide File Extension feature.

  • HT5002 I used Inkscape on Linux before moved to Mac. Now I am trying to install it using MacPorts, but libpixman has some problems that has been reported out there. Does any one know how to fix it without the need to use other way than MacPorts?

    I used Inkscape on Linux before moved to Mac. Now I am trying to install it
    using MacPorts, but libpixman has some problems that has been reported out there.
    Does any one know how to fix it without the need to use other way than MacPorts?

    Start with this comprehensive troubleshooting article:
    https://discussions.apple.com/docs/DOC-3521
    Look at this one for possible solutions:
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • The vi project works, the exe file no. Why?

    Hi!
    I wrote this project to acquire data (using DAQ USB NI-6008) and to save them in a .tdm file.
    It works perfectly but because I need to run that application on a pc without labview, I built the .exe file (and everything went fine!).
    Can someone explain me because the stand -alone application writes a .tdm file without data?
    It's not empty, but it contains no one of the time - preassure data I need.
    Thanks a lot for your attention!
    Marco Montorsi
    Attachments:
    DAQ data logger.vi ‏128 KB

    Sorry to answer you only now, but I'm a beginner of Labview and implementing your advise took me a lot of time.
    I attach the new vi file.
    I added what you said and I ran the vi project: no errors, everithing works fine.
    So I built the exe and I tried it: after asking me to decide the filename for the report, the second time the program has to write data in the file an error task appairs.
    It says that file can't be found...?!?
    Thanks a lot!
    You allowed me to find a bug...but I really don't understand why it happens and, manily, how to solve this problem?
    I hope in a new your great idea!
    Attachments:
    DAQ data logger.vi ‏130 KB

  • How can I script a Flash .exe file to always stay on top of all other windows?

    Hi All,
    I'm new to action script, and I just need this one script
    > How can I script a Flash .exe file to always stay on top of
    all other windows?
    Basically what i want to do is have a flash-created
    step-by-step instructional movie, but for the movie to remain on
    top of all windows so the instructee is able to follow the
    instructions on-screen...
    It would be preferable to not have to buy another product
    just to do this... as I said, this is the only scripting I need.
    Thanks in advance
    Cheers
    Rick

    if you create your exe with mProjector you can use one of its
    new AS
    commands to do this.
    setZOrder
    http://www.screentime.com/software/mprojector/docs/mWin_setZOrder.htm
    all APIS
    http://www.screentime.com/software/mprojector/docs/index.html
    Demo
    http://www.screentime.com/software/mprojector/demo.html
    mProjector installs new classes and help into Flash, to
    enable them you
    must build your app with mProjector (its input is your swf)
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • How to convert Windows 8.1 .exe file to ISO image for installation via Boot Camp?

    I have a late 2013 retina display MacBook Pro and want to use Boot Camp to run one piece of software that is run exclusively on Windows operating systems.  I have a Windows 8.1 download from MS that is an .exe file, and I need to convert it (I believe) to an ISO image on a flash drive.  How do I convert the .exe file to an ISO image?

    If you want to use Mac OS X at the same time as Windows, run one of these:
    VMWare Fusion
    Parallels
    Virtual Box (Open Source)
    If you are willing to alternate Boot Windows -OR- Mac OS X, all you need is Bootcamp Assistant (and your Windows installer, of course.)
    >>NB In any case, do not allow Windows to directly modify the Partition Map or change the size of any Partition. That will wipe out the Partition Map, and Mac OS X. Windows is not a pleasant guest.

  • I just bought the 29.99 a month Acrobat XI for one of my employees... should I just send him the .EXE file? Please confirm

    I bought it for one of my remote employees... Should I just share the EXE file or how they can start using it or they need anything else?
    Thanks

    Installing it is no great difficulty, the subscription is the issue. If you are using this Adobe ID for anything else, you cannot split off the subscription, and cannot share the Adobe ID. Volume licensing (with team management) is only available for the full Creative Cloud subscription.
    Acrobat Pro XI subscription FAQ

Maybe you are looking for

  • Searching for literal strings in iTunes

    Is this possible? Using double quotations marks will not do the trick and it is important for me to search for a literal string. Does anyone know how to accomplish this?

  • Trouble with ipod touch time

    everytime it connects it puts the ipod with a wrong time for example is should say right now 10.32 but when i connect it to the computer it resets it to 9.32 ,one hour dif.I have tried everything to put it normal,restoring,restoring settings everythi

  • I tunes wont download mi songs

    hello

  • Migrating NetBeans App to JDeveloper Exceptions

    Hi All, I am migrating a desktop application developed in Net Beans to Oracle Jdeveloper 11g R2. I am following a very nice video from the following link: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/NBtoJDevProject/NBtoJDevProject.h

  • Flash Shows as Dowloaded but won't work

    I can't understand what is going on.... I click on the button to donwlaod Macromedia Flash, then I see the revolving icon, tellming me that the software has successfully downloaded. When I visit a website requiring Macromedia flash, I receive a notic