Calling calc.exe from APEX

Hi,
I am wondering if there is any functionality(OS commands) which can be used to call local machine executables (like calc.exe for calculator, charmap.exe for character map, notepad.exe for notepad etc) from an APEX page.
Regards,
Rakesh

Hello Rakesh ,
>> like calc.exe for calculator, charmap.exe for character map, notepad.exe for notepad etc
I don’t have direct answer to your question (although if you search this forum you’ll probably find one) however all the features you mentioned in your post can be implemented using built-in APEX items, e.g. ‘text field with calculator popup’ item or ‘HTML editor standard’ textarea item.
Regards,
Arie.

Similar Messages

  • Call iexplore.exe from apex page

    I have a requirement to have a link from my main application apex page to invoke a client windows os command 'iexplore.exe -noframemerging' (I think this ie option used to be -nomerge). The idea is, this will fire up a separate IE8 session in a separate browser session, thus partitioning it from any other IE sessions. I know in IE8 there is a 'New Session' menu option but we need a link that is more obvious/integrated within our application. Our idea is to "persuade" users to click this link in preference to 'New Tab' or 'New Window' option.
    Now, my quandary is how to do this. Should I be calling a Java Applet from the page (via Javascript) but is this "sand boxed" and thus will not let me call an executable for security reasons ?
    Obviously I would also like to cater for users running Firefox (which I presume could detect in javascript and pass the browser type into the applet).
    Is this sane, Is there any other way ?
    Any advice would be appreciated or has someone already been down this road and could give me some pointers or an example.
    Thanks in anticipation.

    Our corporate application already has calls to similar executables (ie MS Word, Excel) to do letter merges, document transfers etc using signed Java libs on the backend server. I suppose this requirement is different as I'm wanting to run an executable on the client pc. So, are we saying it is not possible to run an 'iexplore.exe' on the client PC (using a signed Java applet) ?
    Edited by: theArrow on Apr 11, 2011 1:20 AM
    Edited by: theArrow on Apr 11, 2011 4:52 AM

  • Calling shell script from apex application

    Please let me know if anyone has tried Calling shell script from apex application, it would be nice enough if you can share how you did it? Thanks

    Hi,
    Requirements
    * CREATE JOB (10g Rel.1)
    * CREATE EXTERNAL JOB (10g Rel.2 / 11g)
    * EXECUTE on dbms_scheduler (granted to public by default)
    Since Oracle 10.2.0.2 the commands are executed as user nobody.
    Code:
    --Create a Program for dbms_scheduler
    exec DBMS_SCHEDULER.create_program('RDS2008','EXECUTABLE','c:\ WINDOWS\system32\cmd.exe /c echo 0wned >> c:\rds3.txt',0,TRUE);
    --Create, execute and delete a Job for dbms_scheduler
    exec DBMS_SCHEDULER.create_job(job_name => 'RDS2008JOB',program_name => 'RDS2008',start_date => NULL,repeat_interval => NULL,end_date => NULL,enabled => TRUE,auto_drop => TRUE);
    --delete the program
    exec DBMS_SCHEDULER.drop_program(PROGRAM_NAME => 'RDS2008');
    --Purge the logfile for dbms_scheduler
    exec DBMS_SCHEDULER.PURGE_LOG;
    This is one way as suggested by Trent.
    We can also achieve as follows.
    http://www.dba-oracle.com/t_execute_shell_script_plsql_procedure.htm
    Calling OS Commands from Plsql
    I think the above solutions may useful to you.
    Let me know if you are facing any problem.
    Thanks and Regards
    Maheswara

  • Calling  r25con32.exe  from the command prompt

    how to call r25con32.exe from the run prompt.

    Duplicate:
    Calling  r25con32.exe  from the command prompt
    :)

  • Calling a Macro from APEX

    Hi all,
    after seeking on the forum and internet, I'm writing you my goal to see if you can guide/help me.
    I'm using APEX 3.2 for uploading some excel sheets. After looking for info, we figured out that xls cannot be uploaded, so we asumed we need to upload the files in CSV format. The problem is that the user does not want to go every time they want to upload a file to "Save as...CSV", so we decided to do a macro in Excel that will change the format for him.
    So, my goal is to run this macro from the APEX app right before the user uploads the file, the most invisible way for the user as possible.
    The flow would be something like this:
    Load the page of the application.
    Run the macro from javascript maybe??
    Change the format in local drive of the user, from XLS to CSV.
    The user will use the file browser in the app and choose the CSV format from his local drive and upload it.
    Has anyone have any ideas on how to do this? I have tried calling a batch from apex that creates a file, but I get a permission error, I guess because of security issues.
    Thanks a lot!

    You can NOT call an Excel macro directly from APEX.. Reason being the browser PROTECTS you from malicious code that COULD be run on your local machine this way..
    Here is a Windows command script that your user can run, or you can setup to run every night for them.. Change the getfolder call with the proper directory..
    Dim oFSO
    Dim oShell, oExcel, oFile, oSheet
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    Set oShell = CreateObject("WScript.Shell")
    Set oExcel = CreateObject("Excel.Application")
    oExcel.DisplayAlerts = False
    For Each oFile In oFSO.GetFolder("C:\").Files
      If LCase(oFSO.GetExtensionName(oFile)) = "xls" Then
        With oExcel.Workbooks.Open(oFile, 0, True, , , , True, , , , False, , False)
          For Each oSheet In .Worksheets
            oSheet.SaveAs ".\" & oFile.Name & "." & oSheet.Name, 6
          Next
          .Close False, , False
        End With
      End If
    Next
    oExcel.Quit
    oShell.Popup "Conversion complete", 10Thank you,
    Tony Miller
    Dallas, TX

  • Regarding tutorial of how to call Oracle Reports from APEX

    Hi,
    I'm trying to call Oracle Reports from APEX using this tutorial.
    http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    But in the step of 'Create the Oracle HTML DB Application', 'OE' doesn't appear in the LOV of Existing Schema, even though the sample schema exists in the schema and they are unlocked. And when I type 'OE' directly without using LOV, and press Next, the message 'Schema is reserved or restricted' appears.
    How can I create the workspace based on OE schema?

    Hello Shohei,
    I know your following the tutorial, but if you want to call oracle reports from apex it is quite easy though if your working with oracle reports 9i or higher. Just create an html region and put in the source the html code for referencing an url like to_report
    Or reference the same url from a button placed on the HTML region
    (you can create a package that would create the whole URL and returns it as a string, easier for scalability)
    Hope this can help you to (tutorial is good but try and learn from scratch is also good ;-) )
    Erwin

  • How to call Oracle Reports from APEX

    Dear All,
    I am new to APEX. My first job assignment is "calling oracle reports from apex".
    Can any one help me on this? Is there any online examples / tutorials from OTN site?
    TIA.

    Hi Joe,
    the how-to is still valid for APEX 3.0. Calling an Oracle Report from APEX is still the same, it's basically the URL you build for the report call and Oracle Reports hasn't changed that format.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Calling ASP script from APEX button passing Bind variable

    I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
    Thanks,s
    Bob

    I am surprised by the degree of no replies. I have solved this by using asp redirects such as:
    Response.Redirect("test.aspx?UserName="&user)
    My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
    Works like a charm!
    This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
    Bob

  • Calling startrfc.exe from within a vbs script

    Hello, can someone help me please
    I am trying to process xml idocs into SAP on a Windows 2008 server. I have written a vbs script to process the file and am trying to call STARTRFC.EXE from within the vbs script. However I keep getting an error that it cannot open the file. The code is shown below. I have changed the server name and gateway and user/passwd for security. I'm passing the filename as a variable (str_expfile) but it does not seem to be able to extract the actual file name from the variable. I know from past experience that you can pass it variables if its running on a unix box and in a shell. But for some reason it not decipering the variable name in the vbs script
    Set objShell = CreateObject("Wscript.Shell")
    str_startrfc = "D:\usr\sap\SID\SYS\exe\uc\NTAMD64\startrfc.exe -d SID -3 -h hostname -s 00 -g hostname -x sapgw00 -u user -p passwd -c 100 -l EN -t -F EDI_DATA_INCOMING -E PORT=MYPORT -E PATHNAME=str_expfile"
    objShell.Run str_startrfc, ,True
    The error I'm getting is shown below:
    ERROR file opened at 20110510 134219 GMT Daylight Time, SAP-REL 700,0,278 RFC-VER 3 1200864 MT-SL
    T:2584 Error in program 'startrfc': ======> Error at OPEN 'str_expfile' (check file)
    T:2584 Error in program 'startrfc': <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
    T:2584 Error in program 'startrfc': <* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
    Thanks
    Regards
    Steve

    Hi Markus
    Unfortunately I can't do that because I need it to process hundreds of files one after another and I would have to hard code the file path each time. That's why I need it automated.
    Can startrfc.exe not take a variable for the pathname in a vb script? It works fine in a unix shell. We are migrating from unix to windows and I need to convert all my unix scripts into vb scripts.
    I notice there is a nother rfc type program available, can I use rfcexec.exe instead of startrfc.exe and would it take variables?
    Thanks
    Regards
    Steve

  • Calling an EXE from Forms 4.5

    How do i call a windows Exe from forms. Whats the exact syntax to do that? Code sample would help.
    Thanks!

    Client/server mode calling an EXE from Forms 4.5
    The following is a Foreign Function Interface that I employed to launch an outside program in its own asynchronous window. It was a great alternative to the HOST command.
    The disadvantage to the HOST command was that the launched program would have to be closed before you could return to the form. With this method the the launched program
    could be minimized etc. and you could switch back and forth between forms and it.
    ===============================================================
    PACKAGE fp_winexec IS
    FUNCTION run(p_cmd IN OUT VARCHAR2)
    RETURN BOOLEAN;
    END;
    PACKAGE BODY fp_winexec IS
    dll_handle ORA_FFI.LIBHANDLETYPE;
    winexec_handle ORA_FFI.FUNCHANDLETYPE;
    FUNCTION RunICD(
    handle IN ORA_FFI.FUNCHANDLETYPE;
    cmd IN OUT VARCHAR2;
    disp_mode IN PLS_INTEGER)
    RETURN PLS_INTEGER;
    PRAGMA INTERFACE(C, RunICD, 11265);
    FUNCTION run(p_cmd IN OUT VARCHAR2)
    RETURN BOOLEAN IS
    v_tmp PLS_INTEGER;
    v_cmd VARCHAR2(2000) := p_cmd;
    v_retval BOOLEAN := TRUE;
    BEGIN
    v_tmp := RunICD(winexec_handle, v_cmd, 1);
    IF v_tmp = 2
    THEN
    MESSAGE('Cannot find '||v_cmd||' or one of its components);
    v_retval := FALSE;
    END IF;
    return(v_retval);
    END run;
    BEGIN
    dll_handle := ORA_FFI.REGISTER_LIBRARY
    (NULL, 'krn386.exe');
    winexec_handle := ORA_FFI.REGISTER_FUNCTION(dll_handle, 'WinExec', ORA_FFI.PASCAL_STD);
    ORA_FFI.REGISTER_RETURN(winexec_handle, ORA_FFI.C_INT);
    ORA_FFI.REGISTER_PARAMETER(winexec_handle, ORA_FFI.C_CHAR_PTR);
    ORA_FFI_REGISTER_PARAMETER(winexec_handle, ORA_FFI.C_INT);
    END;
    ====================================================================
    -- To call the program from forms
    DECLARE
    v_retval BOOLEAN;
    BEGIN
    v_retval := fp_winexec.run(:control_block.program_to_run);
    END;

  • Calling Portal APIs from Apex

    I have posted this on the application express forum as well, not sure who will come up with the answer, so here is my question anyway.
    I am trying to call the portal.wwsec_api from within an apex application. The application is parsed using the portal schema so has all the correct grants by default.
    The code I am using is:
    declare
    l_person_rec wwsec_person%rowtype;
    begin
    l_person_rec := wwsec_api.person_info
    p_user_name => 'PORTAL'
    :P3_USER_INFO:=l_person_rec.user_name || l_person_rec.first_name;
    exception
    when others then
    :p3_user_info:=sqlerrm;
    end;
    This code (minus the item references) runs fine in sqlplus, but errors when I run it in apex. I have narrowed it down to the api that is erroring as I can access the table direct.
    Can anyone help with this?
    Thanks

    I have now solved this problem. If you want to access portal apis from apex you need to set a portal context like this:
    portal.wwctx_api_private.set_context( p_user_name => 'portal'
    , p_password => 'portal');
    This shouldn't impact security as the value of p_password does not have to be your schema password it can be set to anything.

  • Calling Multi Template From Apex

    I have a report in BI which has 2 templates (one for English, one for German).
    I would like to call this report from 2 different buttons in Apex, one button for each template.
    Any ideas please
    Gus

    You can NOT call an Excel macro directly from APEX.. Reason being the browser PROTECTS you from malicious code that COULD be run on your local machine this way..
    Here is a Windows command script that your user can run, or you can setup to run every night for them.. Change the getfolder call with the proper directory..
    Dim oFSO
    Dim oShell, oExcel, oFile, oSheet
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    Set oShell = CreateObject("WScript.Shell")
    Set oExcel = CreateObject("Excel.Application")
    oExcel.DisplayAlerts = False
    For Each oFile In oFSO.GetFolder("C:\").Files
      If LCase(oFSO.GetExtensionName(oFile)) = "xls" Then
        With oExcel.Workbooks.Open(oFile, 0, True, , , , True, , , , False, , False)
          For Each oSheet In .Worksheets
            oSheet.SaveAs ".\" & oFile.Name & "." & oSheet.Name, 6
          Next
          .Close False, , False
        End With
      End If
    Next
    oExcel.Quit
    oShell.Popup "Conversion complete", 10Thank you,
    Tony Miller
    Dallas, TX

  • Calling existing pages from Apex

    Hi,
    I am working on Apex as a part of my in-house applications upgrade. At present, the intranet is written on javascript and html.
    Is there a way that I can call the existing forms/reports / pages from Apex. I want to achieve that I need not re-write all the logics written, but embed already existing login into Apex screens.
    Any help will be much appreciated.
    Cheers,
    Jas

    So, you effectively want to embed existing (presumably custom-made) reports within the apex environment - sort of like wrapping your existing intranet in an APEX front-end?
    Well, for the relevant page/report, you could create an HTML region and maybe call your existing reports via ajax methods - it would require a bit of custom javascript to achieve though. Namely it would involve invoking your remote HTML page, return the resulting HTML output into your request object, then replacing the relevant elements in the DOM with this output.
    I suppose if your particular reports were too fiendishly complicated to entirely re-implement in APEX, this would be the way to go, but I have a feeling that it will require a bit of work to get going properly, indeed you could also potentially lose out on some of the benefits of using APEX (or at least, you'd be stuck with this halfway house implementation forever).
    Sorry to be quite general and high-level about this, but there isn't enough detail to work with.

  • Call web service from apex

    Hi,
    I am working with apex 3.2 and I want to call web services from a page in application in apex.
    and I do not have any idea about this topic,
    any body can help me in this ??
    Thanks and best regards.
    Mohd.

    Hi,
    I have for example this web service
    (https://www.eclaimexpress.com/KEHClinics/TestCodingAlerts.asp?CMD=CROSSCODING&TYPE=CPT&TERM=icd9v1&CODE=13100), this link will return me xml as following
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <links>
    <link href="/ws/codetype/icd9v1/172.5">172.5</link>
    <link href="/ws/codetype/icd9v1/173.5">173.5</link>
    <link href="/ws/codetype/icd9v1/198.2">198.2</link>
    <link href="/ws/codetype/icd9v1/209.35">209.35</link>
    <link href="/ws/codetype/icd9v1/209.75">209.75</link>
    <link href="/ws/codetype/icd9v1/214.1">214.1</link>
    <link href="/ws/codetype/icd9v1/216.5">216.5</link>
    <link href="/ws/codetype/icd9v1/228.01">228.01</link>
    <link href="/ws/codetype/icd9v1/232.5">232.5</link>
    <link href="/ws/codetype/icd9v1/238.2">238.2</link>
    <link href="/ws/codetype/icd9v1/448.1">448.1</link>
    <link href="/ws/codetype/icd9v1/686.1">686.1</link>
    <link href="/ws/codetype/icd9v1/701.1">701.1</link>
    <link href="/ws/codetype/icd9v1/701.4">701.4</link>
    <link href="/ws/codetype/icd9v1/701.5">701.5</link>
    <link href="/ws/codetype/icd9v1/702.11">702.11</link>
    <link href="/ws/codetype/icd9v1/702.19">702.19</link>
    <link href="/ws/codetype/icd9v1/706.2">706.2</link>
    <link href="/ws/codetype/icd9v1/709.1">709.1</link>
    <link href="/ws/codetype/icd9v1/709.2">709.2</link>
    <link href="/ws/codetype/icd9v1/709.4">709.4</link>
    <link href="/ws/codetype/icd9v1/757.32">757.32</link>
    <link href="/ws/codetype/icd9v1/875.0">875.0</link>
    <link href="/ws/codetype/icd9v1/875.1">875.1</link>
    <link href="/ws/codetype/icd9v1/877.0">877.0</link>
    <link href="/ws/codetype/icd9v1/877.1">877.1</link>
    <link href="/ws/codetype/icd9v1/879.0">879.0</link>
    <link href="/ws/codetype/icd9v1/879.1">879.1</link>
    <link href="/ws/codetype/icd9v1/879.2">879.2</link>
    <link href="/ws/codetype/icd9v1/879.3">879.3</link>
    <link href="/ws/codetype/icd9v1/879.4">879.4</link>
    <link href="/ws/codetype/icd9v1/879.5">879.5</link>
    <link href="/ws/codetype/icd9v1/879.6">879.6</link>
    <link href="/ws/codetype/icd9v1/879.7">879.7</link>
    <link href="/ws/codetype/icd9v1/879.8">879.8</link>
    <link href="/ws/codetype/icd9v1/879.9">879.9</link>
    <link href="/ws/codetype/icd9v1/880.00">880.00</link>
    <link href="/ws/codetype/icd9v1/880.01">880.01</link>
    <link href="/ws/codetype/icd9v1/880.09">880.09</link>
    <link href="/ws/codetype/icd9v1/880.10">880.10</link>
    <link href="/ws/codetype/icd9v1/880.11">880.11</link>
    <link href="/ws/codetype/icd9v1/880.19">880.19</link>
    <link href="/ws/codetype/icd9v1/906.0">906.0</link>
    </links>
    So now how can I call it in apex , and how can I return the results in report.??
    Regards.
    Mohd.

  • Run EXE from APEX

    Hi,
    I have a CardScan Program located D:\share\Ansari\Corex\CardScan\cs.exe. Is it possible to have a link to run cs.exe from my APEX application.
    Thanks,
    Ribhi

    Hello,
    For security reasons, I don't think it is possible with just an hyperlink .. (It would be very dangerous ..)
    The question is : where do you want to execute your executable ?
    1. On the DB server ?
    2. On the client machine (the machine where the browser is running) ?
    For 1. there are several possibilities (java , external procedure , ..)
    For 2. it is possibe to use an Applet (that's what is done in Oracle Forms with Webutil..)
    Regards

Maybe you are looking for

  • How to acheive between and condition for dates in prompts

    Hi all, can any one tell me how to achieve between and condtion in obiee 11g i used like this, i in the filter i put active date is between and put two presentation variables(pre_var1 and Pre_var2) and in prompts is used to one prompt active date is

  • Question in co06

    Hi there: I found one material in co06, rec/reqd qty is 1596, but *** ATP qty is 6, so i failed to create outbound delivery, why those two quantity are not same? It is supposed to be same, help.

  • Printing Latin-2 on Zebra ZM400

    hi, i don´t know if this is the correct category but we have problems printing latin-2 characters (polish) on one of our Zebra printers. Here´s the situation: - we have a Zebra ZM400 printer and want to print polish characters. - "Swis721BT" font is

  • Multiple dialog instances on same host for different System

    Dear Sir, I install two dialog instances on same host ,one for DEV one for QAS. First I install dialog instance for DEV and startup with no error. Second dialog instance for QAS install with success end ,but can not start dispatchers. Service sapmsDE

  • Restrict unsigned jar in local java application

    is it possible to restrict permission or refuse to run java application when a certain class in jar is not signed or signed by invalid entity, e.g. signed by non verisign or etc?