How to get ViewPort for a Region
Hello,
Looking for help with the following situation: I have a page with a vertical PanelSplitter. There is a tree on the left (first) and PanelStretchLayout on the right (second). Within the PSL.center I have a switcher with Regions defined for different task flows. The tree has a selectionListener that shows the appropriate Region based on the VO selected. This is based on demo #50 How-to create and synchronize edit forms for tree node entries (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples). This all works well.
I am trying to implement a dirty check very similar to what is described here (http://jjzheng.blogspot.com/2011/03/using-popup-to-confront-user-to.html).
I am planning on putting code within the TreeSelectionListener to check if the current region is dirty. What is the proper way to access the ViewPort of the current Region in order to perform the viewPort.getTaskFlowContext().isDataDirty() check?
Using 11.1.1.6
Thank you
Rudy