Sie sind auf Seite 1von 3

OAF Concepts

Directory Structure for OAF BC Components Entity Object - oracle.apps.ak.<object name>.schema.server View Object & Viewl Link &AM- oracle.apps.ak.<object name>.server a!e & "ontroller - oracle.apps.ak.<object name>.web#i LOV - oracle.apps.ak.<object name>.lov.server$"ontains VO objects % Controller &an'les #ser interaction(wo metho's ) *. p#blic voi' process+e,#est$OA a!e"onte-t pa!e"onte-t. OA/eb0ean web0ean% 1. p#blic voi' process2orm+e,#est$OA a!e"onte-t pa!e"onte-t. OA/eb0ean web0ean% Metho' arameters ) OAPageContext pageContext 3nter4ace which provi'es application conte-t an' in4ormation speci4ic to a client re,#est. (he OA a!e"onte-t provi'es A 3s which can be classi4ie' into the 4ollowin! broa' cate!ories +e,#est arameters5 !et arameter6ames$% !et arameter$7trin! name% !et arameterVal#es$7trin! name% !et arameterObject$7trin! name% !et8ecrypte' arameter$7trin! param6ame% etc.. 2orm O7( "onte-t5 is2orm7#bmission$% !et2orm6ame$% etc.. "lient an' server si'e re'irects94orwar's5 !et"#rrent:rl$% !et"#rrent:rl2or+e'irect$% !et2orwar':+L$% etc .. OAWebBean webBean ;ets a han'el o4 a bean 4or that re!ion .$%. All OA 2ramework pa!es are comprise' o4 a hierarchy o4 web beans with an OA a!eLayo#t0ean at the root. "ommon :ses A''in! "hil'ren to the /eb 0ean &ierarchy- a''3n'e-e'"hil'$:36o'e chil'% a''3n'e-e'"hil'$int chil'3n'e-. :36o'e chil'% etc.. 2in'in! "hil' /eb 0eans in the &ierarchy 4in'"hil'+ec#rsive$7trin! name% 4in'3n'e-e'"hil'+ec#rsive$7trin! name% "ontrollin! +en'erin! set+en'ere'$boolean ren'ere'% is+en'ere'$% ..

Some Useful codes Calling AM method by passing parameter OAApplicationMo'#le am < pa!e"onte-t.!etApplicationMo'#le$web0ean%= i4 $>search>.e,#als$pa!e"onte-t.!et arameter$OA/eb0ean"onstants.EVE6(? A+A M%%% @ 7ystem.o#t.println$> 7earch event has 4ire'...>%= 7trin! Emp3' < pa!e"onte-t.!et arameter$>Employee3'>%= 7trin! 8epti'<pa!e"onte-t.!et arameter$>8epartment3'>%= 7erialiAableBC parameters < @ Emp3'.8epti' D= 7erialiAable l?email<am.invokeMetho'$>e-ec#teE#ery>.parameters%= D Ways for edirecting to a !age 1. getCurrentUrl() 2. getCurrentUrlForRedirect() 3. getForwardURL() 4. forwardImmediately(String function ame! "yte menuConte#t$ction! String menu ame! %a&'(a) )aram&! "oolean retain$(! String add*readCrum") +. forwardImmediately,oCurrent-age(%a&'(a) )aram&! "oolean retain$(! String add*readCrum") .. &etForwardURL(String url! String function ame! "yte menuConte#t$ction! String menu ame! %a&'(a) )arameter&! "oolean retain$(! String add*readCrum"! "yte me&&agingLe/el) 0. &etForwardURL(String function ame! "yte menuConte#t$ction! String menu ame! %a&'(a) )arameter&! "oolean retain$(! String add*readCrum"! "yte me&&agingLe/el) 1. &etForwardURL,oCurrent-age(%a&'(a) )aram&! "oolean retain$(! String add*readCrum"! "yte me&&agingLe/el) 2. &etRedirectUrl$fter-rinta"le(String refre&'Url) "O# $%ent 1. 'ere are &ome &cenario& w'ere we need to ta3e &ome action on t'e "a&i& of L45! L45 fire& t'ree e/ent&6 2. 1) lo/U)date 6 w'en u&er &elect& a /alue from lo/.

3. 2) lo/5alidate6 w'en u&er enter& a /alid /alue in t'e lo/ in)ut and ta"& out t'en lo/ doe&n7t get )o)8u). 4. In t'i& ca&e lo/5alidate e/ent i& fired. +. 3) lo/-re)are6 w'en u&er clic3& on torc' icon6 9lo/-re)are9 e/ent i& fired. (-a&&ing $rray to 4racle -rocedure )Im) Lin3 'tt)6::"etteratoracle.com:)o&t&:328)a&&ing8array&8of8record8ty)e&8"etween8oracle8and8 ;a/a

Das könnte Ihnen auch gefallen