Wrong value is passing from one form to a other form's parameter

I am passing value from one form to another form using following code
DECLARE
     pl_id ParamList;
pl_name VARCHAR2(10) := 'task_id';
BEGIN
pl_id := Get_Parameter_List(pl_name);
--destroy_parameter_list(pl_id);
IF Id_Null(pl_id) THEN
     null;
ELSE
     destroy_parameter_list(pl_id);
END IF;
pl_id := Create_Parameter_List(pl_name);
pl_id := Get_Parameter_List(pl_name);
IF NOT Id_Null(pl_id) THEN
Add_Parameter(pl_id,'PARAM_SEIT_ID',TEXT_PARAMETER,'120');
END IF;
     call_form('D:\dir1\form1', no_hide, no_replace,query_only, SHARE_LIBRARY_DATA, pl_id);
     delete_Parameter(pl_name,'PARAM_SEIT_ID');
exception
          when others then
               message('Error'||sqlerrm);
               message(1);
END;
I am created a parameter with the same name in the other form, but value is not passing to that parameter properly. it is showing value
-5153000000000000000000000000.
Please solve my problem

Try this code
DECLARE
PA_1 VARCHAR2(30);
PA_2 VARCHAR2(30);
PA_3 VARCHAR2(30);
PA_4 VARCHAR2(30);
PA_5 VARCHAR2(30);
PLISTREP paramList;
BEGIN
/* give value to parameter */
PA_1 := :PARAMETER.P_1;
PA_2 := :PARAMETER.P_2;
PA_3 := :PARAMETER.P_3;
PA_4 := :PARAMETER.P_4;
PA_5 := :PARAMETER.P_5;
PLISTREP := Get_Parameter_List(pl_name);
IF Not Id_Null(PLISTREP) THEN
Destroy_Parameter_List(pl_name);
End If;
PLISTREP := Create_Parameter_List(pl_name);
IF Id_Null(PLISTREP) THEN
Message('Error creating parameter list '||pl_name);
RAISE Form_Trigger_Failure;
END IF;
/* ADD_PARAMETER TO PARAMETER_LIST */
Add_Parameter(PLISTREP,'P_1',TEXT_PARAMETER,PA_1);
Add_Parameter(PLISTREP,'P_2',TEXT_PARAMETER,PA_2);
Add_Parameter(PLISTREP,'P_3',TEXT_PARAMETER,PA_3);
Add_Parameter(PLISTREP,'P_4',TEXT_PARAMETER,PA_4);
CALL_FORM(name_of_your_form,no_HIDE,NO_REPLACE,QUERY_ONLY,SHARE_LIBRARY_DATA,PLISTREP);
I have tried to adapt to your case.
Hope it helps you,
Fabrizio

