[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

oracle open form with parameter

Posted on 2014-08-30
4
Medium Priority
?
462 Views
Last Modified: 2014-08-30
hi
i have form open within a button of another form passing a value to open as the follwoing :\
1-st form

 COPY(null,'GLOBAL.form_id');
  :global.form_id := rec_id;
   CALL_FORM('PO');

Open in new window

PO form
If :global.form_id is not null then
v_ID_where := 'po_id = ' || :global.form_id;
Set_block_property('PO_M', default_where, v_ID_where);
go_block('PO_M');
Execute_Query;
ERASE('GLOBAL.form_id');

Open in new window


the form called ok when it open from the 1st form , but when i open po form alone , it sent error message that variable not found
0
Comment
Question by:NiceMan331
  • 3
4 Comments
 

Author Comment

by:NiceMan331
ID: 40294795
I forget to say that the code in second form written for : when new form instance trigger
0
 
LVL 21

Accepted Solution

by:
flow01 earned 2000 total points
ID: 40294841
Referrencing a global variable that is not set gives an error.
So assign a default variable before:

Default_Value(NULL,'global.form_id');
If :global.form_id is not null then
   ...
0
 

Author Comment

by:NiceMan331
ID: 40295041
Setting default value when created in the 1st form ?
0
 

Author Comment

by:NiceMan331
ID: 40295159
OK , Done
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
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
Suggested Courses

834 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