Home » Developer & Programmer » Forms » Need Assistance in Logic
Need Assistance in Logic [message #597436] Fri, 04 October 2013 11:55 Go to next message
praveen.kumar
Messages: 4
Registered: August 2013
Junior Member
Dear Experts
I couldn't think of a logic for the below issue and please suggest what can i do.

Form Name: CUST
Field Name: Org Name

Form Name: ACCT
Field Name: First Name

I am calling the ACCT form within CUST Form via button(when-button-pressed trigger). Now i have to put a constraint so that users atleast enter Org Name(CUST form) or the First Name(ACCT) form.

How can i do do this. I have attached a snapshot of what i am required to do.

Regards
Re: Need Assistance in Logic [message #597454 is a reply to message #597436] Fri, 04 October 2013 12:43 Go to previous messageGo to next message
joy_division
Messages: 4963
Registered: February 2005
Location: East Coast USA
Senior Member
put org name into global variable.
on second form check both global variable and first name.
decide what to do when/if either, both or none are null.
Re: Need Assistance in Logic [message #597456 is a reply to message #597454] Fri, 04 October 2013 12:46 Go to previous messageGo to next message
praveen.kumar
Messages: 4
Registered: August 2013
Junior Member
Thanks. But can u let me know how can i put it in a global variable
Re: Need Assistance in Logic [message #597492 is a reply to message #597456] Sat, 05 October 2013 02:34 Go to previous message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
The simplest option is
:global.org_name := :your_block_name.org_name;

Or, you could use DEFAULT_VALUE built-in.
Previous Topic: java.lang.ClassNotFoundException error when running a form
Next Topic: Tools to change Oracle Forms Look and Feel
Goto Forum:
  


Current Time: Fri Apr 26 18:54:46 CDT 2024