Sie sind auf Seite 1von 10

Forms Personalizations

| Pr

Written by Anil Passi Saturday, 21 April 2007 In this article, I would like to explain different possibilities of Forms Personalizations. urely before explainin! w first we will touch base upon what exactly it is. Why was forms personalization introduced by Oracle in 11. .10! ". #$ %&'.pll is a pro!rammatic methodolo!y for extendin! &racle Forms, e(en for tri(ial tasks. ). 'ultiple de(elopers workin! on same #$ %&'.pll could cause (ersion related headaches

"oes #orms $ersonalization replace %&S'O(.pll! *ot really, howe(er it does pro(ide an alternati(e to most common acti(ities for which earlier one would use #$ Forms personalization is dri(en by the same set of e(ents as that for #$ %&'.pll. +eep in mind that &racle Forms ,ibraries first in(oke the Forms Personalization, and then the #$ %&'.pll too e(ents. )ow do * enable #orms $ersonalizations! -nable the personalizations usin! the .elp/0ia!nostics menu.

What are the +arious components of #orms $ersonalizations! 0ifferent components of &racle Forms Personalizations are listed below. 1ou be!in with reco!nizin! which %ri! you wish to trap and under what conditions. %he condition can be entered usin! the syntax as defined in the pictu

What does the Action 'ab do! .ere you will either chan!e form property, or display messa!es or enable menu etc.

%an * modify S,- ,uery behind the -O. usin/ #orms $ersonalizations! &f course you can. In the below example I am restrictin! the ,&2 to less than 3records by introducin! where row !roup 5uery. tep ". #reate a new record !roup tep ). Attach the newly created record !roup to existin! ,&2 in -6 Form.

%an * call a $-0S,- Stored procedure passin/ it form field +ariables! 1es, usin! the syntax below. 1ote2 1ou can also in(oke F&7' 800, built9in to perform 00,.

%an * call 3uilt*n4s! Indeed, as shown below, you can pick from all the form built9in:s as below.

5ou can also call a form function and pass it parameters usin/ #orms $ersonalizations

$rocessin/ can be aborted if +alidation were to fail

1ou can in(oke e5ui(alent to app8item8property.set8property. I am displayin! the 7e5uired property below, howe(er you can use this option for all supportable properties of ap

1ou can initialize a !lobal (ariable. Initialization code is executed if and only if the !lobal (ariable does not alre $se !lobal (ariables for passin! (ariables back and forth between two forms. Please do not use ;lobal 2ariables if your lo!ic is restricted to a in!le form itself.

1ou can assi!n (alues to form fields usin! !lobal (ariable.

$sin! forms personalizations, you can set the 0efault where clause of the 6,&#+ too. *ote< 0on:t for!et to reset this clause after your desired operation has been finished. %his will facilitate the form standalone mode too.

0itto for &rder by #lause on block.

For displayin! messa!es, you can either enter a plain text, or your messa!e can be displayed from the result of a

,ocal (ariables can be defined and they will be acti(e for throu!hout the session of the current form. $se !lobal (ariables if you wish to share the (ariable between multiple forms. 6elow, >ust for demo, I am settin! the local (ariable to ?.

In the below picture, I am checkin! if local (ariable is ? then display a messa!e.

1ou can enable P-#IA,"9"@ or '-*$"9"@, to create new menu entries under the %ool menu.

As seen below, the abo(e two setups ha(e instantiated the new 'enu Items

P-#IA,"A93? will create entries under 7eports menu P-#IA,3"9B@ will create entries under Actions menu

1ou can capture the click on those newly created menu items by trappin! e(ent '-*$" or P-#IA," Cor whate

Das könnte Ihnen auch gefallen