Return Code of the Tag applet /applet

Does someone has deal with return code in the applet tag
<applet codebase="http://10.15.1.26/printcndconjunta/"
     code="AppletHTMLPrint.class" width=710 height=500 id=Applet1 VIEWASTEXT>
<param name="ConectionLink" value=<%=ConnectionString%>>
</applet>
Example : AppletHTMLPrint.class return 1 with someone used exit options.
In resume , I want to close my HTML page (ASP one) after finished using my Applet, the way is going now it does not close the page
where the applet was running after applet exit.

If you Google for "applet javascript communications" you will be able to find out how to make the applet call a Javascript function which could in turn close the window.

Similar Messages

  • How to retrieve the return code of the scenario execution

    Hi,
    I do see the return code in the execution tab of the scenarios..
    I need to use those values in a package.
    So how do i retrieve those value and use in a variable..?
    In which table, i find this value?
    Please respond as soona s possible. This is very critical for me.
    thanks,

    Yes, reference the Java API package oracle.odi.domain.runtime.session - this package contains classes for managing Oracle Data Integrator Sessions and related objects.
    In this package is the java class OdiSessionStepLog which has the method getReturnCode() which will do the same as the earlier substitution variable example

  • About the return code of the tpcall

    if i run the client one time ,then it's right,
    but if run again and again,
    the server should return 'TPSUCESS' or 'TPFAIL'
    BUT,iSucess got by client will be 64(run the client sencond),128(third),192(fourth)
    i did not know what happend to this
    client:
    long reclen=1024;
    FBFR32* inputbuf=NULL;
    int iSuccess;
    inputbuf = (FBFR32*)tpalloc("FML32",NULL,reclen);
    int count=0;(or some other value,like 5,6..)
    for (int i=0;i<count;i++)
         iSuccess=-1;
         userlog("tperrno==%d,desr==%s",tperrno,tpstrerror(tperrno));
         iSuccess = tpcall("shlr",(char*)inputbuf,0L,(char**)&inputbuf,&reclen,0L);
         userlog("tperrno==%d,desr==%s",tperrno,tpstrerror(tperrno));
         userlog("return==%d",iSucess);
    tpfree((char*)inputbuf);
    server:
    void shlr(TPSVCINFO *rqst)
    int ret=dealfun(rqst);
    FBFR32 * sendbuf=(FBFR32*)tpalloc( "FML32", NULL, 1024);
    if (ret==1)
    tpreturn(TPSUCCESS,0,(char*)sendbuf,0L,0);
    else
    tpreturn(TPFAIL, 0,(char*)sendbuf,0L,0);     
    }

    guorke,
    I suggest you add userlog to the server to see the tpreturn situation and compare with tpcall's return code. iSucess is -1 means something wrong, other values such as 64, 128... means the tpcall's execution scucessfully and they are code related with internal handler index.
    Wayne

  • STMS: Return Code 8: The program is not Unicode-compatible

    Dear SAP Friends,
    I am currently importing some TRs on our DEV system. However, I am getting some error messages. The log says "The program (name of program) is not Unicode-compatible, according to its attributes."
    Is there a fix for this?
    Your prompt response is highly appreciated. Thank you very much in advance.
    Best Regards,
    Albert

    Dear,
    Use the transaction 'UCCHECK' to set the unicode flag.
    Please check the below link as mentioned.
    http://www.sap-img.com/abap/how-to-delete-an-editor-lock.htm
    Re: The program "Z...." is not Unicode-compatible, according to its program att
    Regards,
    R.Brahmankar

  • How to generate the return code automatically through EP

    Hello all,
               I have created a transaction Iview and i am calling transaction SE16 to which i am passing application parameter as the table name which i want to see.Now i am getting the SE16 screen with the table name successfully passed on to the input field. But i want the Iview to process this screen also so that i dont have to press enter to see the next screen. i want this iview to process the SE16 screen directly and show me the next screen. I dont know how can i pass the return code parameter which will directly execute the table name entered in SE16 screen.suppose my table name is "ABC" and i have set the application parameter as DATABROWSE-TABLENAME=ABC&~okcode=ANZE where ANZE is the sy-ucomm value.Plz reply at the earliest.
    Thanks and regards,
    Alpa Desai.

    Madden wrote:
    I do think OOP can only complement procedural programming,Wrong. They don't have to have anything to do with each other.
    but I just wish for my app to exit the same way whether I return or not an exit code.
    I mean we are talking about the implementation, or the system, here.
    Simply let it end and the "return code" will be 0.
    But ... is there a way for a Java application to execute another Java application ? The analog for CreateProcess, but in the Java world ?Start a thread and call the main method of the class that kicks it off with the necessary arguements is one way.
    When an Java app executes another Java app will a new VM be created ?Runtime.getRuntime().exec() and call java ...... Which will, obviously, start a new VM.
    Is ther an internal way, for this that will work inside the same VM ?See the thread situation above.
    How will the parent get the exit code from the child ?If called with Runtime simply call System.exit and then (from the original program) evaluate the return code (see the Runtime and Process classes).
    If called in a thread, without using Runtime.exec any where, then you use a return at the end of the main method, but, if you are looking for a "return code" from an entire application, you're probably looking at Runtime.exec anyway. Otherwise, you are better of writing it so that it can be used in a real OOP manner (i.e. you don't have to call the main method of another application at all, you simply start instantiating and using the classes involved), in which case, a "return code" from the "application" is meaningless.
    >
    Timothy Madden,
    RomaniaEdited by: masijade. on Nov 19, 2007 10:18 AM

  • Getting the return code of an exec-called program

    I'm trying to simply call an .EXE (Win32 console-) application from LabView 5, which works fine with EXEC. The problem is, that I cannot query the return code of the program afterwards. (The error output is always 0, no matter what the program has returned.) Anyone knows a nice short solution to that? Thanks!

    Hi Ritter,
    Somehow I think I may be missing something.
    (after looking around)
    What version of LV are you using?
    I am guessing 5.1 or earlier.
    LV 6 EXEC has standard output available.
    If you are using LV 5.1.1 or so, I can only recomend the the re-directed solution.
    If file system is issue how about using a complete file spec starting with "c:"? Do you expect to be running on a machine that does not have a c drive?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to evaluate 64 bit return code from realtime sequence

    Hello,
    I'm using the ExecuteAsync method of the StimulusProfile Class to execute a stimulus profile. The stimulus profile only contains one entry: A call to a realtime sequence.
    After the profile has finished executing I retrieve the return code of the realtime sequence by opening the result XML-File. 
    The xml-node of intrest might light look this:
    <TestResult ID="ReturnValue">
       <TestData>
              <Datum xsi:type="unsignedInteger" value="2147516544" xmlns="http://www.ieee.org/ATML/2006/Common" />
        </TestData>
    My problem is that the "value" attribute seems to be limited to 32 Bit. The upper 32 Bit of my 64 Bit return code are simply cutoff. How do I get the complete return code?
    After I ran into this problem when using the .NET API, I tried to do a "NumericBoundsCheck" evaluation using the Stimulus Profile Editor. As expected, it doesn't work correctly when working with values > 2^32 - 1.
    I'm using VeriStand 2012.
    Thanks

    Hello Gregor,
    I don't think it's necessary to post example code. Just return a value >= 2^32 from a realtime sequence and you will see that the evaluation in the realtime stimulus editor does not work correctly. Also, in the resulting XML-File, the return value will be truncated to 32 Bit.
    Meanwhile I have found that this this issue has already been discussed on this board (http://forums.ni.com/t5/NI-VeriStand/ATML-return-value-does-not-return-Uint64/m-p/2848796#M3649), but no solution was proposed so far.  
    I now run my realtime sequence using the ClientAPI. This allows me to evaluate the full 64Bit.
    Regards
    Krid

  • Return Code after Command Line (File Adapter)

    Hello all,
    i execute in the File Receiver Channel a Shell Script.
    Now i need a solution, when an error happens. The script returns an error code and i want that the Adapter Monitor is showing this information/error.
    How can i enable this?
    Or is there an other possibility to monitor this??
    many thanks for your help
    ilka

    Hi IIka,
    I have not tried this but I think
      The return code of the script cannot be shown in monitor, because the call ends (does not expect a response) once the file adapter is called.
    May be you can capture the errors in a seperate file and
    use that as a log.
    I am not sure if there is anyother way
    also check this blog /people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
    Regards
    Vishnu

  • Throws Exception in main and return code for JVM

    Hello,
    Could someone tell me what the following statement :
    public class Foo {
    public static void main(java.lang.String[] args) throws Exception {
    // Some source code
    is supposed to do with the return code of the VM when the Exception is thrown.
    I mean what num�ric value is supposed to return the following instruction :
    java -classpath ... com.app.Foo
    Because my Java program is run in a script shell which is supposed to get a return code which as to be interpreted.
    Off course I am not allowed to do the test myself because this script shell is executed on a production server ...

    I don't know what the return code will be, but you could do this:
    public static void main(String[] args)
      try
        // ...Run the program here...
      catch (Exception e)
        // Print the stack trace
        e.printStackTrace();
        // Exit with an error code
        System.exit(10);
    }Jesper

  • Initialization DB-Connect Failed, Return Code  000256

    Hi,
    We would like to update the data of our Development system so we tried to do "homogeneous system copy" from our Production system. The problem is that now when we are trying to start SAP on our DEV system the disp+Work process stops and we are getting the following errors in syslog:
    SAP-Basis System: Message server disconnected
    SAP-Basis System: Initialization DB-Connect Failed, Return Code  000256
    The system we are using is:
    ECC 6.0
    Windows 2003
    Oracle database
    Can someone help us.
    Thanks in advanced.

    Problem solved.
    I run oradbusr.sql script again.
    That solved the problem.
    thanks anywhay.

  • Getting return code from remote script after Unix rsh call

    I hope one of you guys can help me with this issue. I think I've gotten the 'rsh' command to work from the CES application so that the sqr report generation can execute on a remote machine (instead of the app server machine). I'm actually doing this by having the app still execute the ces_sqr script, however, now the ces_sqr script will just have an 'rsh' command in it which will cause the actual real sqr processing to occur remotely.
    I am executing a Unix script which does a remote shell call to another script on a remote machine. The remote script sends a return code when run locally, however, how can I get the calling rsh script to get that return code?
    If I do the following in the rsh script:
    rsh -l resdev morph "/dev/bin/remote_script"
    rc=$?
    echo "$rc\n"
    then the return code that I get is not actually the return code from the remote_scrpit, but it is the return code from the rsh command that is 0 (success) because the rsh command actually executed successfully even though the remote_script could've returned something other than success. How can I get the return code from the remote_script passed back to the rsh calling script?
    Jan Miller
    [email protected]
    202-237-9584

    Please ignore the first paragraph of my previous post.

  • Return code 1073807364 (0x40010004) on Windows when using COM to script Illustrator and Photoshop

    Hi,
    I'm using python via COM to run Illustrator and Photoshop on a Windows machine and I occasionally get this return code in python from the subprocess: 1073807364 (0x40010004). I've done some googling and it seems to indicate that that's a Windows return code for "the process is still running". Is it safe for me to let the process continue when I see that return code? Or does that indicate something else?
    Thanks.

    I have similar setup to yours.
    From my point of view you need more RAM. I have 16GB. Than you will need to change in preferences to adjust memory used by PS and Illustrator. Maybe take a look at virtual memory in Windows and disable aero effects.
    Disk. It is better to have one disk for system (eg.SSD) and one for documents. But don't buy something like WD Green series that is intended for backup.
    Graphics. It is not a major player I think for your tasks, but OpenGl can speed up rendering in Photoshop and Illustrator.
    When exporting AI with layers to PSD it will always show "out of memory" unless you turn off anti aliasing.
    and the most important thing reinstall Windows after some time... It will work faster.

  • Table name for Transports return code

    Hi Floks,
    I have 400 transports list and they have recently to traget system.
    I need to know how many are ended with returncode 8.
    Is there any table where i can know the return codes of the transports?
    Regards
    Srini

    Goto STMS -- click on Import Overview (truck symbol) -- double click on your system --- it displays all the transport requests -- select heading of the status column -- click on filter button on the tool bar -- select the required status -- execute.
    Hope it satisfies your requirement.
    Veerendra.

  • Wait for a return code in a Macro

    Hello,
    I have a macro in 7.5 that submits data and then waits for a return code before moving to the new step in the macro.   I have changed the sumit code to the new EPM standard, but the macro fails at the Get Events step which is where the macro waits for the return code.  The Fail message is  "Error 1004-cannot run "Get Events". Macro may not be available in this workbook or all macros are diabled."
    My current code is:
               Dim submitrefresh As New EPMAddInAutomation
               submitrefresh.SaveWorksheetData 
              ' Application.Run "MNU_ESUBMIT_REFRESH"
    'wait for the return code from the server to know the first send completed
               Dim oExcel As Object
            Set oExcel = Application.Run("GetEvents")
                Do
                DoEvents
                        Loop While oExcel.SendResult_Status = False And oExcel.SendResult_Submitted <> -1
                        'MsgBox "Send completed on server"
    Does anyone know or have the code to fix or replace this code?   I need to get a return code from the send.
    Thanks

    Hi Debra,
    SaveWorksheetData  - is synchronous method. You don't need to wait ... the next line after  SaveWorksheetData  will be executed only after save is finished.
    Vadim

  • Return Code of sqlldr for failure or success ??

    Hi,
    I would like to know what will be the return code for the sql loader when there is rejection of single record from the data file.
    Can someone please tell me regarding return code of sqlldr so that depending on that i would be able to take some action.
    The other methods which are there to do the same :
    1) To scan the log file and check for rejected keyword
    2) To check weather any bad file is created.
    Any help would be highly appreciated.
    Thanks!!

    Check out this book : Utilities
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel P�rez

Maybe you are looking for

  • SAP XI 7.0 version

    Can any one please explain, what are new features in SAP XI 7.0 and Stability of the sytem. if any documentation available,let me know Message was edited by: Venkat Message was edited by: Venkat

  • There ain't any problem with the iphone5

    There's been lots of talk about the iphone5 battery issues.  I'm one of those unlucky iphone5 owner who got some problems with the batterie.  Some thought it was related to ios6.  I can tell you it has nothing to do with it.  I was concerned about th

  • I purchased a song off iTunes from iPhone, but has not synced with Library on home computer

    iTunes oh iPhone is not syncing with iTunes on home computer

  • XML stored as object relational fails

    We are looking at implementing a system to store Universal Business Language (UBL) 1.0 XML invoices in an XMLType column in 10g. I've registered all the requisite schemas (the UBL invoice comprises a rather complicated hierarchy of 19 individual name

  • Setup and install failure of Staroffice 8  on sparc Solaris 10

    Hello, I downloaded Staroffice 8 for sparc Solaris and I tried to install it using: #cd /var/tmp/unpack_staroffice # ./setup Running installer Exception in thread "main" java.lang.NoClassDefFoundError: install 0022 I've seen many threads on this erro