asked
2013-03-11 10:24:15 +0800
Senthilchettyin 2623 ● 3 ● 8
http://emrpms.blogspot.in...
In my project i have borderlayout where top contains the menu and center area is to display the screen after any one menu is
selected.
Now assume the following use case.
- After one menu is clicked, let us show the one.zul file in the center area.
Assume that one.zul is a listing screen which contains some search condition and user will enter some search and click on search
button. Then the one.zul file will list the records from the patient table.
Now in the in the list, one of the column is insurance (which is another screen to create insurance for the patient).
Now when the user click on the insurance column for any particular patient, then let us load the insurance.zul in the same
center area (Now i have to destroy the one.zul and load the insurance.zul).
Now assume that, in the insurance.zul, we have a back button. On Clicking of back button, i need to load the one.zul again
with the filterd list. How we can do this ? One way, again i can the load the one.zul in the center area,but the search condition
entered by the user will not there, because we are reloading the screen again.
What is the best method to resolve this use case.
And also, it may be chain of links, for example, from the insurance.zul, user may go to another screen and using back button,
it has to come to insurance.zul and back button in the insurance.zul, it has to come to one.zul
Any best practice to resolve this use case ?