Solved

newbee question on CALL_FORM

Posted on 2004-03-31
4
1,013 Views
Last Modified: 2012-05-04
Here is what I am trying to do.

I am trying to pass the value of :contact.contactid from the parent form to the child form. From reading in the book this is how it is done but this is not working. I get an error with the 'QUERY_CONTACTID'. Can someone plz help?

DECLARE
      v_paramlist_id            PARAMLIST;
      v_paramlist_name      VARCHAR2(15) := 'form_params';
BEGIN
      --set up param list
      v_paramlist_id := get_parameter_list(v_paramlist_name);
      IF NOT id_null(v_paramlist_id)
            THEN
              destroy_parameter_list(v_paramlist_id);
      END IF;
      --
      -- Add paremeters
      add_parameter(v_paramlist_id, 'QUERY_CONTACTID',TEST_PARAMETER,To_Char(:CONTACTS.CONTACTID));
      CALL_FORM(d:\forms\act2.fmx', no_hide, no_replace, no_query_only,share_library_data, v_paramlist_id);
END;
0
Comment
Question by:uTab
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 2

Accepted Solution

by:
aabbas earned 125 total points
ID: 10724576
Exact error (e.g. FRM....) would help tracing the true reason of error. Anyway...

First, you have typo in "add_parameter..." line. It's acually TEXT_PARAMETER. Second, you have told Oracle Forms that pass on To_Char(:CONTACTS.CONTACTID) to the parameter QUERY_CONTACTID of child form, means you must have a parameter in your child form with this particular name. So, the value passed as parameter argument from parameter will be accepted by the child form as a parameter.

You will get a PARAMETER node in Form's Object Navigator....

Hope, it will help.

Best of luck.
0
 

Author Comment

by:uTab
ID: 10724796
How do I add the Query_contact parameter to the child form?
0
 

Author Comment

by:uTab
ID: 10724844
I forgot the error that I am receiving:

FRM-47009: Cannot add parameter QUERY_CONTACT to parameter list: invalid list ID.

Thank you
0
 

Author Comment

by:uTab
ID: 10727654
I ma not getting errors any longer but how do I check to make sure it is passing the proper vairiable or set something in the form to it because contactid := QUERY_CONTACT gives me an error.
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Field name with special character (Ñ) in Oracle 11 185
pivot rows to columns 1 59
Oracle function return value when null 2 31
Oracle Date add 9 26
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question