Exercise Unit Object Value Help
Exercise Unit Object Value Help
PURPOSE: !t the end of this Tutorial you will be able to /nderstand how larger $eb 0yn*ro *ro,ects can be structured with se+eral $eb 0yn*ro com*onents #e able to include a reusable $eb 0yn*ro com*onent into another $eb 0yn*ro com*onent 1now how methods of an used $eb 0yn*ro2s Interface 3ontroller is called
PREREQUISITES: Logon to the !" system and start !#!" $or%bench & E'(). Logon data is *ro+ided by your instructor.
PROCEDURE:
Page 1
!""!#$%U&!HE'%
tart the !#!" $or%bench &se80) and create the new $eb 0yn*ro com*onent 445((5I6"/T57EL"
Page (
,. De)ine an -ssistance Class )or the Component an+ maintain text element
3reate an !ssistance 3lass for maintaining the te;t symboles for the a**lication.
0ouble 3lic% on the !ssistance 3lass name and from the .enu <9T9=>Te;t Elements to created or edit te;t elements.
Page .
Page 1
4. #nstatiate the Usage o) the component WD5!OV* in the Vie0 Controller an+ the Win+o0 Controller
<o the the :iew2s *ro*erty tab. 3lic% on the 38E!TE #utton to instantiate the usage of the a+ailable controllers.
In the window, follow the same *rocedure to instantiate the usage of $0859: controller.
Page 4
Page 7
Ta%e FB hel* on the e+ent colmn and e+ent O!" needs to be selected.
0ouble 3lic% on the method ON_O!" and modify the method as *er *ro+ided source code C declare data structures for the fields to be dis*layed and C for the table columns of the selection list, if necessary ty*es: begin of t5stru5in*ut, C add fields for the dis*lay of your search in*ut here early ty*e sflight>fldate, late ty*e sflight>fldate, end of t5stru5in*ut,
begin of t5stru5list, C add fields for the selection list here carrid ty*e sflight>carrid, connid ty*e sflight>connid, fldate ty*e sflight>fldate, end of t5stru5list.
Page 8
data: l5search5in*ut ty*e t5stru5in*ut, l5select5list ty*e table of t5stru5list, l5te;t ty*e wdr5name5+alue,
l5label5te;ts ty*e wdr5name5+alue5list, l5column5te;ts ty*e wdr5name5+alue5list, l5window5title ty*e string, l5grou*5header ty*e string, l5table5header ty*e string, l5selo*t ty*e ba*isfldra,
l5selo*t5tab ty*e table of ba*isfldra, l5flight5list ty*e table of ba*isfldat, l5ba*i5return ty*e table of ba*iretD, wa5select5list ty*e t5stru5list, wa5flight5list ty*e ba*isfldat, l5a*i ty*e ref to if5wd5+iew5controller,
l5msg5manager ty*e ref to if5wd5message5manager, wa5ba*i5return ty*e ba*iretD, l5msg5te;t ty*e string,
l5flights
case o+s5callbac%5ob,ect>=*hase5indicator.
Page 9
when if5wd5o+sG=co5*hase5(. Hconfiguration *hase, may be omitted C in this *hase you ha+e the *ossibility to define the te;ts, C if you do not want to use the defaults &00I3>te;ts)
l5te;t>name G IE!8L?I. Hmust match a field name of search l5te;t>+alue G wd5assist>=if5wd5com*onent5assistanceJget5te;t& %ey G I((1I ). insert l5te;t into table l5label5te;ts.
l5te;t>name G IL!TEI. Hmust match a field name of search l5te;t>+alue G wd5assist>=if5wd5com*onent5assistanceJget5te;t& %ey G I((DI ). insert l5te;t into table l5label5te;ts.
C C C
l5te;t>name G K39L/.61K. Hmust match a field in list structure l5te;t>+alue G K.?TELTDK. Hwd5assist>=get5te;t& K((DK ). insert l5te;t into table l5column5te;ts.
l5window5title G wd5assist>=if5wd5com*onent5assistanceJget5te;t& %ey G I((3I ). l5grou*5header G wd5assist>=if5wd5com*onent5assistanceJget5te;t& %ey G I((BI ). l5table5header G wd5assist>=if5wd5com*onent5assistanceJget5te;t& %ey G I((5I ).
C C C
o+s5callbac%5ob,ect>=set5configuration&
Page 1"
when if5wd5o+sG=co5*hase5D. C If *hase 1 is im*lemented, use the field in*ut for the C selection of the table. C If *hase 1 is omitted, use +alues from your own conte;t.
Page 11
if o+s5callbac%5ob,ect>=Fuery5*arameters is not bound. CCCCCCCC T909 e;ce*tion handling endif. assign o+s5callbac%5ob,ect>=Fuery5*arameters>=C to EFuery5*arams=. if not EFuery5*arams= is assigned. CCCCCCCC T909 e;ce*tion handling endif. C C call business logic for a table of *ossible +alues l5select5list G MMM l5selo*t>low G EFuery5*arams=>early. l5selo*t>high G EFuery5*arams=>late. l5selo*t>o*tion G I#TI. l5selo*t>sign G III. insert l5selo*t into table l5selo*t5tab.
call function I#!"I5FLI<7T5<ETLI TI tables date5range G l5selo*t5tab flight5list G l5flight5list return G l5ba*i5return.
Page 1(
Page 1,
,. -ttach the create+ OV* help to CO$$#D )iel+ in the Vie0 Context.
7ere we will try acti+ating the standard searchel* for 3!88I0 field in the :IE$ conte;t and will learn to attach the created 9: to the 3966I0 field of the :IE$ 3onte;t.
Page 1.
Steps :
3reate a $eb 0yn*ro a**lication for your $eb 0yn*ro com*onent:
Test your $eb 0yn*ro a**lication. The result will loo% li%e the following:
Page 11
Page 14
Page 17