Re: Calling Forms4 User Exits from a Library?

From: Dennis Moore <dbmoore_at_us.oracle.com>
Date: Fri, 22 Apr 1994 21:32:16 GMT
Message-ID: <1994Apr22.213216.21039_at_oracle.us.oracle.com>


I believe that the way most people handle this problem (see below) is that they always pass into libraries all the values it will need to do its processing. In fact, this is the only "right" way to use libraries, since they can be called from multiple forms (or even Oracle Reports or Oracle Graphics applications!), where the globals, items, or anything else may have differing names -- if you try to always use the same names, you will find yourself with a terrible maintenance and workaround problem.

If you really need to, you can use NAME_IN to get Forms bind variables:

Instead, use the NAME_IN built-in function to indirectly reference the values of bind variables:

	Name_In('block_name.item_name')
	Name_In('GLOBAL.variable_name')
	Name_In('SYSTEM.variable_name')

  • Dennis Moore, my own opinions, etcetcetc

In article <CoMKyG.4A4_at_apollo.hp.com> daveo_at_wal.hp.com (David Owens) writes:
>Greetings Forms Experts,
>
>Have you ever called a user exit from a library? The reason I ask is
>that is seems that user exits can only be passed the following
>variables:
>
> [pg. G-6 "Oracle Forms Ref Manual, Volume 2"]
>
> block.item, parameter, system vars, global vars, host language vars
>
>Whilst libraries CANNOT refer to any of the following:
>
> [pg. 17-5 "Oracle Forms User Guide"]
>
> block.item, global, system vars, parameters
>
>I gotta believe that someone has a library procedure that gets data
>passed to it from a form and in turn calls a user exit which processes
>this data. I can't seem to understand how to do this given the
>situation described. I'll bet the answer has to do with Name_In
>functions or some other obscure thing.
>
>I'll be eternally grateful if you post an example, please!
>
>I'm using Forms V4.0.11 and Oracle 7.0.15 all under HP-UX.
>
>--
>David Owens ------- ___o Hewlett-Packard
> daveo_at_hpwala.wal.hp.com ------- _\ <,_ Clinical Info Systems
> HP-Desk: David OWENS / HP1700/03 ------- (_)/ (_) 3000 Minuteman Road
> (508) 659-4861 ------- Andover MA USA
> FAX: (508) 686-1258 ------- TN 659-4861
Received on Fri Apr 22 1994 - 23:32:16 CEST

Original text of this message