[Event] Read the content of another page
<i>The following refers to a BSP application with Pages with Flow logic.</i>
An application is composed with a <i>contentArea.htm</i> page and a <i>menu.htm</i> page.
There is a button on the <i>contentArea</i> page that allows user to save his/her inputs.
I would like to save those inputs when he/she navigates away (via the <i>menu</i> page) from the current page in order not to lose the data.
Basically, it would mean trigerring the Save button from the menu page which - as seen in various posts on this subject - is highly unadvised...
The problem is that I have to read the data (stored in <input>) on the <i>contentArea</i> page. To achieve this, I use the get_data and get_cell_value methods of CL_HTMLB_MANAGER.
The problem I face is that it uses runtime->server->request... and I can't manage to get it right from the <i>menu</i> page. The idea would be to read the content of <i>contentArea</i> at runtime.
Is there a way to achieve this with pagse with Flow logic ??
Many thanks in advance!
Message was edited by: Guillaume Garcia
Durairaj Athavan Raja replied
based on the menu choosen on menu.htm are you loading different pages in contentarea.htm or ...? how are you changing the contentarea.htm content based on th menu selected from menu.htm?
1. if its differnt pages on content area for different content we could use onunload event of the page to capture moving away from the page and do the necessary processing.
3. as the user enters values in contentarea.htm write them to serverside cookie and use it later when they come back to the page again.
let me know how the contentarea.htm content changes based on user selection in menu.htm