oracle open form with parameter

i have form open within a button of another form passing a value to open as the follwoing :\
1-st form

  :global.form_id := rec_id;

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);

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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NiceMan331Author Commented:
I forget to say that the code in second form written for : when new form instance trigger
Referrencing a global variable that is not set gives an error.
So assign a default variable before:

If :global.form_id is not null then

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NiceMan331Author Commented:
Setting default value when created in the 1st form ?
NiceMan331Author Commented:
OK , Done
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.