ABAP Webdynpro和WebClient UI不同的會話管理機制

i042416發表於2020-08-15

in the sample ABAP webdynpro component ZPOST, the content of search result table is bound to context node POSTRESULT of component controller:


ABAP Webdynpro和WebClient UI不同的會話管理機制


The runtime instance of component controller will change each time when we navigate to detail page and back to search page, see testing below. The first time ZPOST is launched:


ABAP Webdynpro和WebClient UI不同的會話管理機制


Navigate back to search page, the WDDOINIT is called the second time:


ABAP Webdynpro和WebClient UI不同的會話管理機制


The third time:


ABAP Webdynpro和WebClient UI不同的會話管理機制


This means UI developers should develop their own logic to store the search result data before navigation to detail page (store it somewhere) , and restore it from somewhere when UI is navigated back to search page.

Below is one example of data store and restore via assistant class:

(1) store the search result when search button is clicked and search result is available:


ABAP Webdynpro和WebClient UI不同的會話管理機制


(2) When inbound plug of MAIN window is called, which means the search view will be rendered again, fetch the stored data from assistant class and bind it to component controller context node again.


ABAP Webdynpro和WebClient UI不同的會話管理機制


While in Webclient UI component,

There is central, consistent and efficient way to store the data for navigation:


ABAP Webdynpro和WebClient UI不同的會話管理機制 ABAP Webdynpro和WebClient UI不同的會話管理機制


要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

ABAP Webdynpro和WebClient UI不同的會話管理機制


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2712060/,如需轉載,請註明出處,否則將追究法律責任。

相關文章