When are controller methods called in WD4A? -


can explain me when methods called in wd4a applications? particularly methods defined in application controller (and not view (controllers)). i'm looking @ sample codes , there's supply_unit method in componentcontroller reads few values table , puts these in controller context available in view_2, based on context node assigned value user on view_1.

but don't see @ point method get's called (the application has more these 2 views) , how application knows needs called can shown in view_2

sap's standard documentation webdynpro pretty good, , goes through of this. page (and pages below it) describe programming controller methods in general. suggest taking couple days , working through of webdynpro abap documentation, coding examples go. you'll have more complete understanding way.

methods should implemented in component controller (as opposed view controller) when logic of method used (or may used) across multiple views. example, if have context node thats displayed in multiple nodes (like list of units of measure), makes sense program it's supply method once in controller, instead of in each view.

your question seemed more supply functions (supply_unit sounds name of supply function). these methods called automatically system first time context node read. used initialize contents of node. more info can found here.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -