0% found this document useful (0 votes)
228 views

Oracle Application Express (APEX) : Project Implementation For COSC 4120 Database Applications Lab 5

This document discusses creating and customizing forms in Oracle Application Express (APEX). It covers creating a form page and regions, setting region and item attributes, adding conditional and hint text regions, and changing item types to use list of values (LOV). The document also provides steps for creating a table, running the form from a report, and modifying the form and page appearance.

Uploaded by

sunnyxm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
228 views

Oracle Application Express (APEX) : Project Implementation For COSC 4120 Database Applications Lab 5

This document discusses creating and customizing forms in Oracle Application Express (APEX). It covers creating a form page and regions, setting region and item attributes, adding conditional and hint text regions, and changing item types to use list of values (LOV). The document also provides steps for creating a table, running the form from a report, and modifying the form and page appearance.

Uploaded by

sunnyxm
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 32

Oracle Application Express (APEX)

Project Implementation for COSC 4120 Database Applications Lab 5

Creating APEX Forms


Creating form R nning form from a report C stomi!ing form
Region attrib tes Page appearance S"o# an$ "i$e region% con$itional region% "int region Item attrib tes Displa& onl& te't fiel$s

List of (al es )LO*+

Oracle APEX Form


,orms are ser interfaces t"at enable $ata manip lation A n mber of #i!ar$s can be se$ to create forms

a tomaticall& or man all&


Data an$ form elements are place$ in regions Region attrib tes control region placement an$

positioning
Item attrib tes control t"e placement an$ st&le of form

elements )items+ insi$e of regions

Working with Form


Creating a table an$ $ata inp t form R nning t"e form #it" a report C"anging t"e appearance of a page b& altering region

attrib tes
-a.ing region con$itional A$$ing a region to contain "int te't C"anging item t&pes to LO*

Creating Table HT_EMP


Create t"e /012-P table
Incl $e table% se3 ence% triggers% an$ $ata

Creating Form Page


Create a page containing an inp t form
4se t"e e'isting An&Co Corp application

Create page ,orm ,orm on a table or (ie#


0able5(ie# name6 /012-P Page name6 /0 2mplo&ee Region title6 /0 2mplo&ee 7rea$cr mb6 7rea$cr mb 7rea$cr mb entr& name6 /0 2mplo&ee 7rea$cr mb parent entr&6 /ome

Creating Form Page

Creating Form Page


0ab options
4se an e'isting tab set an$ create a ne# tab #it"in t"e

e'isting tab set


0ab set6 0S1 )/ome% Department% 2mplo&ee8+ 0ab label6 /0 2mplo&ee

Creating Form Page


Primar& .e&
Primar& .e& t&pe6 Select primar& .e& col mn)s+ Primar& .e& col mn6 2-P1ID

Creating Form Page


Define t"e so rce for t"e primar& .e& col mns
So rce t&pe6 2'isting trigger

Creating Form Page

Creating Form Page

Running Form Creating Mo!e"


Creating mo$e for insert operation
4RL en$ #it" 9P:12-P1ID6;

Running Form #$!ating Mo!e"


4p$ating mo$e for $elete an$ p$ate operations
4RL en$ #it" 9P:12-P1ID61; )#it" a (ali$ (al e+

Running Form %rom a Re$ort


Create an interacti(e report page #it" lin.s to point to t"e

form page for p$ating mo$e


Create lin. on 2-P1ID for p$ate an$ $elete

Running Form %rom a Re$ort


Create a b tton on t"e report page for insert
Rig"t clic. /0 Report region Create region b tton 7 tton name6 CR2A02 Label6 Create Position6 Rig"t of interacti(e report searc" bar Action6 Re$irect to page in t"is application Page6 : )t"e /012-P form page+ Clear cac"e6 : Create b tton

Running Form %rom a Re$ort


-o$if& t"e form to ret rn to t"e report page
A$j st brea$cr mb% b ttons% an$ tabs 7rea$cr mb
Rig"t clic. brea$cr mb 2$it brea$cr mb Setting brea$cr mb parent entr&

Running Form %rom a Re$ort


-o$if& t"e form to ret rn to t"e report page
7 tton cancel
Setting re$irect page

Action b ttons create5delete5apply changes


2$it t"e after processing branc"

Running Form %rom a Re$ort


-o$if& t"e form to ret rn to t"e report page
0abs
S"are$ components 0abs -anage tabs Delete t"e tab for t"e form 2$it /0 Report stan$ar$ tab 0ab also c rrent for pages6 : )t"e form page+

Changing Page A$$earance


C"ange t"e region attrib tes on t"e form page
2$it t"e region title to6 2mplo&ee Info

2$iting Item Attrib tes


C"ange item labels C"ange item #i$t" Reor$er items Align items ,iel$ template
Re3 ire$5optional <it"5#it"o t "elp

&ealing with &is$la' Onl' (tems


Items for a $it p rpose C"ange a $it items to $ispla& onl&
P:1R2C1CR2A021DA02 P:1R2C14PDA021DA02
) se &o r page n mber+

-o(e a $it items to t"e ne#l& create$ a $it region


=e# region6 /0-L region 0itle6 A $it Information -o(e a $it items to t"e ne# region )$rag > $rop+

C"ange t"e region to "i$e5s"o#

&is$la' Onl' Te)t Fiel!

Hi!e an! *how Region

A!!ing Region Footer

Con!itional Region
Create a $ispla& con$ition for t"e A $it Information

region
Displa& onl& if t"e 2mplo&ee ID is not n ll 2mplo&ee ID6 P:12-P1ID ) se &o r page n mber+

A!!ing Hint Te)t Region


Create region /0-L region /0-L 0itle6 /int Region template6 Si$ebar region Displa& point6 Page template region position ? /0-L te't6
4se t"is page to enter an$ @br 5A maintain emplo&ee

informationB

Create Region

A!!ing Hint Te)t Region

+ist o% ,alues +O,"


A table loo. p% or list of (al e )LO*+% offers t"e ser a

list of c"oices from t"e relate$ table


4ser clic. on t"e item selecte$ an$ t"e application #ill

store t"e PC from t"e master table in t"e ,C fiel$ of t"e relate$ table
0"e ser ne(er nee$s to .no# t"e (al e of t"e .e& an$

onl& sees t"e associate$ $escription


,or e'ample% $epartment n mber an$ emplo&ee manager

Changing (tem T'$e to +O,


2$it item for t"e $epartment )P:12-P1D2P0+ C"ange item t&pe to select list )list of (al es+

Changing (tem T'$e to +O,


4se one of t"e t#o #a&s
Create $&namic list of (al es Create a name$ LO* for re se
Create list of (al es ,rom scratc"

=ame6 D2PAR0-2=0 0&pe6 D&namic D er&6

4se a name$ LO*

Running Form with +O,

Rea!ings
Application 2'press A$(ance$ 0 torials
/o# to control form la&o t

You might also like