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不同的会话管理机制

相关文章:

  • 2021-09-19
  • 2021-06-21
  • 2021-12-22
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2021-09-23
  • 2021-06-03
猜你喜欢
  • 2021-07-17
  • 2021-07-13
  • 2021-04-26
  • 2021-05-11
  • 2021-07-10
  • 2021-12-13
  • 2022-12-23
相关资源
相似解决方案