Hi,
i new to WebDynpro,
i do the exercise 3 from Ja312 and in the Book i have to Add
this code Below:
the problem is that i have redlines in getCmp_firstname
and in wd.Context how can i solve it?
Regards
For resolving the issue of getCmp_firstname , i go to the component controller "Exc_IntroController" and select the context tab. There in the left Window i have context ->firstname ->lastname
public void onPlugFromStartView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ) { //@@begin onPlugFromStartView(ServerEvent) String firstname = wdThis.wdGetExc_IntroController().wdGetContext(). currentContextElement().getCmp_firstname(); String lastname = wdThis.wdGetExc_IntroController().wdGetContext(). currentContextElement().getCmp_lastname(); if ( ( firstname!=null ) & (lastname!=null)){ response = "hellow , "+firstname+" " +lastname ; }else { response = "Hellow, stranger"; } wd.Context.currentContextElemnt().set_txtviewresult(response); //@@end }