Professional Documents
Culture Documents
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:
. Create context e!ements in component Contro!!er "or storing the search criteria
1. 3reate node NODE_FLIGHT based on dictionary structure SFLIGHT in the conte7t of the com*onent controller. 3lic% on button Add Attribute from Structure and choose fields CARRID and CONNID.
. Create a context e!ement in component Contro!!er "or storing the "!ight !ist
1. 3reate node NODE_FLIGHTTAB based on dictionary structure SFLIGHT in the conte7t of the com*onent controller. 8. et the cardinality to (..9.
:. 3lic% on button Add Attribute from Structure and choose fields CARRID CONNID FLDATE !RICE C"RRENC# !LANET#!E SEATS$A% SEATSOCC and !A#$ENTS"$.
4. !n !L6 table always dis*lays all fields that are a+ailable in the dictionary, if the conte7t node has a dictionary reference. To only dis*lay the selected fields inside the !L6 table clear the dictionary reference in *ro*erty DICTIONAR# STR"CT"RE in node NODE_FLIGHTTAB.
*get all declared attrib%te$ elem_node_flight-#get_static_attrib tes$ )2PORT)/0 static_attrib tes " str _node_flight ', *create &here condition )F /OT str _node_flight-carrid E3 44, 5O/5ATE/ATE 45ARR)D " 444 str _node_flight-carrid 4444 )/TO ls_where, APPE/D ls_where TO lt_where, E/D)F, )F /OT str _node_flight-connid E3 466664, 5O/5ATE/ATE 45O//)D " 444 str _node_flight-connid 4444 )/TO ls_where, )F str _node_flight-carrid /E 44, 5O/5ATE/ATE 4A/D4 ls_where )/TO ls_where se!arated b7 space, E/D)F, APPE/D ls_where TO lt_where, E/D)F, *read data select 8 from sflight into table lt_flights 91ERE $lt_where', *navigate from <CONTEXT> to <NODE_F !"#T> via lead $election node_node_flighttab " wd_context-#get_child_node$ name " ./ODE_F()01TTA+. ', *fill context node node_node_flighttab-#bind_table$ lt_flights ',
:. 3hange the L)-out D)t) *ro*erty of both +iew container /I elements to $)tri.He)dD)t).
8. !fter +iew L!?@/T6IE$ has been embedded into window .!I9, o*en the conte7t menu of the +iew container E!;3< and choose Embed 6iew.
If the node Component Usage is not disp !"ed in the o#$e%t t&ee' s!(e "o)& %o*ponent !nd &ef&esh the t&ee disp !"
3lic% on the 3ontroller /sage button. The com*onent controller of your $eb 0yn*ro com*onent a**ears on the right side of the screen. .a* conte7t node 9@0E_FLIGHTTAB of your $eb 0yn*ro com*onent to conte7t DATA of the interface controller of the !L6 com*onent.
!fter you ha+e done the ma**ing, the conte7t node DATA has a doubleAarrow inside the folder icon.
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: