Return values from a popup to calling form and refresh page?

Hi,
Following thread Re: Popup report window from a PL/SQL proc.? I'm trying to pass the record values(checkbox + record values) to the parent windows (the retruned value is always a unique record). I was able to set the variables values with a procedure ( I vierfied in session state), but I'm unable to pass these values to the parent form and then refreshing the page. I tried the following thread without success : Refresh from Popup page
Any hint would be appreciated.
Thanks

Andy,
My page has the following query for the report region (PL/sql function):
DECLARE
v_string VARCHAR2(2000);
vc VARCHAR2(2):=chr(39);
BEGIN
v_string:= 'SELECT '||vc||'<img src="/i//edit_big2.gif" onClick="f_payment_clrRow(this)"></img>'||vc||' Clr, '||
' APEX_ITEM.SELECT_LIST_FROM_QUERY(1,NULL,'||vc||'SELECT TRX_DESCRIPTION, TRX_ID FROM WTL_V_TRX_PAYMENTS WHERE TRX_EFFECT='''||V_Effect||''' '||vc||',''onchange=f_payment_trx_paymode(this); '',''NO'') Description,'||
' APEX_ITEM.SELECT_LIST_FROM_QUERY(2,NULL,'||vc||'SELECT DESCRIPTION, ID_VALUE FROM GEN_PR_TYPES_ENTITY '||vc||',null,''NO'') Bank,'||
' APEX_ITEM.TEXT(3,NULL,10,10,''ondblclick=f_callMyPopup(this);'') Document,'||
' APEX_ITEM.TEXT(4,NULL,10,15) Account,'||
' APEX_ITEM.SELECT_LIST_FROM_QUERY(5,NULL,'||vc||'SELECT ID_VALUE, ID_VALUE FROM WTL_V_TRX_CURRENCY'||vc||',''onchange=f_payment_currency_rate(this);'',''NO'') Currency,'||
' APEX_ITEM.TEXT(6,NULL,15,20,''onblur=f_payment_trx_amount(this); style="text-align:right;" '') Amount, '||
' APEX_ITEM.TEXT(7,NULL, 5, 8,''onblur=f_payment_trx_amount(this); style="text-align:right;" '') Rate, '||
' APEX_ITEM.TEXT(8,NULL,15,20,''readonly style="text-align:right;" '') Trx_Amount, '||
' APEX_ITEM.HIDDEN (9,NULL), '||
' APEX_ITEM.HIDDEN (10,NULL) '||
' from dual';
return v_string;
As u can see, the 3rd item uses the ondblclick to call the js function f_callMyPopup.
My js function in the header of the page is below:
<script>
function f_open_lov2(page, request)
{ var url;
url = 'f?p='+$x('pFlowId').value+':'+page+':'+$x('pInstance').value+':'+request;
w = open(url,"winLov","Scrollbars=1,resizable=1,width=500,height=600");
if (w.opener == null)
w.opener = self;
w.focus();
function f_callMyPopup(x)
var f01;
var p = x.parentNode;
while (p.tagName != "TR")
{ p = p.parentNode;}
var inputs = p.getElementsByTagName("INPUT");
var zz;
for (zz = 0; zz < inputs.length; zz++)
{if (inputs[zz].name = 'f01')
{f01 = inputs[zz].id;}
f_open_lov2(17,97);// I sent 97 as an example.
</script>
and the js in the custom popup page (17) has the following function which is executed when the user selects one of the rows using a button.
<script>
function f_return_value(cstring)
opener.document.getElementById("f03").value = cstring;
close();
</script>
When f_return_value is executed, the selected value is pasted in the first row of the parent page.
Sorry , i don't know what do you mean when you say to pass the id to the custom popup page.
Thanks again,
Fernando
Edited by: fnovilloes on 16/09/2009 12:01 PM
Edited by: fnovilloes on 16/09/2009 03:56 PM
Edited by: fnovilloes on 16/09/2009 03:59 PM

Similar Messages

  • Trying to Assign Return Value from DB Adapter that calls a Database Functio

    We have a BPEL process in which we have set up a DB Adapter to call a function in the Database and return the value (the actual value being returned is Workers=14 Hours=36 Vehicles=2). When we try to assign that returned value to a string value which will show in our task list , the below seems to assign the follwing -<crewsize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <GCS_LAB_VEH_CNT_FUNC xmlns="">Workers=14 Hours=36 Vehicles=2
    </GCS_LAB_VEH_CNT_FUNC>
    </crewsize>, and then whe it shows in the task, crewsize is blank.. What are we doing wrong??
    Bonnie and Rox
    Assign_gcs_veh_hrs
    [2008/01/31 09:37:10] Updated variable "Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable"less
    -<Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    -<InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/EPAGES/GCS_LAB_VEH_CNT_FUNC/">
    <P_PROJ_ID>85504
    </P_PROJ_ID>
    <P_PHASE_ID/>
    <P_PE_ID/>
    </InputParameters>
    </part>
    </Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    [2008/01/31 09:37:10] Updated variable "Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable" More...
    -<Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    -<InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/EPAGES/GCS_LAB_VEH_CNT_FUNC/">
    <P_PROJ_ID>85504
    </P_PROJ_ID>
    <P_PHASE_ID>1
    </P_PHASE_ID>
    <P_PE_ID/>
    </InputParameters>
    </part>
    </Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    [2008/01/31 09:37:10] Updated variable "Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable"less
    -<Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    -<InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/EPAGES/GCS_LAB_VEH_CNT_FUNC/">
    <P_PROJ_ID>85504
    </P_PROJ_ID>
    <P_PHASE_ID>1
    </P_PHASE_ID>
    <P_PE_ID>1
    </P_PE_ID>
    </InputParameters>
    </part>
    </Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    Invoke_gcs_veh_hrs
    [2008/01/31 09:37:13] Invoked 2-way operation "get_gcs_veh_hrs" on partner "get_gcs_veh_hrs".less
    -<messages>
    -<Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="InputParameters">
    -<InputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/EPAGES/GCS_LAB_VEH_CNT_FUNC/">
    <P_PROJ_ID>85504
    </P_PROJ_ID>
    <P_PHASE_ID>1
    </P_PHASE_ID>
    <P_PE_ID>1
    </P_PE_ID>
    </InputParameters>
    </part>
    </Invoke_gcs_veh_hrs_get_gcs_veh_hrs_InputVariable>
    -<Invoke_gcs_veh_hrs_get_gcs_veh_hrs_OutputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="OutputParameters">
    -<db:OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/EPAGES/GCS_LAB_VEH_CNT_FUNC/">
    <GCS_LAB_VEH_CNT_FUNC>Workers=14 Hours=36 Vehicles=2
    </GCS_LAB_VEH_CNT_FUNC>
    </db:OutputParameters>
    </part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]
    </part>
    </Invoke_gcs_veh_hrs_get_gcs_veh_hrs_OutputVariable>
    </messages>
    Assign_gcs_veh_hrs_out
    [2008/01/31 09:37:13] Updated variable "outputVariable"less
    -<outputVariable>
    -<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
    -<BranchCritChg1ProcessResponse xmlns="http://xmlns.oracle.com/BranchCritChg1">
    <moveid/>
    <customer/>
    <packcount/>
    <carrierref/>
    <transferee/>
    <projid>85504
    </projid>
    <weight/>
    -<crewsize xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <GCS_LAB_VEH_CNT_FUNC xmlns="">Workers=14 Hours=36 Vehicles=2
    </GCS_LAB_VEH_CNT_FUNC>
    </crewsize>
    <phaseid>1
    </phaseid>
    <miles/>
    <vehicles/>
    <eventid>1
    </eventid>
    <authority/>
    <liftvans/>
    <ritsreg/>
    <goodstype/>
    <containernum/>
    <request1>Start Time: 03/31/2007 02:25 PM
    </request1>
    <current/>
    <request2/>
    <request3/>
    <request4/>
    <request5/>
    <request6/>
    <request7/>
    <comments/>
    <dispatch_group/>
    </BranchCritChg1ProcessResponse>
    </part>
    </outputVariable

    Hello Rajesh,
    I do not know if this is the problem in your case, but I would look at the source XML:
    <db:OutputParameters xmlns:...
    As you can see, the namespace for the db:OutputParameters is db, while you are referring to ns11:OutputParameters in your xpath expression;
    getVariableData('InvokeGetItems_GetItemDetails_OutputVariable_1','OutputParameters','/ns11:OutputParameters/ns11:P_ITEMNAME_O')
    So I would try to change ns11:OutputParameters to db:OutputParameters, and see if you get lucky?
    Cheers,
    Rune

  • Getting Return values from RFC function call with visual basic

    Hi,
    I am creating a sample app to connect to a SAP system which call its RFC functions created with ABAP. It was known that the function will return more than 1 return values.
       SAP Function name ==> "ZFMTP_RFC_GET_RESULT"
            Export parameters (to SAP):
                    - Student Name [char 10]         ==> "STUNAME"
                    - Student ID         [char 20]        ==> "STUID"
           Return values (From SAP):
                    - Results [char 10]        ==> "RESULT"
                    - Remarks [char 200]        ==> "REMARKS"
    i have managed to get sample codes for connecting and call a RFC function with vb but they only get a return value. How do i retrieve multiple return values like the above function "RESULT" and "REMARKS"?
    Here's my vb code to accessing the function
            Dim R3 As Object
            Dim FBFunc As Object
            Dim returnFunc As Boolean
            Dim connected As Boolean
            R3 = CreateObject("SAP.Functions")
            R3.Connection.Client = "000"
            R3.Connection.User = "BCUSER"
            R3.Connection.Password = "minisap"
            R3.Connection.Language = "DE"
            R3.Connection.System = "dtsystem"
            R3.Connection.Applicationserver = "xxx.xxx.xxx.xxx" 
            connected = R3.Connection.Logon(0, True)
            If connected <> True Then
                MsgBox("Unable to connect to SAP")
            End If
            FBFunc = R3.add("ZFMTP_RFC_GET_RESULT")
            FBFunc.exports("STUNAME") = "Jonny"
            FBFunc.exports("STUID") = "12345"
            returnFunc = FBFunc.Call() <<== How do i get the return value? or RESULT and REMARKS of the RFC Function?
    thanks alot.
    Edited by: Eugene Tan on Mar 4, 2008 7:17 AM

    Hi Gregor,
    Thanks for the link....i am having some doubts with the codes, hope you can clarify them for me if you know the codes..
    Below is the code snippet.
    Set impReturn = CHPASS_FN.Imports("RETURN")  <<=== is RETURN the standard keyword to get a                                                                                return object?
      expPassword.Value = currpass
      expNewPass.Value = newpass
      expFillRet.Value = "1"
    ''' Call change password function
      If CHPASS_FN.Call = True Then
        outFile.Write (", Called Function")
        Message = impReturn("MESSAGE") <<==== So if i have 3 return values..i just replace with the return                                                               value variable names?
        outFile.WriteLine " : " & Message
      Else
        outFile.Write (", Call to function failed")
      End If
    thanks alot...all your help is very appreciated.

  • Can we Return values from Java Bean to Form

    Hi All,
    I have a Bean area defined on a Form. The Bean Area consists of a Text field which gets populated by path of a file selected using Browse button.
    Can I return this path as a parameter from the Java Bean to the form? Is there any function for this?
    Regards,
    Prathima.

    If you designed your bean to offer the ability to exact info/data from it, then yes you can get a value from the bean into the form (pl/sql) - using Get_Custom_Property
    Refer to the following which is a good example of how to build a bean. Specifically look at page 12 where is shows how to use Get_Custom_Property.
    This is NOT an Oracle supported or provided document or web site, but it is a very good example.
    http://forms.pjc.bean.over-blog.com/ext/http://sheikyerbouti.developpez.com/forms-pjc-bean/first-bean/first_bean.pdf

  • Returning values from one screen to another

    Hi All,
    I have a case where I have a person_name field on a form but want the users to get that value from a popup window that is actually a report on the people table with these columns :
    First name, last name , person_id ( hidden and has a link on it to return that value back to the caller screen).
    No I wrote all the code to invoke that popup from the caller form, popup the people search report, when you click on the person ID link it performs the following :
    <script language="javascript">
    function accept_value(val){
    target1 = document.getElementById("P114_CITEM1").value; //CITEM1 holds the caller field name so dont worry about it
    top.opener.document.getElementById(target1).value=val;
    top.close();
    </script>
    and in the link properties I give this :
    onClick="accept_value(#PERSON_ID#);"
    and this works fine and returns the person_id to the caller form BUT
    MY QUESTION IS:
    is there a way to return the first name, last name to a text field in the FORM?I mean this link allows me to return only the #PERSON_ID#, but is it possible to pass the #last_name# in the same link for example ?
    I tried
    onClick="accept_value(#PERSON_ID#,#LAST_NAME#);" but it always fails and says invalid character !! (( after I changed the accept_value() function to have 2 parameters ))
    any clue or hint?

    It is possilble to return multiple values to multiple items on your form. I have similar setup (popup box shows a report of employees; users clicks a report row; empid and last_name are returned to the form). I did not use #LAST_NAME# link. I created the link using SQL code. The first column of the report displayed a link called "Select", which passed empid and last name back to the form. Try creating the link using SQL.
    If you need additional help, please let me know.
    Thanks.
    Ravi

  • Getting values from a function module called in a WDA method

    Friends,
    I am trying to execute a function module from WDA.
    I have created a service call for the function module. The function module takes values from the user, looks up the corresponding values of another field and returns the values in an internal table.
    I am using the "Method Call in Used Controller" of WD Code wizard to call the function module.
    When the event handler method containing the call to the function module is executed, nothing happens.
    I am not sure how to pass values to the function module and to get the return values from the function module.
    I am new to using function modules from WDA. Please help me out.
    Thanks and Regards.

    Rashmi,
    Is the function module intended to collect input data from the UI and process it? - Yes
    If yes, then the input (importing parameter) to the Function Module is a table of values (which should be ideally from the context mapped to the Table UI Element). - The importing parameter is a single value NOT a table and is mapped to the view context.
    Now this table UI Element is bound to the view controller context , which in turn is mapped to the component controller context. And you are indeed being able to read the value of this internal table in the component controller method where the function module is being called by means of get_static_attributes_table (Is this right? - Yes, I am able to read the table of values that is passed from the component controller view to form view context by using get_static_attributes_table.
    Or are you being able to read it in the event handler method of the view controller and not being able to read it in the component controller method) -
    The function module takes a single value as import parameter and returns a table of values as return value.
    It works fine when no importing parameter is being used and returns the table of values that is getting passed from component controller context to form view context when i am able to read it using get_static_attributes_table.
    Now the question is: how to pass the import parameter value to the function module. I assumed since the importing parameter is a context node (like the return values are), i should set the value ( captured when the user enters the value in the form) to the importing parameter context attribute using set_attribute method. Since it is mapped to the component controller context, i assumed it will get passed and the method will take it as input parameter.
    Let me know if my assumptions are correct regarding passing the import parameters and what is missing here.
    Thanks and Regards.

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • How to get return value from java and read by other application?

    i want to read return value from java and the other application read it.
    for example:
    public class test_return {
        test_return(){
        public int check(){
            return 1;
        public static void main(String args[]){
           new test_return().check();
    }from that class i make as jar file. How to read the return value (1) by other application?
    thx..

    If your installer is requiring some process it invokes to return a particular value on failure, then the installer is seriously broken. There are a bazillion commands your installer could invoke, and any of them could fail, which in turn could invalidate the entire install process, and any of them could return any value on failure. The only value that's consistent (in my experience) is that zero means success and non-zero means failure, with specific non-zero values being different in different programs.
    About the only control you have over the JVM's exit code is that if your main method completes without throwing an exception, the JVM will have an exit code of 0, and if main throws an exception (either explicitly or by not catching one thrown from below), it will be non-zero. I'm not even sure if that's guaranteed, but I would guess that's the case.
    EDIT: I'm kind of full of crap here. If you're writing the Java code, you can call System.exit(whatever). But nonetheless, if your installer requires certain exit codes from any app--java or otherwise--you have a problem.
    Edited by: jverd on Oct 29, 2009 1:27 AM

  • How to get return values from stored procedure to ssis packge?

    Hi,
    I need returnn values from my stored procedure to ssis package -
    My procedure look like  and ssis package .Kindly help me to oget returnn value to my ssis package
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [TSC]
    -- Add the parameters for the stored procedure here
    @P_STAGE VARCHAR(2000)
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    -- Insert statements for procedure here
    --SELECT <@Param1, sysname, @p1>, <@Param2, sysname, @p2>
    truncate table [INPUTS];
    INSERT
    INTO
    [INPUTS_BASE]
    SELECT
    [COLUMN]
    FROM [INPUTS];
    RETURN
    END
    and i am trying to get the return value from execute sql task and shown below
    and i am taking my returnn value to result set variable

    You need to have either OUTPUT parameters or use RETURN statement to return a value in stored procedures. RETURN can only return integer values whereas OUTPUT parameters can be of any type
    First modify your procedure to define return value or OUTPUT parameter based on requirement
    for details see
    http://www.sqlteam.com/article/stored-procedures-returning-data
    Once that is done in SSIS call sp from Execute SQL Task and in parameter mapping tabe shown above add required parameters and map them to variables created in SSIS and select Direction as Output or Return Value based on what option you used in your
    procedure.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Returning Values from Methods

    We ran across some code in one of our classes that calls a private method. That method returns an object, but the code calling that method does not capture it. What happens to the return value in a case like this? I would have thought that to be a syntax error.
    Example:
    myMethod(myObject, i);  // Call to myMethod without capturing its return value.
    private myObject myMethod(MyObject myObject, int i) {
       return myObject;
    }What happens to the return value from myMethod?

    (void) f(arg1, ..., argN); There's no
    provision in Java to allow you express that same
    intention.
    What?!?!?public void f(arg1, ...,
    argN);
    In the C code, function f was defined as having a non-void return type.
    The statement
    (void) f(arg1, ..., argN);shows the caller is knowing ignoring that returned value.

  • Capture Return Value from Contextual Events Subscriber Method

    Hi
    I was wondering if anyone knew whether you could capture the return value from a method exposed as  a subscriber for a contextual event?
    Requirement: We have 2 bounded task flows (parent-child) with the child task flow embedded as a region in a view activity in the parent task flow.  Based on an action in the parent task flow we raise a contextual event which calls an application module method exposed as a data control within the child task flow.  We need to be able to capture the return value from the method on the managed bean.
    Example method within child task flow application module:
    public String contextualEventSub(){
      Return "Y";
    So here we would like to capture String value when the event is raised by the event producer (parent task flow action).
    Within the Event Map on the page definition of the parent task flow view activity it is possible to set parameters to pass to the subscriber but it’s not obvious where you can capture the return value.
    Many thanks!
    Technology:
    ADF 11.1.1.7 – ADFbc with ADF task flows and page fragments

    Check this URL it may help you
    One size doesn't fit all: JDev 11g: Programmatic Contextual Events

  • How to get return value from Java runtime.getRuntime.exec?

    I'm running shell commands from an Oracle db (11gr2) on aix.
    But, I would like to get a return value from a shell comand... like you get with "echo $?"
    I use a code like
    CREATE OR REPLACE JAVA SOURCE NAMED common."Host" AS
    import java.io.*;
    public class Host {
      public static int executeCommand(String command) {
        int retval=0;
        try {
            String[] finalCommand;
            finalCommand = new String[3];
            finalCommand[0] = "/bin/sh";
            finalCommand[1] = "-c";
            finalCommand[2] = command;
          final Process pr = Runtime.getRuntime().exec(finalCommand);
          pr.waitFor();
       catch (Exception ex) {
          System.out.println(ex.getLocalizedMessage());
          retval=-1;
        return retval;
    /but I do not get a return value... because I don't know how to get return value..
    Edited by: user9158455 on 22-Sep-2010 07:33

    Hi,
    Have your tried pr.exitValue() ?
    I think you also need a finally block that destroys the subprocess
    Regards
    Peter

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • Subprocess 33 was not successful. Master cannot read return value from S 33

    Hi All,
    We are on BI 7.0 SP 19.
    We have submitted a planning sequence in the background with automatic packaging.
    The planning sequence has two steps:
    Step 1. Z_PLNG_FUNCTION1
    Step 2. Z_PLNG_FUNCTION2
    As per automatic packaging, the system chose 0ACCOUNT for packaging.
    When submitted, each step has been submitted to 30 packages as 30 subprocesses.
    For Step 1, the log shows that All subprocesses  executed.
    For Step 2, the log shows that the subprocess 33 and 58 failed, which means subprocess #3, and # 28 for the step 2 as the subprocess is numbered in the log in combination with step 1.
    The messages in the log for the failed subprocesses are as follows:
    @5C\QError@     Subprocess 33 was not successful
    @5C\QError@     Master cannot read return value from subprocess 33
    @5C\QError@     Subprocess 58 was not successful
    @5C\QError@     Master cannot read return value from subprocess 58
    Our question is on how to find the exact cause of the subprocess failure.
    I tried to look for the details on the error messages, they have been not helpful.
    What is meant by 'Master cannot read return value from subprocess' and how to get the exact cause of the failure?
    Thanks in advance,
    Best Regards,
    - Shashi

    Shashi,
    implement the following notes and check again:1368659, 1525723, 1532061.
    Regards,
    Marc
    SAP Techology RIG

  • HST50: Unix - How Headstart calls forms and reports uppercase/lowercase from a Menu

    We are migrating a 'in production' Headstart generated application from Windows to Unix.
    We had to a little time in setting the lowercase implementation names, setting the prefs to generate lowercase file.....
    So good so far. When testing the application on Unix, all files are lowercase, the Forms start without a problem but the Reports won't start.... Renaming the report files to uppercase works fine.
    Going through the Headstart code for calling Forms and Reports I noticed the following:
    When calling Forms the qmslib50.qms$form.call procedure is invoked. In this procedure the follwoing statement is used:
    l_form_name := lower(p_form_name) So only lowercase will be found....
    For calling Reports from the Lauch Report Form the qms0012l.qms$report.run procedure is invoked.
    This procedure calls fill_par_list where the l_module_name is set. But in this procedure no uppercase or lowercase is used......
    Not consequent I think !!
    Is this done for a specific reason ?
    PS: Change qms0012l and it works fine.

    Hi,
    cannot use run_report_object here cause I cannot create a report object in menu (like how we can do it in forms).
    Create a generic named Report node in the forms that you reference from the RunReport object request. This way you can run Reports from a menu
    Frank

Maybe you are looking for

  • Contact page not working, please help

    Hi, I have a problem with my contact page,when I fill in the fileds,and click on SEND, the information is supposed to clear from the fields, and send to the specific email address, BUT what happens is the fields dont clear and nothing sends, I am hos

  • HT201209 Can i use the itunes card on another account

    Can i use a Itunes Card on another account? I forgot my password and cannot get it back

  • Qt pro 7, full screen

    1 -I have QT Pro 7, but in trying to play some video trailers from qt list, i can't seem to make the Full Screen function work, as it is grayed out, even though I have full screen checked in my preferences. 2- also, should the full screen work while

  • Opening or viewing Keynote file on a PC

    I do not own a mac, and I have been given (via email) a keynote file for a presentation I have to give tomorrow.  (Of course, I never checked to see if I could open the file, so now I'm kicking myself that instead of practicing the presentation, I'm

  • Add sales view in Material number

    Hi, We have a material, which don't have Sales View. How can we add sales view in it. But this should be done for only 1 Material. because through oms2 transaction, we can extend according to material type.. Plz. guide...