JApplet returning parameters ?

Hi there,
I've made an applet and sent String parameters to it. The applet manipulates these parameters and other stuff.
Is there any possible way to return these parameters or any other, I was kind of expecting a setParameter method like the getParameter(String), which is certainly not the case.
- Arjun

To where?Actually I'm using the applet in a JSP, that's where I'm giving the applet some parameters to work on initially.
Would it be possible to retrieve parameters back to the JSP or some other page after the applet has finished working with it.
Here's what I'm actually trying : (Not entirely SWING here)
To run the applet, I'm getting some data from a database from the server, which is retrieved by a servlet, sets a session parameter, and forwards it to the JSP which runs the applet with the appropriate parameters.
Now after a few clicks and other stuff on the applet, I would like the applet to somehow return a String, which eventually forwards the page to the servlet and update the database.

Similar Messages

  • How do I get return parameters from a stored procedure call?

    The Open SQL Statement has an option on the Advanced tab to specify a command type of 'stored procedure'. In addition to returning a recordset, a stored procedure can also return parameters (see http://support.microsoft.com/support/kb/articles/Q185/1/25.ASP for info on doing this with ADO). Is it possible to get those return parameters with TestStand? In particular, I want to be able to get error codes back from the stored procedure in case it fails (maybe there is another way).

    The Open SQL Statement step type does not fully support stored procedures. If the procedure returns a record set than you can fetch the values as you would a SELECT statement. Stored procedures require you to setup the parameters before the call and this is not yet supported. Bob, in his answer, made a reference to the Statements tab and I think that he was talking about the Database Logging feature in TS 2.0.
    If the stored procedure is returning a return value, it may return as a single column, single row recordset which can be fetched as you normally do a record set.
    Scott Richardson
    National Instruments

  • How to get the value field of the return parameters for an action step in teststand sequence file programatically using c#

                    Sequence mySequence = myEngine.NewSequence();
                    mySequence.Name = "myAction";
                    //Create new step of type Action and set Name
                    Step mystep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname, StepTypes.StepType_Action);
                    mystep.Name = "GetStringObject";
                    //Obtain the code module from the step
                    DotNetModule myModule = mystep.Module as DotNetModule;
                    //Set properties of the module
                    myModule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File, @"C:\Documents and Settings\My Documents\Visual Studio 2005\Projects\HelperClass\HelperClass\bin\Debug\HelperClass.dll");
                    myModule.ClassName = "Class1";
                    myModule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
                    myModule.MemberName = "StringObject";
                    mySequence.InsertStep(mystep, 0, StepGroups.StepGroup_Setup);
                    mySequence.Locals.NewSubProperty("StringObject", PropertyValueTypes.PropValType_Reference, false, "", 0);
                    DotNetParameterDirections reference = mySequence.Locals as DotNetParameterDirections;
                    mySequence.Locals.GetPropertyObject("StringObject", 0);
                    myModule.ClassReference = "Locals.StringObject";
                    myModule.LoadPrototypeFromMetadataToken(385875969, 0);
    After this I am not able to proceed.herewith attached documents contain screenshot of teststand file marked red is to be solved. How to define the value field of the return parameters?
    Attachments:
    HelperClass.cs ‏1 KB
    ex1.gif ‏2305 KB

    Please see my answer to your question on page two of the following forum thread:
    Programmatically generating DotNet Steps in TestStand
    Manooch H.
    National Instruments

  • Error - "All JCo return parameters are initial"

    Hi,
    I got this error on my production XI server for about two hours and then everything started to work again.  Does somebody have an idea of what could be the cause of this error? 
    (All JCo return parameters are initial)
    Rgds,
    Yves

    Thanks for your response, I will check with SAP.  This is not acceptable!  There are lots of traffic in our R/3 world between QAT and PRD.  I cannot just stop the messages (XI to PRD) when it's happening.  This is really strange.  I'm sure there is a way to fix this.  I will get back to you when I will find the way.
    Thanks
    Yves

  • All JCo return parameters are initial

    Hi,
    I'm getting "All JCo return parameters are initial" on a SOAP->XI->R/3 scenario.  What could  be the cause?  This is not all the time, it's working 99.5% of the time!
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">INITIAL_JCO_RETURN</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>All JCo return parameters are initial</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Rgds,
    Yves

    Thanks for your response, I will check with SAP.  This is not acceptable!  There are lots of traffic in our R/3 world between QAT and PRD.  I cannot just stop the messages (XI to PRD) when it's happening.  This is really strange.  I'm sure there is a way to fix this.  I will get back to you when I will find the way.
    Thanks
    Yves

  • How to pass value for value field of return parameters for an action step in teststand sequence file programatically using c#

    I used a method LoadPrototypeFromMetaDataToken(token,options) to load the return type parameters. I am unable to set the value field in the return parameters for an action step in teststand sequence file programatically using C#.How can I do that.

    Continue here

  • Get OUTPUT and RETURN parameters from a stored procedure

    I have a stored procedure (MS SQL Server 2008 R2) like the following example.
    Using Database Connectivity I can get the OUTPUT parameters but I can't get de RECORDSET DATA and de RETURN value.
    Does anybody knows how to do that?
    CREATE PROCEDURE [dbo].[TS_Teste] (@T057_S_NOMEMAQUINA VARCHAR(20), @STATUS INT OUTPUT, @ERRO NVARCHAR(500) OUTPUT)
    AS
    BEGIN     
      DECLARE @TABLE TABLE(CODIGO INT, DESCRICAO VARCHAR(30))
      INSERT INTO @TABLE VALUES (51, 'A')     
      INSERT INTO @TABLE VALUES (52, 'B')
      INSERT INTO @TABLE VALUES (53, 'C')
      SELECT * FROM @TABLE
      SET @STATUS = 1
      SET @ERRO = 'Nenhum erro!'
      RETURN 0
    END
    Solved!
    Go to Solution.
    Attachments:
    SQL SP Return.vi ‏29 KB

    I finaly found what was wrong... It was necessary an only aditional line in the stored procedure. It should be like that:
    CREATE PROCEDURE [dbo].[TS_Teste] (@T057_S_NOMEMAQUINA VARCHAR(20), @STATUS INT OUTPUT, @ERRO NVARCHAR(500) OUTPUT)
    AS
    BEGIN    
      SET NOCOUNT ON;                                                                                               -- NEW LINE!!!
      DECLARE @TABLE TABLE(CODIGO INT, DESCRICAO VARCHAR(30))
      INSERT INTO @TABLE VALUES (51, 'A')    
      INSERT INTO @TABLE VALUES (52, 'B')
      INSERT INTO @TABLE VALUES (53, 'C')
      SELECT * FROM @TABLE
      SET @STATUS = 1
      SET @ERRO = 'Nenhum erro!'
      RETURN 0
    END

  • SP return parameters in select statment

    how is it possible to return SP parameters(north, east etc) in select query under SP
    your help is appreciated.

    Hi,
    user8723008 wrote:
    how is it possible to return SP parameters(north, east etc) in select query under SP
    PROCEDURE sp_a_DetailOutput
    north IN Float,
    east IN Float,
    south IN Float,
    west IN Float,
    id IN varchar2,
    resultData OUT sys_refcursor
    ) As
    begin
    declare lid number := to_number(id);
    Begin
    for rec in (select geometry from acd a where a.id=lid)
    loop
    OPEN resultData FOR
    SELECT w.id, w.description, w.geometry, north as n, east as e FROM Acr w
    where SDO_NN(w.GEOMETRY, (rec.geometry))='TRUE' AND ROWNUM<=1;
    end loop;
    END;
    end sp_a_DetailOutput;
    your help is appreciated.What's the problem with the code you posted?
    Any place where you can use an expression in a SQL statement, you can use a variable, including an argument. Just make sure that the variable name can't be mistaken for a column name. (E.g, if the table has a column called north, then you'd better name the argument something else, such as p_north.)
    For example, if you pass 54.666667 as the argument north, then the code you wrote as
    SELECT  north   AS n ...is executed as if you had written:
    SELECT  54.666667   AS n ...I don't think your problem really has anything to do with Oracle Spatial.
    Can you post a similar problem, that doesn't involve Spatial, just a PL/SQL procedure that needs to use its arguments in a query? Post CREATE TABLE and INSERT statements for some sample data, and post what you want the procedure to do given some different arguments and that data.
    If your question really is specific to Spatial, then post it in the Spatial forum:
    Spatial
    and mark this thread as "Answered".

  • How to return Parameters values as a column in a query?

    Hi All,
    I have number of parameters in a report.
    I need to return its interred values as a column in a query to use this column in a chart.
    I want this column to be the second one in this query:
    SELECT ROWNUM
    FROM ALL_OBJECTS
    WHERE ROWNUM <= 10
    That is if there is any way to use these parameters directly as a column in the chart no need for the previous statement.
    Note: I am using Reports 6i

    Dear sir
    You can enter parameter as column in query like
    select :parameter p1, &hexadecima_paramataer p2, empcode
    from emps;
    that query make parameter as query column .
    &hexadecimal paramater can refer to database column of table emps
    and :paramater can refer to static string

  • Regarding function modules return parameters

    hi experts,
    thnx in advance
    i have requirement to make a rfc enabled function mudule, that will return some messages mat be error or information , such as 'read is implausible in sap-isu' etc, so how can make the export parameters of  this fm, so that it return such mesages thru export parameters but not thru exceptions
    pls help

    either you can create a string table as return parameter which will hold your messages, then you can display them.
    or a better method can be as seen in BAPIs..
    a table of type BAPIRETURN.
    just goto SE37, open any BAPI (BAPI* - then F4).
    see in the table of type BAPIRETURN.
    here you can pass the message details ... and use them from where you have called it.

  • Return parameters and error handling in bapi

    i am checking one codition. if that condition satisfies, to give a message i have to fill the return parameter.
    For this i have used the function module BALW_BAPIRETURN_GET2 and in this RETURN parameter is of structure BAPIRET2.
    But my requirement is, i want a function module to give messagewhich uses RETURN parameter of type BAPIRETURN1.
    could you please help me if u have any idea.

    Hi Keshav,
    yes, its a custom function module..
    i am sending the code
    FUNCTION zbapi_hr_record_time.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(EMPNO) LIKE  ZBAPIP9090-EMPNO
    *"     VALUE(EDATE) LIKE  ZBAPIP9090-EDATE
    *"     VALUE(NO_OF_HOURS) LIKE  ZBAPIP9090-NO_OF_HOURS
    *"     VALUE(COMMENTS) LIKE  ZBAPIP9090-COMMENTS
    *"     VALUE(EENDDA) LIKE  ZBAPIP9090-EENDDA DEFAULT SY-DATUM
    *"     VALUE(EBEGDA) LIKE  ZBAPIP9090-EBEGDA DEFAULT SY-DATUM
    *"  EXPORTING
    *"     VALUE(RETURN) LIKE  BAPIRET2
    DATA : p9090 LIKE p9090,
           opern LIKE psyst-ioper VALUE 'INS'.
    DATA : it_pa9090 LIKE pa9090 OCCURS 0 WITH HEADER LINE,
           wa_hours(2) TYPE c.
    SELECT no_of_hours FROM pa9090
                       INTO CORRESPONDING FIELDS OF TABLE it_pa9090
                       WHERE empno = empno
                       AND   edate = edate.
    CLEAR wa_hours.
    LOOP AT it_pa9090.
    wa_hours = wa_hours + it_pa9090-no_of_hours.
    ENDLOOP.
    wa_hours = wa_hours + no_of_hours.
    IF wa_hours GT 24.
    *CALL FUNCTION 'BALW_BAPIRETURN_GET2'
    *  EXPORTING
    *    type             = 'E'
    *    cl               = 'ZHR_TIME'
    *    number           = '000'
    **   PAR1             = ' '
    **   PAR2             = ' '
    **   PAR3             = ' '
    **   PAR4             = ' '
    **   LOG_NO           = ' '
    **   LOG_MSG_NO       = ' '
    **   PARAMETER        = ' '
    **   ROW              = 0
    **   FIELD            = ' '
    * IMPORTING
    *   return           = return
    ELSE.
    ENDIF.
    ENDFUNCTION.
    in the aboove code, after IF condition (IF wa_hours GT 24.) instead of using BALW_BAPIRETURN_GET2 function module i want an alternative function module to return message. here in BALW_BAPIRETURN_GET2, RETURN is declared as BAPIRET2,  but i want it as of BAPIRETURN1 structure. so could you please tell me if u know any other FM to RETURN message which uses BAPIRETURN1 structure.

  • RFC is not returning parameters

    Hi All,
    I have written an Java code in my UDF to call the RFC. Basically i am sending some Import parameters to RFC and getting the Export parameters from the RFC. My RFC structure is like this.
    XX_RFC
        IMPORT
           a
           b
        EXPORT
           c
           d
           e
    My UDF code (Queue) is :
    AbstractTrace trace;
    java.util.Map map;
    map = container.getTransformationParameters();
    trace = container.getTrace();
    trace.addDebugMessage(" XX_RFC lookup started ");
    String strSystem =  (String) map.get(StreamTransformationConstants.RECEIVER_SERVICE);
    String[] tagNames = { "a", "b"};
    ArrayList arrayList = new ArrayList();
    int iNoOfValuesToBeSet = a.length;
    try {
         RFCLookup rfcl = new RFCLookup("XX_RFC");
         rfcl.setConn(strSystem,"RFCLookUp_Receiver");
         arrayList.add(a);
         arrayList.add(b);
         rfcl.setTable(arrayList, "IMPORT", tagNames, iNoOfValuesToBeSet);
         trace.addInfo(" Table set. Going to invoke RFC.");
         trace.addDebugMessage("\n Start of Request XML \n" + rfcl.getRequestRoot() + "\n *** End of Request XML *** \n");
         rfcl.invoke();
         trace.addInfo("RFC invoked. Parsing the Response.");
         trace.addInfo("\n Start of Response XML \n" + rfcl.getResponseRoot() + "\n *** End of Response XML *** \n");
         strArrTempOut1 = rfcl.getParam("EXPORT", "c");
         strArrTempOut2 = rfcl.getParam("EXPORT", "d");
         strArrTempOut3 = rfcl.getParam("EXPORT", "e");
    }catch (Exception e) {
         trace.addWarning("!!! Exception caught !!! " + e+ " : \n" + e.toString());
    finally
    I have declared all the global variables in the Java section and i am writing an UDF for using those global variables.
    the UDF (Queue) is :
    if(strArrTempSTRASOut == null)
      result.addValue("");
    else
    for (int i=0;i<strArrTempOut1.length;i++)
                         result.addValue(strArrTempOut1<i>);
    When i call the RFC with a valid data, my output XML is not getting formed actually. But, the RFC is working fine when i check it in the SAP system. Any help would be greatly appreciated.
    regards,
    Sherin Jose P

    Hi Sherin,
           Please refer the following blog to acehive your Functionaliy.Its very simple to use and .Because the lookup code gives you RFC response  as XML. apply the DOm parisng code to get the desired value from the output XML structure.Follow the article and use the following piece of code in the 5th step of the code given in the article.
    http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417400)ID0702528050DB00626426829334031456End?rid=/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439&overridelayout=true
    *5. Execute lookup.*
           Payload result = accessor.call(payload);
           InputStream in = result.getContent();
         /*  out = new ByteArrayOutputStream(1024);
           byte[] buffer = new byte[1024];
           for (int read = in.read(buffer); read > 0; read = in.read(buffer))
           out.write(buffer, 0, read);
           content = out.toString();*/  you can avoid the commented code
           DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
           DocumentBuilder builder = factory.newDocumentBuilder();
           Document document = builder.parse(in);
           NodeList list = document.getElementsByTagName("C"); //same way for D, E
           Node node = list.item(0);
           if (node != null) {
                node = node.getFirstChild();
                if (node != null) {
                      Cvalue = node.getNodeValue(); //Desired value of C in string
    Thanks,
    Ram.

  • Workflow return parameters using BAPIRET1

    Hi,
    I am currently working on an existing workflow created previously by another person.
    In this workflow, there is a pop up window with checked boxes for user to select.
    The selected checked box will then be passed to the next step in the workflow.
    However, i am not able to capture this value and pass it on to the next step in the workflow.
    So i am suspecting that there is this return parameter field (reference to BAPIRET1) which could be the cause of it.
    Appreciate if any expert can offer some advises, thanks

    Make sure the method of the step activity has "Result" parameter enabled.
    Regards, IA

  • Transaction Launcher : How to get return parameters from an external URL

    Hello,
    We need to launch an external URL in the Web Client UI. After the URL is launched, the user does some processing which results in some output values. These value have to be passed back to the Web Client UI and become a part of the quotation he is creating.
    We are able to launch the URL using the Transaction Launcher. But we are not able to find a way to get the output values from the external URL to the Web client UI.
    Please suggest any approach for this. It is OK even if we need to use an intermediate BSP to launch the external URL.
    Regards
    Ajay

    hi ajay
    I had a similar requirement , when the user clicks on button I want to launch the  External URL , can you please let me know how to launch the external url when the user cliks on button
    Thanks & Regards
    madhu

  • How to pass the value of the return type parameters in teststand sequence file programatically through c#

    I have used the method LoadProtoTypeFromMeteDataToken(tokenvalue,options).with this i cant set the value in the return parameters. How can I pass the value.with the above method it displays parameter Name,Type,In/Out. how can i set the value in the return parameters.

    Or here
    http://forums.ni.com/ni/board/message?board.id=330&thread.id=26979
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

Maybe you are looking for