oracle adf - Progress Message -
How to add progress messages such as "Receiving data" practically. When the data is received, I need to display this message on an empty page. I'm new to ADF, so I'm sorry if this is something very basic I could not find it on the net.
You can use JavaScript in your page or pageframement. My example uses a piece of a page, so the popup id should have an area. If you are having trouble finding the correct ID, you can view it from any browser, using View Source, and the name that you have given (in this case, poppop).
& lt; Af: resource type = "javascript" & gt; Function enforcementPrevent user input (evt) {var popup = AdfPage.PAGE.findComponentByAbsoluteId ('pt1: r1: 0: splashPopup'); If (popup! = Null) {AdfPage.PAGE.addBusyStateListener (popup, handbasstate); Evt.preventUserInput (); }} Function handle buzest (evt) {var popup = AdfPage.PAGE.findComponentByAbsoluteId ('pt1: r1: 0: splashPopup'); If (popup! = Null) {if (evt.isBusy ()) {popup.show (); } Else if (popup.isPopupVisible ()) {popup.hide ()); AdfPage.PAGE.removeBusyStateListener (popups, handbasstate); }} & Lt; / Af: Resources & gt;
Popup inside the page fragment. This displays a simple GI animation of the spinning circle if you need it on Google, you can find many more animations.
& lt; Af: popup id = "p1" content delivery = "immediate" & gt; & Lt; Af: dialog id = "d2" type = "none" closeIconVisible = "false" title = "loading" & gt; & Lt; Af: panelGroupLayout id = "pgl5" layout = "vertical" halign = "center" & gt; & Lt; Af: image source = "/ images / loading.gif" shortDesc = "data loading ..." id = "i1" /> & Lt; / AF: panelGroupLayout & gt; & Lt; / Air Force: Dialog & gt; & Lt; / AF: Popups & gt;
Now, I think that you want to show popup by pressing a button or an image link during a long-running query or any other long running process. For this you have to define client listener on your component, which uses the above defined JavaScript methods.
& lt; Af: commandImageLink text = "test longrunning query" id = "cil1" icon = "/ icon / excel jpg" action = "# {myBean.doStuff}" & lt; AFL: Client Listener Method = "Provider User Input" type = "Action" & gt; & Lt; / AF: clientListener & gt; & Lt; / AF: commandImageLink & gt;
Comments
Post a Comment