How Do I send variables to new window since cflocation won't work?

I have a form that sends data to itself using <FORM action="#getfilefrompath(cgi.script_name)#" method="post">
It is then either saved or updated, then the flyer_id sent to pdf_view.cfm to view it in a PDF format. I am using cflocation to go to another page with the flyer_id:
<cflocation url="flyer_pdf.cfm?flyer_id=#flyer_id#">
Where the flyer_id is used to query the appropriate info on the pdf_view.cfm. What I really would like to happen is the varable flyer_id to automatically open the pdf_view.cfm page in a new window, after saving/updating the flyer.
How can this be done?

Hi rickaclark54,
You can open a new window using javascript.Please take a look at the following example.
Page Name:Openwindow.cfm
<!--- Do what operation you want to perform here --->
<!--- The following code will a new window --->
<cfset flyer_idvar=45>
<script type="text/javascript">
    window.open('openwindowcont.cfm?flyer_id=<cfoutput>#flyer_idvar#</cfoutput>','_blank','wi dth=400,height=200')
</script>
Page Name:openWindowcont.cfm
<cfif isDefined("URL.flyer_id")>
    <cfoutput>#URL.flyer_id#</cfoutput>
<cfelse>
    <cfoutput>in not available!!!!!!!</cfoutput>
</cfif>
by this way you can open a new window and pass data through url.
Thanks
Saurav

