6 Replies Latest reply: Apr 4, 2013 7:55 AM by VC RSS

    apex redirect url

    LT.ora
      what thing should be kept in mind to use
      apex_util.redirect_url
      in a dynamic action of a (region) button ?
        • 1. Re: apex redirect url
          VC
          LTaura wrote:
          what thing should be kept in mind to use
          What are you actually trying to do??
          apex_util.redirect_url
          in a dynamic action of a (region) button ?
          This doesn't work if you call from a dynamic action

          Instead try using javascript function apex.navigation.redirect
          • 2. Re: apex redirect url
            LT.ora
            actually I need to take a print of the record that is recently generated by PL/SQL procedure in a dynamic action
            please have a look : http://tinypic.com/r/257es8n/6
            • 3. Re: apex redirect url
              scott.wesley
              In your PL/SQL, could you set the destination in session state, then (conditionally) perform the redirect in a subsequent javascript action (within same DA)
              • 4. Re: apex redirect url
                VC
                LTaura wrote:
                actually I need to take a print of the record that is recently generated by PL/SQL procedure in a dynamic action
                please have a look : http://tinypic.com/r/257es8n/6
                Ok, Just copy the call apex.navigation.redirect(...blah..blah..blah to another true action within this dynamic action with a sequence higher than the current plsql one.

                and make sure you replace the *:P18_XUNIKEY* with *$v('P18_XUNIKEY')* and that should work

                One last thing to mention was it seems you are opening an oracle report page within the same window (loosing the apex application session window), is that what you want?? if not you could probably open that in a popup window or new tab etc.

                Just corrected to $v('P18_XUNIKEY')

                Edited by: VC on Apr 4, 2013 9:53 AM
                • 5. Re: apex redirect url
                  LT.ora
                  Thanks a load Vikram
                  wow works like Magic :)

                  its a good idea to have a popup window I wrote :
                  apex.navigation.popup({url: 'http://192.168.9.12:8889/reports/rwservlet?repo...='+ $v('P18_XUNIKEY') 
                  +'&user...he&desformat=pdf', width: 500, height: 400, toolbar: 0, menubar: 0, location: 1, status: 0,
                   scrollbars: 0, resizable: 0,left: 500,top: 400});
                  I need to hide address bar any idea how to do that ?
                  • 6. Re: apex redirect url
                    VC
                    LTaura wrote:
                    I need to hide address bar any idea how to do that ?
                    You can try that using a custom js function with window.open and specify location=no
                    http://www.w3schools.com/jsref/met_win_open.asp

                    But it depends on the browser if it supports or not

                    http://stackoverflow.com/questions/3570503/javascript-window-open-location-feature-not-working