Similar Messages

  • Data don't pass from one server to the other ???

    Hello,
    I have a big problem.
    I have define all the data server from all the technologies I want.
    All the tests are good.
    I have created interfaces all the first work well
    But.....
    When in my interface the Source and the target are not physicaly on the same server there's no data transmitted to my target.
    In the Operator I see that my interface have been executed without error but that no data have been inserted...
    So source on server A, Target on server B and even if there is no error during the execution, nothing is inserted on the target.
    Moreover, The SQL generated on the source is correct and when I execute it on a query editor i have the good data...
    But nothing in the target
    I'm passing by an scheduler agent installed as a NT Service.
    Please Help me ):
    BM

    Hi Veera,
    Through SE16 Display your table select necessary entries goto menu table entry-> transport entries. There it will ask you for TP no. Store entries in TP and then transport it to required system.
    Thanks and Regards,
    Vaibhav Pendse

  • Pass value from one form to another (Dev 6i)

    How to pass a value/variable from one form to another called form in Oracle Dev 6i

    1. One-way communication (calling form sends information to called form)
    - using Forms :PARAMETER variables:
    OPEN_FORM / CALL_FORM (form_name, ..., parameter_list);
    2. Two-way communication
    2.1. If Forms modules runs in different database sessions
    (using "OPEN_FORMS (..., SESSION, ...);" called form runs in a new database session),
    you can use:
    - Forms global variables (:GLOBAL)
    - global record groups, created using GLOBAL_SCOPE parameter:
    rec_grp_id := CREATE_GROUP_FROM_QUERY (..., GLOBAL_SCOPE);
    - database "global" Application Context (available from Oracle 9i)
    2.2. If Forms modules runs in the same database session you can use methods in 2.1 plus:
    - library package data; with SHARE_LIBRARY_DATA parameter,
    Forms that have identical libraries attached can share library package data:
    OPEN_FORM / CALL_FORM (form_name, ..., SHARE_LIBRARY_DATA, parameter_list);
    - database package data (but, you must use get/set methods)
    - database "private" Application Context (available from Oracle 8i)
    Regards,
    Zlatko Sirotic

  • How to pass parameter from one form to another

    Hi,
    I have created a form based on a procedure . Now i want to pass a filed value from this form to another form . How can i do this.
    How can i pass a vlue from one form to another form in oracle portal.
    Thanks

    At last - I've managed to get this to work! Is this documented anywhere at all - I just guessed it based on other people's code!
    OK, to prove the example here is what I did:
    I have a form referencing the DEPT table.
    I created a item called 'Search' and of type button.
    I created a 'custom' PL/SQL block and added the following code:
    declare
    v_deptno NUMBER;
    begin
    v_deptno := p_session.get_value_as_NUMBER(
    p_block_name=> 'DEFAULT',
    p_attribute_name => 'A_DEPTNO');
    PORTAL30.wwa_app_module.set_target('http://server/pls/portal30/app_schema_name.EXAMPLE_SQL_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values= 25&p_arg_names=_portal_max_rows&p_arg_values=25&p_arg_names=DEPTNO&p_arg_values='| |LTRIM(TO_CHAR(v_deptno)),'CALL');
    end;
    Note: you need to reference the column with an 'A_' prefixing the columm name.
    I left the name 'DEFAULT' as it is.
    OK so I set this to a variable and now want to call a Report called EXAMPLE_SQL_REPORT which was created with the following code:
    select * from scott.emp where deptno = :deptno;
    The bind variable being the custom parameter for the report.
    I called the new report with the PORTAL30.wwa_app_module.set_target procedure and put in the full URL path (in this example) of the server and report.
    I hope this helps!
    John
    null

  • Unable to detect any parameter in html (webresource) when value is passed from onload method of form

    Unable to detect any parameter in html (webresource) when value is passed from onload method of form
    I am trying out some stuff. For which I created a simple Entity. In the form of the entity I have added a simple web resource (html). And for the onload of the form I am calling the following function
    function HelpDeskActivityOnLoadhandler()
     var customParameters = encodeURIComponent("first=First Value&second=Second Value&third=Third Value");
        Xrm.Utility.openWebResource("tsi_scriptzz",customParameters);
    Here is the code for the  tsi_scriptzz.html
    <html>
     <body>
      <script type="text/javascript">
        var vals = new Array();
        if (location.search != "") {
         vals = location.search.substr(1).split("&");
         for (var i in vals) {
          vals[i] = vals[i].replace(/\+/g, " ").split("=");
      </script>
     </body>
    </html>
    MY PROBLEM IS -> location.search is always coming back with empty string. So, it not getting the parametrs I am passing from the load method of the form.
    Could someone kindly help me.
    Thanks,
    Hasib

    Hello, I tried it myself. I got a new_test.htm file and a new_test.js file. The loadWebResource function is called on the OnLoad event of an Entity.
    function loadWebResource()
    var params = encodeURIComponent('param1=value one&param2=value two&param3=value three');
    Xrm.Utility.openWebResource('new_test.htm', params);
    <html>
    <head>
    <title>Web Resource Parameter Example</title>
    <!-- Use ../ClientGlobalContext.js.aspx if your webresource is in a deeper folder on CRM -->
    <script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
    <script type="text/javascript">
    document.onreadystatechange = function () {
    if (document.readyState == 'complete') {
    var params = getParams();
    for(var i=0; i<params.length; i++)
    log(params[i].name + ' ' + params[i].value);
    // this functions puts the params in a 'dictionary format'
    // f.e params[0].name = param1 & params[0].value = 'value one'
    // You could customize this function or find some on the internet to retrieve a param fe by name...
    // This is just an example how to get the name and values
    function getParams(){
    var params = [];
    var querystring = Xrm.Page.context.getQueryStringParameters().Data;
    var querystringparts = querystring.split('&');
    for(var i=0; i<querystringparts.length;i++)
    var split = querystringparts[i].split('=');
    params.push({
    name: split[0],
    value: split[1]
    </script>
    </head>
    <body>
    </body>
    </html>
    Hope it helps now. Kind Regards

  • Passing a parameter from one form to another

    Hi
    I'm trying to pass a parameter from one form to another. I've read lots of postings about this, and I have succeeded in calling the second form using code behind one of the existing Portal buttons (insert). Here is the code:
    DECLARE
    pro_id NUMBER;
    pro_link VARCHAR2(1200);
    BEGIN
    pro_id := p_session.get_value_as_number(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_PRO_ID');
    pro_link := portal30.wwv_user_utilities.get_url(
    'CINTRA_APP.PRO_LINK_1',
    'WKG_PRO_ID',pro_id,
    '_WKG_PRO_ID_cond','=');
    PORTAL30.wwa_app_module.set_target(pro_link,'CALL');
    END;
    Trouble is, the parameter does not get passed. This could be because:
    the field I'm trying to populate is based on an LOV ?
    the target form is not set up to receive parameters? (I read this somewhere, but how do you do it?)
    Thanks
    Manfred

    Dear InoL
    My Header Form coding as follows.
    When I press the button to move to the lines the following code executes
    PASSING FORM CODING;
    DECLARE
         pl PARAMLIST := GET_PARAMETER_LIST('PL_AT');
    BEGIN
         IF NOT ID_NULL(pl) THEN
              DESTROY_PARAMETER_LIST(pl);
         END IF;
         pl := CREATE_PARAMETER_LIST('PL_AT');
         ADD_PARAMETER(pl,'P_AT',TEXT_PARAMETER,:HWSI_ASSET_TAG);
         CALL_FORM('E:\IT_SYSTEM\6i\HWDYNAMICINFO.FMX',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,PL);
    END;
    RECEIVING FORM CODING;
    Written on WHEN_NEW_FORM_INSTANCE
    BEGIN
         IF :PARAMETER.P_AT IS NULL THEN
              GO_ITEM('NZK_HW_DYNAMIC.OS_ASSET_TAG');
              ENTER_QUERY;
         ELSE
              SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='||:parameter.p_at);
             SET_BLOCK_PROPERTY('NZK_HWSTATIC_INFO',DEFAULT_WHERE,'HWSI_ASSET_TAG ='||:parameter.p_at);
              EXECUTE_QUERY;
              GO_ITEM('NZK_HW_DYNAMIC.OS_ASSET_TAG');
         END IF;
    END;
    Created PARAMETER as P_AT, Data Type CHAR, MAX LENGTH 30
    Thank you
    NZK

  • How to pass Data from one form to the other

    Hi all
    Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
    I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
    If any one of u have any idea, give me a reply
    Thank you
    Suhasini

    If you choose the second alternative you should erase these global variables after the second form is opened
    You can erase the global variable using:
    erase('global_var')
    Greetings,
    Sim

  • How to concatenate values from one form to another form using calculated columns in sharepoint?

    Im new to Sharepoint.
     I need to know , how to fetch the x1 , x2 values from one form to another form x1, x2 fields, this wants to happen when 2 forms ID fields(Drop down field) are same.
    ex:
    first module I have 3 fields like, "Marketing ID" , "Company name" , "Vendor name".
    second module I have the same related fields like "Marketing ID" , "Company name" , "Vendor name" and some more fields.
    now i need to fetch the information from 1st module to 2nd module ( "Company name" , "Vendor name" ) when I select the Marketing Id(Drop down - field) 
    it should be want to show in Calculated columns.
    Can someone make a suggestion on how I can do this.
    Thank you so much for any help you may be able to provide.
    Sincerely
    Ahalya Babu

    Calculated Columns can only generate a value from fields of the current item. And only some types of fields (for example, it can't use a lookup column).
    Consider using a workflow to accomplish your goal.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • How to call a form from one form to another form with parameter..

    i'm having a from that will shows the info about the orders that the client has. and i want to show the information of the client. for that i have created one form and i want to call the form from my current form with the given client name as a parameter. then the client_info form has to query with the given parameter. so im passing the :client_order_info.client_name as parameter to the call_form('client_info.fmx',:client_order_info.client_name); but my question is how to access that parameter in the client_info form.. plz help me.. i tried a lot ..

    Create a parameter (object navigator -> parameters) with the name client_name and you can access that value in your client info form using :PARAMETER.client_name.
    P.S. while calling you can pass parameter using 'cilent_name =>' to make sure that the correct parameter is getting assigned to the value.

  • Global Variables passing from standard form for use on custom form

    Hi,
    I'm trying to grab a value from a standard form, and pass it to a new custom form, which I am opening automatically from the standard form via personalizations. Is anyone aware of a way to send a value from one form to another? I was going to try using a global variable, which it looks like you can set through personalization. I tried doing it by passing the value as a form parameter, which works if I hard code a value, but it doesn't work if I refer to a value from the standard form.

    in your E-Business-environment may exist some special codings, which you have to think of, when passing parameters through the application.
    Copy the question to your EBS-Forum. They know ways using personalization and passing parameters

  • Can you send custom events from one form to another?

    I have a compli
    cated application, where I about hundred inp
    uts organized in several input forms. Some of the forms
    require data which has been input in other forms. I have tried to
    dispatch custom events from one form to another, but it dispatches the
    whole form and I only need one or two items.
    Ha anybody else come across such a problem?
    Svend

    One way is to share data in a static singleton

  • How to change  XML  Structure from one form to another form using OO ABAP.

    Hi Experts,
    In my Scenario, i need to do ABAP Mapping in order to change Incoming structure from one form to another.
    My Input to ABAP Mapping (OO ABAP Program)would be :
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
         <D>..........</D>
         <E>..........</E>
         <F>..........</F>
    OO ABAP Program need to read this input and change the XML Structure into below form:
         <A>..........</A>
         <B>..........</B>
         <C> .........</C>
          <X>
                <D>..........</D>
                <E>..........</E>
          <F>...............<F>
    Please provide inputs (sample Code) to solve this issue.
    Thanks,
    Kish.
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:51 PM
    Edited by: Kishore Reddy Thamma on Jan 22, 2008 2:52 PM

    Hi,
    Please provide sample code or Material for converting XML Structure from one form to another using OO ABAP and
    Steps for ABAP MAPPING.
    Thanks,
    Kish.

  • Copy values from one Parent node to other Parent Node

    Hi all,
    I have a 2 Parent node each having 3 child nodes. I want to copy the values of all the attributes of all the child nodes of one Parent Node to corresponding other node.
    Both the Parent Nodes as well as their Child Nodes have different name but their attributes have same name.For ex:
    Parent Node -A
    Child Nodes - a, b,c
    Child Node "a" has attributes "x" and "y"
    Parent Node -B
    Child Nodes - d,e,f
    Child Node "d" has attributes "x" and "y" .
    Now I want to copy the values od attributes "x" and "y" from one Parent Node to other Parent node.
    Please help me out.
    Helpful answers will be rewarded.
    Thanxs in advance...

    Hi Jin,
    To use copy service API, u need to satisfy 2 condition for the attributes of source node and target node:
    1. The name of the attribute should be same (including the case of the name)- Abc is different from ABC
    2. Type of the attribute should also be the same.
    copy elements works for copying values from Model node to context and does not work vice-versa. To enable the copying of context node to model node, use copycorresponding API.
    Eg:
    int contextNodeSize = wdContext().node<contextNodeName>().size();
    for(int i = 0; i < contextNodeSize; i++)
         <modelNodeName> modelObject = new <modelNodeName>();
         <contextNodeName>Element contextObject = wdContext().node<contextNodeName>().get<contextNodeName>ElementAt(i);
         WDCopyService.copyCorresponding(contextObject, modelObject);
    This will copy the values from Context Node to Model Node.
    Hope this helps you.
    Regards,
    Poojith MV

  • Data not transfering from one form to another

    I have designed two forms in which i want to transfer data from one form to another which contains lot of fields.Process starts wid filling the first form(form1) from the workspace and all the data from dat form will be transfered to next level user who is having form2.Both forms contains two pages each.I tried with the SETVALUE ACTIVITY after designing two forms but its showing error.

    No am not using any xml schema .i have designed the two forms with the same fileds and field names.what cpould be the problem.After submitting the task from the start process it is going to the next user level but the form is getting added twice in the to do list of that user and data is not getting bound.If u want i can sned u my lca files or forms.

  • Importing form field layout from one form to another ?

    I often create forms in both English and French. Many are long and complicated and I have to create them all individually. Is there any way I could use the form field layout from one form, for another form? That would be fantastic.

    Sure. To replace the underlying page contents and retain any fields, document-level code, links, etc., select: Document > Replace Pages
    you will likely have some tweaking to do to some field positions.

Maybe you are looking for

  • How do I not share my contacts with family memebers?

    I need HELP! I recently update all three of our phones with ios5 and icloud. I was using mobile me before and had and apple id already. All three devices were under the same apple id and I could view them on the same mobile me account, but each phone

  • Bridge remains in foreground after opening Photo in Photoshop

    Recently I have found that Bridge remains the foreground application when I have used it to open an image in Photoshop (the default). Clicking on the Photoshop window does not change things, Bridge remains the foreground active application. I can onl

  • Playing DVDs on iMAC through Apple TV

    Can I play DVD/Blue Ray disks through Apple TV? I have an iMAC with an Airport router and an Airport Express. If I play a DVD on my iMAC can I link it to my TV with Apple TV?

  • CJ40 plan cost values not appearing in KKA2 screen

    HI Controllers, I am configuring for Result analysis (POC). Here I need to plan for the WBS element, based on this I will calculate RA POC values. Here my problem is I can see the values from Revenue planning (CJ42)  but i can not see the values from

  • Value does not exist in VIQMEL table due to ILOA-ILOAN field

    Hello All, I am trying to check a PCR/OCR Notification but it seems Notification does not exist. The notification number is not there in VIQMEL table. VIQMEL takes reference of 3 tables - QMEL, QMIH and ILOA. I checked QMIH table for this notificatio