OAF Search Page

Embed Size (px)

Citation preview

  • 8/12/2019 OAF Search Page

    1/21

    1

    Implementing a Search Page:

    -Open the Jdeveloper

    -Create a New OA Workspace and Empty OA Project

    Select File > New>General > Workspace Configured for Oracle pplications>ok(any name s okay !or a workspace" s#ch as cr#d$jws%

    A!ter yo# clck O!" yo# wll see the Oracle pplications Pro"ect Wi#ardand &ve the name o! the project as shown 'elow

    Clck ne)t * ne)t

    check the $se %epositor& for 'esign (ime check 'o) and provde connecton n!ormaton n Step+ and select the connecton as connection)

    Green*O*+"pr

    apc+oracle+apps+ak+greenmom

  • 8/12/2019 OAF Search Page

    2/21

    +

  • 8/12/2019 OAF Search Page

    3/21

    ,

    Place the .C !le n the drectoryC/J/jdevhome/jdev/d'c0!les/sec#re/mercur&,+apc+com-carl.+d/cnd select t as shown n the a'ove screen$( or Oracle E-.#sness S#te developers#sn& a central2ed Jeveloper NetApp envronment" yo#r .C !les are located n the/#sers/d'c0!les/sec#re/ drectory %

    select yo#r project (myproject$jpr%n the Nav&ator and choose Pro"ect Settings !rom theconte)t men#" or do#'le-clck on yo#r project$

    SelectOAeveloper3ode and OAa&nostc" and move them to the On Options 0istas shown a'ove

  • 8/12/2019 OAF Search Page

    4/21

    4Create 5o#r Pa&e6s 3odel Components

    12C34 Package for Client o/"ects 5O6s7 *++8

    Select the m&pro"ect+"pr project n the Na9igator" r&ht-clck and select New2usiness

    Components Package !rom the conte)t men#$

    78! the Welcomepa&e appears n the .#sness Components Packa&e W2ard" selectNet$

    7Enter apc+oracle+apps+ak+emplo&ee+ser9er as the packa&e name$ Apc$oracle$apps$ak$&reenmom$server

    79er!y that the rado '#tton ;ntit& O/"ects mapped to data/ase schema o/"ects

    s selected$

    7Select Net$

    7Select the Finish'#tton to create the packa&e

    fter creating7 &ou must /e a/le to see:

  • 8/12/2019 OAF Search Page

    5/21

    :

    Create the 2C34 Package for Ser9er O/"ects: 1 ;O6s7 ++8

    - Select the m&pro"ect+"prproject n the Na9igator" r&ht-clck and select New 2usiness Components Package !rom the conte)t men#$

    - 8! the Welcome pa&e appears n the .#sness Components Packa&e W2ard" selectNet$

    - Enter apc+oracle+apps+ak+schema+ser9er as the packa&e name$ apc$oracle$apps$ak$schema$server

    - 9er!y that the rado '#tton ;ntit& O/"ects mapped to data/ase schema o/"ects s

    selected (yo# wll not 'e a'le to create yo#r entty o'ject n ths packa&e ! yo# !al todo ths%$

    - Select the Finish'#tton to create the packa&e

    Create +oracle+apps+ak+emplo&ee+ser9er1apc+oracle+apps+ak+emplo&ee+ser9er8 .C4Jpacka&e n the Na9igator" r&ht-clck and select New pplication *odule+++ !rom the conte)tmen# to open the Applcaton 3od#le (A3% w2ard$

    - 8! the Welcomepa&e appears" select Net$

    - 8n the Namepa&e" spec!y *ain* as the A3 name and ver!y that the Package s apc+oracle+apps+ak+emplo&ee+ser9er

    -Clck the Net'#tton #ntl yo# &et to Step 4 o! 4$

    - 8n the 4a9apa&e" select the Generate 4a9a File1s8 check'o)$

    - Select the Finish'#tton to create the A3$

  • 8/12/2019 OAF Search Page

    6/21

    ;

    .files are created /& the I'; on creation of * as shown 'elow:i8 *ain*+ml

    ii8 *ain*Impl+"a9a1'eca#se o! selectn& the Generate 4a9a File1s8 check'o)8

    ;na/le Passi9ation for the %oot $I pplication *odule

    Passvaton sho#ld 'e ena'led !or all root ths s ncl#ded !orprevew p#rposes$

    - Select the *ain* applcaton mod#le n the Na9igator" r&ht-clck and select ;dit *ain*+++ !rom the conte)t men#$- 8n the pplication *odule Wi#ard" nav&ate to the Propertiespa&e$

    - 8n the Name !eld enter %;(;N(ION-0;5;0$- 8n the 5alue !eld enter *NG;-S((;$Warning: yo# m#st match the case and spelln& e)actly as shown$- Select the dd'#tton$- Select the ppl&'#tton$- Select the O!'#tton to close the pplication *odule Wi#ard wndow

  • 8/12/2019 OAF Search Page

    7/21

    ?

    /out passi9ation:

    @he process o! savn& applcaton state to a secondary med#m (n the case o! OA ramework"data'ase ta'les% s called passvaton$

    O

    @he process o! savn& o'ject state to a secondary med#m$ @hs s smlar to Java 8BO seral2aton" '#tpassvaton s a more &enerc concept$ Seral2aton s one way to save data$

    Consder a m#lt-pa&e p#rchase order creaton !low where the #ser descr'es the order n the !rst

    pa&e" enters one or more lne tems n the second pa&e" and revews the order 'e!ore s#'mttn& t nthe thrd pa&e$ @he p#rchase order data (ts state% m#st reman ntact 'etween each o! the 'rowserre#ests !or the transacton to 'e completed s#ccess!#lly$

    NO@E--*Set the etenton Devel !or root applcaton mod#les only$ o not set t !or nestedapplcaton mod#les as ther passvaton 'ehavor s determned 'y the root applcaton mod#le6scon!raton$ or e)ample" do not set ths property !or applcaton mod#les assocated wth DO9sand attachment pa&es as these applcaton mod#les are nested #nder the man pa&e6s root applcatonmod#le$ owever" 'eca#se they are passvated wth the root applcaton mod#le" nested applcatonmod#les m#st o'serve all the state mana&ement codn& standards$

    Set each root applcaton mod#le6s etenton Devel to 3ANAFE0S@A@E$eason why---* @hs allows OA ramework to recover connectons and memory #nder reso#rce load"

    s#pport sesson !alover" and other pendn& !eat#res s#ch as Save or Dater and J93 !alover

  • 8/12/2019 OAF Search Page

    8/21

    GCreation of ;ntit& o/"ect1;O8 : 1re!er to onon da&ram%

    Create an entty o'ject (EO% !or the FW!-(2-;*P0O

  • 8/12/2019 OAF Search Page

    9/21

    H- Select the apc+oracle+apps+ak+emplo&ee+ser9er .C4J packa&e n the Na9igator7r&ht-clck and select New 5iew O/"ect+++ !rom the conte)t men# to open the 9ew O'jectw2ard$- 8! the Welcomepa&e appears" select Net$- 8n the Namepa&e" spec!y ;mplo&eeSummar&5O as the vew o'ject6s name and ver!ythat the Package s apc+oracle+apps+ak+emplo&ee+ser9er$

    - Select the Net'#tton$-78n the ;ntit& O/"ectspa&e" select the ;mploⅇO n the 9aila/le lst and sh#ttle t tothe Selected lst

    I7Select the Net'#ttonI7Select the ;pert *ode check'o)$ @hs allows yo# to edt the &enerated #ery$I7When yo# are !nshed wth yo#r edtn&" select the (est'#tton to ens#re yo#r synta) scorrect$

    I7Select the Net'#tton" a&an Net'#ttonI78n the 4a9apa&e" deselect the Generate 4a9a File !or 5iew O/"ect Class:;mplo&eeSummar&5OImpl (yo# don6t need to add any code to ths vew o'ject%$Doselect the Generate 4a9a File !or 5iew %ow Class: ;mplo&eeSummar&5O%owImpl tocomply wth OA ramework codn& standards$

    ISelect the Finish'#tton to create yo#r 9O

    dd

  • 8/12/2019 OAF Search Page

    10/21

    1=

    ?uick %e9iew which we ha9e completed till now:

    1% Creaton o! workspace+% Creaton o! project,% Project settn&s" data'ase connectonetc4% .C4J packa&e !or clent sde o'jects:% .C4J packa&e !or server sde o'jects

    ;% Creaton o! A3 #nder .C4J packa&e !or clent sde?% Creaton o! EO #nder .C4J packa&e !or server sdeG% Creaton o! 9O 'ased on EO #nder .C4J packa&e !or clent sdeH% Addn& the 9O to A3 ( re!er to onon da&ram to have a clear c#t%

    Creaton o! 8ntal Pa&e(;mpSearchPG Page%

  • 8/12/2019 OAF Search Page

    11/21

    11-Create a new

  • 8/12/2019 OAF Search Page

    12/21

    1+

    (We create e&on wthn the Pa&e$

    a$ e&on s what wll store yo#r !elds$ @e)t np#t !elds wll 'e o! type messa&e@e)t8np#t$ @hnko! Canvasn +Mto an e)tent$'$ 5o# can have nested re&ons$ Stacked Canvasn +M comes the closest to ths component o!OA ramework$%

    *odif& the region):

    - Select yo#r ;mpSearchPG n the Structurepane and select the region) that Jevelopercreated !or yo#$-set the !ollown& propertes as n property nspector

  • 8/12/2019 OAF Search Page

    13/21

    1,

    8 Pa&eDayo#tNEF8ON S@5DE pa&eDayo#tA3 e!nton apc)$oracle$apps$ak$employee$server$3anA3Wndow @tle APC Employees@tle Search EmployeesA#toooter @r#e

  • 8/12/2019 OAF Search Page

    14/21

    14

    dd a Product 2randing Image: Each Oracle Applcatons pa&e re#res a prod#ct 'randn& ma&e$

    - Select yo#r Page0a&out%N n the Structurepane" r&ht-clck and select New +++product2randing !rom the conte)t men#$- Jeveloper creates a page0a&outComponents !older contann& a product2randingma&e tem (named item)%$ Select ths tem and set the !ollown& propertes

    8 Prod.rand8ma&e Item$ Set ths tem6s propertes as !ollows8 Pa&eelp

  • 8/12/2019 OAF Search Page

    15/21

    1:8tem Style statcStyled@e)tata @ype 9ACA+CSS Class Ora8nstr#cton@e)t3essa&e Appl Short Name AM 3essa&e Name [email protected]@0PAFE0FENEAD

    -We can mod!y(or create new messa&e% the te)t n messa&[email protected]@0PAFE0FENEAD #sn& Applcaton eveloper -* 3essa&es

    (est

  • 8/12/2019 OAF Search Page

    16/21

    1;

    dding a %esults@2ased Search to &our Page:

    i8 dd a ?uer& 2ean to

  • 8/12/2019 OAF Search Page

    17/21

    1?

    ii8 dd a %esults 'ata (a/le to

  • 8/12/2019 OAF Search Page

    18/21

    1G

    - Select the Net'#tton$- 8n the 5iew ttri/utespa&e" select the !ollown& attr'#tes !rom the 9aila/le 5iewttri/utes lst and sh#ttle them to the Selected 5iew ttri/utes lst - Employee8d - #llName

    - EmalAddress - Startate- Select the Net'#tton$- 8n the %egion Itemspa&e" set the property St&leas messageSt&led(et!or all the !elds andleave ttri/ute Setpropertes 'lank as o! now$

  • 8/12/2019 OAF Search Page

    19/21

    1H

    iii8 Set

  • 8/12/2019 OAF Search Page

    20/21

    +=

    -or the" Start'atetem- Set the Search Allowedproperty to (rue$

    - Set the

  • 8/12/2019 OAF Search Page

    21/21

    +11. In D2K-forms we sort of created a Window, attached to Canvas, and then fields within that

    Canvas.However in OA Framewor, thin of !a"e #ein" fm$%Window, thin of &e"ion #ein" a Canvas,and fields #ein" within &e"ions.This is not a formal/accurate understanding of analogy between D2k and Framework, butis close to being logical.2. In D2, 'o(r Forms fm# file was com)iled to fm$. It was fm$ file that was de)lo'ed on mid-tier.In case of OAF, 'o(r OA !a"e is nothin" #(t a *+ file. We call this +D meta data/.Whatever name 'o( "ive to 0!a"e0 in OAF, an *+ file of the same name "ets created. his $mlfile m(st then #e loaded into data#ase #' (sin" *+Im)orter command.. A)art from +D *+ file, almost ever'thin" else is merel' de)lo'ed to 'o(r mid-tier. 3s(all'this is (nderneath 45A6A7O!%oracle%a))s%..%..

    All 'o(r 8ava files will "o (nderneath 8ava to)%oracle%a))s%..%.. etc.9. When #(ildin" 'o(r t(torial, i"nore the ste)s for settin" 0Attri#(te ets0. hese are notmandator'. Oracle mi"ht 8(st have develo)ed their t(torials witho(t incl(din" these. hin ofthese lie 6is(al Attri#(tes of D2K forms to an e$tent/