Similar Messages

  • How to call a servlet in new window without toolbar from OA page

    How to call a servlet in new window without toolbar from a OA page?Please provide sample code

    I have tried with the way suggested in Mukul's blog using javascript in Destination URI property.
    I tried to open a OA Page and from which forwarded it to a servlet..
    It is showing the error:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: The application id or shortname () you entered does not exist.
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.getAppId(OAWebBeanFactoryImpl.java:5391)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at oa_html._OA._jspService(_OA.java:86)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
         at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:175)
         at oa_html._OA._jspService(_OA.java:96)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)

  • HT201077 how do i send out a new invitation to my photo stream?

    I'm trying to invite other contacts to my photo stream but I'm not the owner of the stream. How can I do it or do I need to owner to send the invitation and how would he send out the new invitations?

    Only the owner of the shared stream can invite people to subscribe to it.

  • HT2480 I have a new windows 8 laptop required at work and want to sync my iphone 5 contacts, calendar, etc with OUtlook.  How?

    I have a new windows 8 laptop required at work and want to sync my iphone 5 with outlook.  We do not have an exchange network

    Have a look at this: http://support.apple.com/kb/DL1455

  • FF Less stable than IE. Numerous crashes, the latest quirk is that it will open a new window with a website already working on and NONE of the iterations of FF work. Have to reboot computer because can't even exit FF. Fix it or on to Chrome.

    FF Less stable than IE. Numerous crashes, the latest quirk is that it will open a new window with a website already working on and NONE of the iterations of FF work. Have to reboot computer because can't even exit FF. Fix it or on to Chrome.

    '''''"a new FF iteration"'''''
    No such thing. All Firefox windows and tabs run in a single '''firefox.exe''' process, unlike IE which has a separate process for each window, or Chrome which opens a new process for each tab.
    As far as the Firefox SafeMode, you can't open it when Firefox is running ''(unless you open a separate Profile purposely)'', if you try all you will get is another window in the "regular mode".
    You're not going to be able to discover the cause of your problem if you're unwilling to follow established troubleshooting procedures, regardless of how intermittent the fault occurs. I wouldn't be surprised of you have an add-on installed which is causing that problem.
    Another course of action would be to create a new Profile, which is like starting from scratch with a completely new Firefox installation. <br />
    http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows

  • I have a macbook pro. i have a photosmart 7510. we just bought a new windows tower and the printer works wireless for us, but now the mac does not print anymore wirelessly. i keep getting a message Network host 'HPE93F2A.local.' is busy. what can i do to

    I have a macbook pro. i have a photosmart 7510. we just bought a new windows tower and the printer works wireless for us, but now the mac does not print anymore wirelessly. i keep getting a message Network host 'HPE93F2A.local.' is busy. what can i do to

    it is a windows 8

  • Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Why can I not create a PDF from a web page on my Adobe Acrobat 8 Pro on my new Windows 8 computer? It worked fine on my windows XP system?

    Acrobat 8 is not compatible with Windows 8,  for the simple reason it was
    created much before it and Adobe could not participate the changes to the
    OS that Microsoft implemented many years later on. You need to buy the
    current version for compatibility.

  • The wheel click button does not open a new window since the latest update (9.0.1)

    Hi
    I just want to report this bug in hope it will be fixed asap
    The wheel click button does not open a new window since the latest update (9.0.1)
    Thank you

    Middle-click or click the scroll-wheel on a hyperlink has always opened a '''new Tab'''. Any chance you had an add-on that changed that action, and now that add-on is disabled or incompatible?

  • How to I get search at open window upper right corner to work.

    How to I get search at open window upper right corner to work. I click on "search" and nothing happens in Yosemite.

    or are you talking about the Open Dialog box in an App?
    (TextEdit for example)

  • I've tried updating iTunes for Windows but it won't work. I removed iTunes and downloaded the new version (10.6.1.7) but it won't load. It says it cannot removed the older version of iTunes.

    I've tried updating iTunes for Windows but it won't work. I removed iTunes and downloaded the new version (10.6.1.7) but it won't load. It says it cannot removed the older version of iTunes.

    It says it cannot removed the older version of iTunes.
    Doublechecking before proceeding ... what's the precise text of that message, please? (There's a couple of different ones I can think of that you might be getting.)

  • Got a new PC with Windows 8. Now my CS6 for windows 7/XP won't work properly! HELP!

    Got a new PC with Windows 8 and now my CS6 download for Windows 7/XP won't work perperly! HElP!

    ANYBODY????

  • HT1338 my 5th generation ipod won't sync anymore to my PowerMac G4.  It worked fine, but when I installed a new hard drive it won't work anymore.

    my 5th generation ipod won't sync anymore to my PowerMac G4.  It worked fine, but when I installed a new hard drive it won't work anymore.  I've re-installed iTunes, the latest version for Tiger, I've reset and restored my iPod.  The ipod shows up fine in the source banner and I can transfer files to it, however when I unplug the iPod the files are not there.

    Maybe try to repair the iPod's HD using Disk Utility located in the Applications -> Utilities folder.  If that doesn't help, try a low level reformat of the drive using the same application.  Make sure you choose Mac OS X Extended (Journaled) as the file system format.
    B-rock

  • I have just brought a new ipod and it won't work with my old imac as it is running pre 10.5 software. I can't upgrade the software, so what should I do?

    I have just brought a new ipod and it won't work with my old imac as it is running pre 10.5 software. I can't upgrade the software, so what should I do?

    There is nothing to do, unless you buy a new computer.
    Mac OS 10.5.8 or later is required.

  • New version of safari won't work on mac 10.7.5, can't be removed, can't be replaced with old version

    new version of safari won't work on mac 10.7.5, can't be removed, can't be replaced with old version

    When I try to open safari a message says: You can't use this version of the application Safari with this version of Mac OS X 10.7.5. The application requires Mac OS X 10.9 or later.
    I see Recovery needs Wi Fi which is not available here and Recovery is loaded with a list of  potential disasters.
    To heck with Safari I'll just use Firefox. Apple sure screwed up here judging from the multitude of similar complaints on the internet.

  • How to pass a presentation variable to new window?

    Hi Experts,
    I need to give a link on Dashboard1 which opens Dashboard2 in new window. Is there any way that I can pass a presentation variable value of Dashboard2 from Dashboard1's link??
    Thanks.

    Yeah, that's been a problem. If you use Link or Image, you can open the link in a new window, but Presentation Variables won't pass. If you use Guided Navigation, you can pass Presentation Variables, but you don't have the option of opening the link in a new window. One or the other unless someone else has a workaround... I haven't discovered one yet. Sorry.

Maybe you are looking for

  • How do I change the e-mail address associated with Facetime on my iPhone?

    On my iPhone, under Settings -> Facetime, if I switch this to "on", I am immediately prompted to provide a password assocaited to an old e-mail address. How do I change this e-mail address? My app store account is correct, and I don't think this old

  • How do I setup all my devices

    Hello - I have an IMac, Ipad2 and IPhone.  I have an icon "find my iphone" on my IPad.  I went into settings and entered the info for tracking IPad, however I don't see option for the other devices.   I login and the ipad is listed and another option

  • WLS 8.1 + MyFaces 1.1 = java.lang.IllegalStateException ?

    We are seeing an Exception from time to time on WLS 8.1 in a JSF application that looks like this: <Aug 1, 2008 8:02:36 AM CDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=1781688286,name=as_oo_webapp,context-path=/as_oo_webapp)] Root cause of Se

  • Migration Assistant Useless

    Ok. So this can't be right. I am migrating from my MacBook Pro to new iMac. Firstly via wifi network and then via Ethernet cable. Either this piece of software doesn't work and is a completely pointless waste of time, or it's just playing with me and

  • Changing page number sizes

    I need to change the font size of the page numbers in my 300+ page document in the CS4 version of Indesign. The page numbers were created automatically, but without the use of a master text frame (it was started in the CS3 version, which I understand