Pass value Process request  to Process Form Request

Hi,
Can any one tell me how we can pass particular value from process request to process form request?
Thanks

Hi,
u can use params to pass values.. please see code below for reference.
if(pageContext.getParameter("saveBtn") != null)
String userId = String.valueOf(pageContext.getUserId());
Serializable param[] = {
invAmt, userId
oam.invokeMethod("saveHandle", param);
OADBTransaction trx = oam.getOADBTransaction();
trx.setClearCacheOnCommit(true);
trx.commit();
OAException successMsg = new OAException("Records saved successfully", (byte)3);
pageContext.putDialogMessage(successMsg);
pageContext.forwardImmediately("OA.jsp?page=/custom/oracle/apps/fnd/wf/worklist/webui/ssrInvoicePG", null, (byte)0, null, null, true, "N");
trx.closeTransaction();
}

Similar Messages

  • Re: Help needed in passing values from workflow to Approve Forms

    Dear Experts,
    how do I pass values from a workflow to a step (Form) - approve form?
    I am using a customized table structure as my data source (FORMCONTAINERELEMENT) but am stuck on how to access the data when i get to to the screen painter's flow logic... What am i missing? Can you give me a step by step example. the ones i see on the net are input fields that update the screen... nothing that shows value being passed from the outside.
    I need to pass an exisitng value in the workflow into the form for approval of the the assigned agent.
    Please help!!
    Thank you.

    Hello !
             Create a method just before the form step.This method should populate the values for the fields maintained in the form.
             Pass the values populated from this method to your customized table structure (data source).In other words, you have to pass all the values to the workflow container.
            To the step, pass this workflow container by binding.In the control tab of form step, you have to do the binding.
    Regards,
    S.Suresh

  • Passing value from JavaScript window to form

    Hi,
    Coul'd You help me?
    I have a test form. I open new JavaScript window from this form. I generate list of authors in this window by the procedure show_list. I want to pass value from JavaScript window back to test form, but
    the command "window.opener.document.forms[idx_form].elements[idx_fld].value = val;"
    don't pass value to test form. Where is mistake?
    Thanks Vaclav
    -------------- test form --------------
    <HTML>
    <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=windows-1250">
    <TITLE>Edit</TITLE>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Comment out script for old browsers
    function get_list(frm, fld)
    var idx_form, idx_fld;
    idx_form = get_idx_form(frm);
    idx_fld = get_idx_field(idx_form, fld);
    var w = open ("http://vasekora/pls/portal309/ahs.RD_CISEL.SHOW_LIST" + "?startPg=1" + "&master_fld=" + "ID_AUTHOR" + "&slave_fld=" + "NAME" + "&ownr=" + "REDAKCE" + "&tbl_name=" + "AUTHORS" + "&cmd_qry=" +"" + "&idx_form=" + idx_form + "&idx_fld=" + idx_fld,"wn_Authors","width=500,height=600,resizable=yes,menubar=yes, location=yes");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    function get_idx_form(p_form_name)
    var v_index, v_full_name, v_return;
    for(v_index=0; v_index < document.forms.length; v_index++)
    v_return = -1;
         v_full_name = document.forms[v_index].name.split(".");
    if (v_full_name == p_form_name)
         v_return = v_index;
              break;
    return v_return;
    function get_idx_field(idx_form, field_name)
    var v_index, v_full_name, v_return;
    for(v_index=0; v_index < document.forms[idx_form].length; v_index++)
    v_return = -1;
         v_full_name = document.forms[idx_form].elements[v_index].name.split(".");
    if (v_full_name == field_name)
         v_return = v_index;
              break;
    return v_return;
    //-->
    </SCRIPT>
    </HEAD>
    <BODY>
    <FORM NAME="f_aut_new" ACTION="javascript:testclose()" METHOD=POST TARGET="_blank">
    <INPUT TYPE="text" NAME="id_aut">
    <IMG SRC="images/list.gif" alt="Seznam" border="0" align=bottom><BR><BR>
    <INPUT TYPE="submit" VALUE="Save">
    <INPUT TYPE="reset" VALUE="Cancel">
    </FORM>
    </BODY>
    </HTML>
    -------------------- end test form --------------
    procedure show_list
    startPg integer,
    master_fld varchar2,
    show_fld varchar2,
    ownr varchar2,
    tbl_name varchar2,
    cmd_qry varchar2,
    idx_form integer,
    idx_fld integer
    is
    TYPE cur_typ IS REF CURSOR;
    c cur_typ;
    c_cnt cur_typ;
    i integer;
         pg rd_types.pages_t;
    odkaz varchar2(4000);
    bk_url varchar2(4000);
         s1 varchar2(4000);
         var_mfld integer;
         var_sfld varchar2(8000);
         bl boolean;
         var_cmd varchar2(2000);
    begin
    htp.HTMLOPEN;
    htp.HEADOPEN;
    htp.p('<SCRIPT LANGUAGE="JavaScript">');
    htp.p('<!-- Comment out script for old browsers');
    htp.p('function Close_List(val, idx_form, idx_fld)');
    htp.p('{');
    htp.p('window.opener.document.forms[idx_form].elements[idx_fld].value = val;');
    htp.p('self.close();');
    htp.p('}');
    htp.p('//-->');
    htp.p('</SCRIPT>');
    htp.HEADCLOSE;
    htp.BODYOPEN;
    if cmd_qry is null then
    s1 := 'SELECT a.'||master_fld||', a.'||show_fld||' FROM '||ownr||'.'||tbl_Name||
    ' a ORDER BY a.'||show_fld;
    else
    var_cmd := UPPER(cmd_qry);
    s1 := 'SELECT a.'||master_fld||', a.'||show_fld||' FROM '||ownr||'.'||tbl_Name||
    ' a WHERE UPPER(a.'||show_fld||') LIKE ''%'||var_cmd||'%'' ORDER BY a.'||show_fld;
    end if;
    i := 1;
    OPEN c FOR s1;
    LOOP
    FETCH c INTO var_mfld, var_sfld;
    IF c%FOUND THEN
    IF i >= pg.StartRec AND i <= pg.EndRec THEN
    odkaz :=''||var_sfld||'';
    htp.p(i||': '||odkaz||' ('||var_mfld||')<BR>');
    ELSE
         IF i > pg.EndRec THEN
         EXIT;
         END IF;          
    END IF;
    ELSE
    EXIT;
    END IF;
    i := i + 1;
    END LOOP;
    htp.p('<BR><B><INPUT TYPE=BUTTON ONCLICK="javascript:self.close();" VALUE="Close"></B><BR><BR>');
    CLOSE c;
    htp.BODYCLOSE;
    htp.HTMLCLOSE;
    end;

    If this makes any difference: Instead of using "var w = open..." try "var w = window.open..."

  • Passing value from dynamic page to form.....

    I have a portal page that has a dynamic page where I've created an html form. Also on this same page in different regions are three other forms which were created by the form wizard. From the dynamic page form I want to pass a session value to the other forms on the same page. Is this possible? I know it's possible from form to form using session apis. I've search the forum and have not found what I'm looking for. Can anyone be of any help on this topic?

    Melissa,
    It seems we have the same type issue.
    Session variable how to's are what I need also.
    There is a site with more information on it...a continuation of the Portal Handbook by Vandivier and Cox at home.covad.net/~idbexperts called an "Unpublished Case Study" - I don't know if it'll hit your needs on the head, but it may help to see it.
    I believe I am trying to hold session variables over til users complete a 4 part form across several pages (may be a space problem we have). Do you know how I start this?
    I don't know how to put p_session variables together, when or where the parameters are necessary and whether a procedure is necessary or not!!!
    If you would like to correspond offline, I am at [email protected] and would appreciate your insights.
    Mary

  • Passing value from Frame Driver to Form

    Hi,
    I have a frame driver which shows some (project Names) when submitted calls a form in the target area. I'am joining 2-3 tables and i cannot pass the Rowid but i'am passing another field value. My problem is when i select a Project Name and hit the submit button , unless i hit the query button it does the value on the form . It works good when i pass the rowid (some other form). Does anyone know how to make this work?
    Thank You.

    Hi,
    Here is an example which calls the employee form. After clicking on the submit in the driving frame after selecting the employee, the employee form shows up with that particular employee's details.
    sample....
    select ename,'SJAYARAM903_1B.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=_sessionid&p_arg_values=&p_arg_names=_empno_cond&p_arg_values==&p_arg_names=show_header&p_arg_values=YES&p_arg_names=EMPNO&p_arg_values='||empno url from SJAYARAM903_1B_DEMO.EMP
    Thanks,
    Sharmila

  • Passing value from one view to form

    Hi Friends,
    This may be easy for you. I did 2-3 times but some how I am stuck this time.
    I am accepting user ID from one form and geting user information. I am trying to modify some information and then printing it in second form. SOme how value is not passing to my second for. While debugging I can see that value is there.
    For first name printing I am using
    $(global.firstname)
    But getting null as output.
    Please help me
    Thx

    Can u post your form ?? I need to see an example quite like yours.
    Thanks ,
    Victor

  • How do I properly pass values into an input parameter form and app module?

    Using JDeveloper 11.1.1.4
    I created an application module that calls a PL/SQL procedure that uses input parameters. I exposed this to the data control and dropped the object on a jsff as a input parameter form. I need to set some of the input parameters on this form from values gathered and stored in a pageFlowScope bean. What is the proper way so that the values will: 1. show on the form, and 2. get to the java code in the application module that calls my procedure? An example field from my form is:
            <af:inputText value="#{bindings.pPayerId.inputValue}" label="Payer ID"
                          required="#{bindings.pPayerId.hints.mandatory}"
                          columns="#{bindings.pPayerId.hints.displayWidth}"
                          maximumLength="#{bindings.pPayerId.hints.precision}"
                          shortDesc="#{bindings.pPayerId.hints.tooltip}" id="it8">
              <f:validator binding="#{bindings.pPayerId.validator}"/>
              <af:convertNumber groupingUsed="false" pattern="#{bindings.pPayerId.format}"/>
            </af:inputText>Thanks,
    Troy

    Thanks Shay for pointing me in that direction.
    I didn't find the NDValue in the bindings, so I went to the pagedef xml and found it there. Changing the NDValue successfully delivered the value to the app module when the method was executed, but didn't show the value on the form. I had to add the same #{pageFlowScope.paramsBean.fileFormatParam} to the value of the input field and it now is working as needed.

  • PleaseHELP!: pass value asp to xfdf, open pdf form prepopulated

    Hi - we're Using Acrobat/Designer 7.0.  Please help..<br /><br />Still working on the passing value from ASP to pdf form.  <br /><br />What I have so far, based on helpful info from this forum, is the following code {see below}  <br /><br />This code prompts to save, then opens the asp page with the value "0000000000000000" as text. <br /><br />My hope is to pass the value and open the pdf form w/o prompting, & to have the identifier field prepopulated.<br /><br />I've tried this with a pdf and xdp form, neither works. What am i doing wrong?  Samples are most welcome. This is rather urgent, as I want to avoid manually creating 100s of pre-populated pdf forms for e-mail.<br /><br />Thanks much, ginger<br /><br />'======================================================================<br /><%@ LANGUAGE = VBScript%><br /><% Response.ContentType = "application/vnd.xdp+xml" %> <br /><br /><?xml version="1.0" encoding="utf-8"?><br /><?xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"<br /><?xfa generator="XFA2_0" APIVersion="2.2.4333.0"?><br /><xdp:xdp xmlns:xdp="Http://ns.adobe.com/xdp/"><br /><xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><br /><xfa:data><br /><fields><br />     <field name="Identifier"<br />          <value>0000000000000000</value><br />     </field><br /></fields><br /><br /><f href="http://localroot/test/applicantform.xdp"><br /><br /></xfa:data><br /></xfa:datasets><br /></xfdf><br /></xdp:xdp>

    I am working on this same problem too and after playing with the code above, I found *a solution*.  I am not sure it is exactly what you want to do but it works nonetheless.  It does not prompt the user to download the document because I took out the Content-Disposition header.<br /><br />This is just some proof of concept code in C#:<br /><br />protected void Page_Load(object sender, EventArgs e) {<br />     string xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><xfdf xmlns=\"http://ns.adobe.com/xfdf/\" xml:space=\"preserve\"><f href=\"http://SERVERNAMEHERE/TestPDF.pdf\"/><fields><field name=\"CompanyName\"><value>It Worked!</value></field></fields></xfdf>";<br /><br />     Response.Clear();<br />     Response.ContentType = "application/x-pdf";<br />     Response.AddHeader("Content-Type", "application/vnd.adobe.xfdf");<br />     System.Text.ASCIIEncoding ascii = new System.Text.ASCIIEncoding();<br />     Response.AddHeader("Content-Header", xml.Length.ToString());<br />     Response.BinaryWrite(ascii.GetBytes(xml));<br />     Response.End();<br />}<br /><br />If I run that code, it does actually work and puts "It Worked!" in a form field I named CompanyName in the test PDF document I created.  From playing with it, it does look like you have to pass it the full URL to your source PDF document -- at least I couldn't get it to work if I just entered the PDF document name and not the full URL (even though the PDF was in the same directory as my page).<br /><br />Hope this helps somebody.

  • How to read User ID from the request Form and pre populating in the AD User process form before provisioning

    I am trying to read the user Id from the submitted AD User request form( Catalogue AD User form. I need User Id,firstname and lastname inorder to prepopulate the common name as in this format - lastname,firstname (userid)  for the user to be provisioned in Active Directory.
    So after filling the AD User request form with User Id and Organization and submitting the request, I am trying to
    prepopulate the common name in the process form before the provisioning.
    The prepopulate adopter for the common name is configured to read the firstname, lastname and userid. firstname and
    lastname variables are mapped to User definition and user Id is mapped to Process Data. In this setup I am not getting the
    User Id value from process data, it is empty.
    Is this a bug with OIM 11g R2 or I need to do it differently in order to read the user Id that user has entered in the
    request form for populating the common name?
    Thanks

    Ghulam Yassen wrote:
    How to get USER_ID and IP_AddressWhy exactly do you need this data and what do you plan to do with it?
    The data is not reliable and trustworthy. IP addresses can easily be spoofed (a few seconds if you know what to do and how to do it). Also, IP addresses are not static. Users also do not use the same network device to access the database - different devices will have different IP addresses.
    The o/s user on the client is supplied by the client driver. This can also be spoofed.
    The user can also use a virtualised device - which means that recording the IP and o/s user seen from the server side, is pretty much useless and meaningless.
    So if this data is intended to be used for auditing for example - it would be pretty suspect data to use for that purpose.

  • SetValue cannot be done in the process form request

    problem: setValue cannot be done in the process form request

    You cannot set a value in the process form request, u might use one of the following solutions:
    1) redirect to the same page and then set the value in the process request;
    2) attach the field to an attribute in the VO, if it is not a field in the databse, then put it as a transient attribute in a VO or make a DummyVO for these attributes and add the transient attribute.

  • Ways to pass values to getParameter() request??

    I currently know 2 mechanisms of passing values to getParameter() request
    1)By dynamically typing in the URL
    2)By setting the Parameter value in the property inspector when a fireAction is issued of the form
    Parameter Name ,Parameter Value:${oa.Instance Name.Attribute Name}
    Should the Parameter Value always take this format or can there be a modification to this if so what are the available options??
    On the broader sense are there any other methods of passing values to getParameter() ??

    Just understand in terms of basic html, in a url anything appeneded after question mark is a parameter.EG:
    http://XXX.com:8046/OA_HTML/OA.jsp?page=/XXX/oracle/apps/xxx/.......xxPG&A=xyz&B=uuuu
    here page is parameter which is used by OA.jsp to recognize the page, then
    A is aother url parameter whose value is xyz and u can get from
    pageContext.getParameter();
    Similarly,B is aother url parameter whose value is uuuu and u can get from
    pageContext.getParameter();
    Ways, to set url params:
    1)Set haspmap in pagecontext page forward api.
    2)Directly appending target url with url params
    3)Appending target url using bound values.
    I guess now this is clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem while populating a field on process form- Values truncated

    Hi,
    I am facing a strange problem.
    I have a requirement to populate Country field on AD process form based on the value of country code on the same process form which should eventually go to 'co' attribute in AD. So for eg. if the Country Code has value- 'US' then the Country field should be populated with 'United States'. This value is picked from lookup- Lookup.Locations.Country.
    My adapter code works perfectly fine (checked using sysouts) it gets the proper values from the lookup but the country filed gets populated only with partial value. So instead of United States it only shows 'UNIT'. Same is for any country having more than 4 charatcters. It truncates the rest of the string and populates the field with only first 4 characters. I tried manually populating the Country field with complete country name on the process form and it works fine and the same value goes to AD also but when I run the adapter it only populates it with 4 charactetrs.
    This is strange and I have no clue what could be stopping it. Any idea/experiences?
    Thanks in advance,
    -Abhi

    Hi Abhi,
    Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
    Regards,
    Sunny Ajmera

  • How to prepopulate value in process form

    Hi,
    I want to pre populate values in forms while updating the data.Test case provided below.
    1. create a user with five roles(all are lookup values) .
    2.While updting I want to see existing lookup values in process form.
    3.I can update it and save it.

    My requiremrnt is after creating user I have few field selected. While user is requesing for midifying resource , user want to see the selected values on the form.For the same I may need to customize existing jsp's.I want to know what is the process for achieving the same.

  • Need to pass value from check box to the pl/sql function in process

    My requirement is to use single value check box and pass the flag value to the pl/sql function.
    The function need to interpret the flag and execute accordingly.
    In this case checkbox name is P1_DELETE and it returns Delete, if checked.
    Anonymous block with in the process looks as follows:
    declare
    l_result VARCHAR2(1024);
    begin
    l_result := test_function(:P1_DELETE);
    end;

    Hi Visu,
    checkboxes in APEX are handled as arrays, namely APEX_APPLICATION_GLOBAL.VC_ARR2. To pass and process the checked values of checkboxes in a pl/sql function or procedure you could use the following way, assuming you have a checkbox named P1_DELETE with a single return value of "Delete"
    DECLARE
        l_checkbox_values apex_application_global.vc_arr2;
    BEGIN
        l_checkbox := :P1_DELETE;
        -- calling function test_function processing the value
        test_function(NVL(l_checkbox(1), 'SOME_OTHER_VALUE'));
    END;If the checkbox is not checked then the array at position 1 is null and you have to process that as you like.
    If your checkbox would be a group than the array would be colon separated such as 1:2:3:4 etc. and you would have to loop the array like:
        FOR idx IN 1..l_checkbox.COUNT LOOP
            test_function(l_checkbox(idx));
        END LOOP;Hope that helps.
    Andreas

  • OIM API - How to get the values in the process form (both parent and child)

    Hi,
    I created an RO with a Process form (both Parent and Child).I created a unconditional process task which takes in the processinstance key and tried to retrieve the process form datas.When i tried to provison the resource,the process task is getting triggered and I could able to get the parent form data but not the child form data.
    Any idea why is this happening?.Is it mandatory to have the "Triggers" ON to get the Child Form data.?
    Thanks,

    try this
    tcResultSet childResults = formOper.getChildFormDefinition(
                             formOper.getProcessFormDefinitionKey(procInstanceKey),
                             formOper.getProcessFormVersion(procInstanceKey));
    This should work,
    Regards,
    Raghav

Maybe you are looking for

  • How to switch off breadcrumb-navigation in EP 6.0 ?

    Hi All, I've got the request to switch off the s.c. breadcrumb-Navigation. Is there any possibility to remove this ? In EP5 there was possible to let them disapear by changing the font color, this seems not to work in EP6 as some parts of the links c

  • Services Order In Oracle 11g

    is there a specific order in which oracle services must be turned on such as oracleServiceORCL first, then oracleOradb11g_home2_TNSLISTENER?

  • How to make column tree the ALV

    As in normal table we can make column tree by using  'TreeByNestingTableColumn' property, can any one tell me how to do the same in alv. I have used set_hierarchy_column( abap_true ), but i was not able to map all the elements with in a node to other

  • Need Help inserting metatags into IWEB website.

    How do I insert HTML metatag code (description and keywords) into my IWEB website hosted by GoDaddy?

  • Installing application on 9810 freeze at uploading ram image

    I am using windows 7 latest bdm software i am trying to install the spanish langauge pack i get to the point quote uploading applications do not disconnect your device before this update is complete update | back up third-party applications reboot |