Redirect only prints Location to screen...

I am trying to redirect to a form based on the value of a field using pl/sql in the "before the page..." block.
So far my test is proving to work except for the redirect. I can test the code (below) and the if statement fires correctly but it doesnt redirect, instead, I only get the "Location: <URL>" printed to my screen. I can paste the location it prints in the url manually and it is correct....
declare
record_new number;
record_old number;
standing varchar2(1);
distributor varchar2(100);
begin
-- get the username to execute the report.
distributor := portal.wwctx_api.get_user;
-- is the newest record an 'A'?
select cstatus, nrecno
into standing, record_old
from (select *
from PROD.ADVOPAGE_SUBSCRIBER_DETAIL
where ccustno = distributor
order by nrecno desc)
where rownum = 1;
-- if yes get nextval from the seq and create a copy record
-- and pre-load it for the form.
if standing = 'A' then
record_new := '';
select prod.advopage_detail_seq.nextval into record_new from dual;
insert into PROD.ADVOPAGE_SUBSCRIBER_DETAIL
(nrecno,
ccustno,
cname,
cstory,
bimage,
dsubmitted,
csubmitted_by,
dapproved,
capproved_by,
cstatus,
curl,
ccomment)
select record_new,
ccustno,
cname,
cstory,
bimage,
dsubmitted,
csubmitted_by,
dapproved,
capproved_by,
'E',
curl,
ccomment
from PROD.ADVOPAGE_SUBSCRIBER_DETAIL
where nrecno = record_old;
owa_util.redirect_url('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2849511536&p_arg_names=NRECNO&p_arg_values=' ||
record_new ||
'&p_arg_names=_nrecno_cond&p_arg_values=%3D');
else
owa_util.redirect_url('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2849511536&p_arg_names=NRECNO&p_arg_values=' ||
record_old ||
'&p_arg_names=_nrecno_cond&p_arg_values=%3D');
end if;
exception
when others then
null;
end;
thx

Hi,
 I believe this troubleshooting document can help you, please click here.
Kiko

Similar Messages

  • How to Install 64-bit "Generic / Text Only" print driver on a 32-bit Windows 2003 Server?

    Hi All,
    In a nutshell, I need to Install the 64-bit Generic / Text Only print driver on a 32-bit Windows 2003 Server’s “Generic / Text Only 32-bit print queue.
    The problem is that there is no Driver-Disk to get the drivers. I’ve been able to isolate 14 files related to the 64 bit drivers from a Windows 7 x64 computer and copy them to a temp folder on the Windows 2003 x32 server. When I try to add the 64 bit driver
    to the Windows 2003 x32 server,  it wants a *.inf file, which I don’t have and can’t find.
    Because Microsoft will no longer support Windows XP, my client is replacing all of their Point-of-Sale Windows XP x32 systems with Windows 7 x64. They use Terminal Services (Remote Desktop) to connect to a Windows 2003 x32 server to use the POS system. The
    POS software redirects LPT1 back to the local Generic / Text Only printer. This works great for XP x32.
    When we use the Terminal Services POS software on the new Windows 7 x64 system, none of the labels print out because it’s redirected in 32-bit back to the local Windows 7 x64 Generic / Text Only 64-bit printer.
    This will be a huge issue for me if I can’t get this to work.
    Thanks in advance for any suggestions and help! -Rob

    those may be helpful...
    http://social.technet.microsoft.com/Forums/en-US/a129f49a-0216-41f0-b190-3efb46fbb8ac/generic-text-only-driver-on-windows-2008-server-r2?forum=winserverprint
    http://blogs.technet.com/b/yongrhee/archive/2009/09/14/how-to-add-64-bit-print-drivers-on-32-bit-windows-server-2003-or-windows-server-2008-print-server.aspx
    Best,
    Howtodo

  • When i try to print emails, it only prints first part of email. it is not a problem with my epson printer, could it be a firefox issue or is it an issue with my service provider att/yahoo?

    my epson printer only prints the part of email that shows on my screen before scrolling down. i have checked with epson tech and it is not a printer problem. can you help?

    Problems like that with Firefox printing look like they are fixed in Firefox 4.

  • 8750 printer will only print a small part of a photo what ever size paper I use and prferences

    Is there a solution to printing as when I try to print a photo either in 6x4 or even A4 it still only prints a small section of the photo in one corner of the paper and after all preferences checked it still remains the same.

    Hi there john2boy,
    With the jam and print missing ink lets try downloading and running the HP Hardware Diagnostic Utility located here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03291586&cc=us&dlc=en&lang=en&lc=en&product=408...
    It can fix a lot on its own and if not give a better idea of what is going on.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • HP LJ 1320 only prints blank pages

    The printer will only print blank pages. Test pages are also blank (including from the Green Button). This is a recurring issue. It was solved in the past by fiddling with the cartridge and mechanical parts inside (we don't know what exactly sovled the problem). Toner is full. I ran the HP Diagnostic Tool and it found no "X"s.
    I verified that the following mechanical parts are functional:
    switch on left side of cartridge door
    plastic tab on top right of door, which connects to laser spring/switch
    spring/switch underneath top panel, which seems to enable laser
    arm/gears to enable paper spindle
    contacts on printer-side of toner/printer connection (this part slides from side to side 1/4 inches, and I tried printing with it in various locations)
    There seem to be no error beeps/tones when the printer starts up or when I close the toner door. (However, it was capable as I bypassed one of the switches and it made an error tone at that point).
    I think it must be something like a dead laser (however, I think the laser is invisible and we cannot test tosee if it is functional).
    Any other ideas/solutions would be appreciated.
    I forgot to mention that the low-toner light is not lit, and we've had this issue with both new and old-working toners cartridges.
    Message Edited by measterbrook on 11-10-2009 09:57 AM
    Message Edited by measterbrook on 11-10-2009 09:58 AM

    Has anyone else had this problem?  I have a LaserJet 1320 that started doing the exact same thing last week.  I'm wondering what I have to do to get it working again.  Anyone know something about these units?

  • HP Officejet Pro 8500 A909g series wireless is only printing pink after all inks have been replaced

    I have changed all ink cartridges twice and it is only printing print and not entire page.  I have cleaned printhead, replaced all cartridges twice, aligned.   Shows on screen that all ink cartridges are full except on upper corner it is showing ink 1/4 full.

    Hi @vspivey,
    I understand your printed output is pink instead of black despite your efforts so far. I would be happy to help you from here.
    Although you have already cleaned the printheads, and changed cartridges, the following document might be helpful; Fixing Print Quality Problems for the HP Officejet Pro 8500 Premier (A909n) and 8500 Wireless (A909g....
    If the issue persists, you might consider calling us. We can check the price and availability of replacement printheads, and/or discuss the option of a newer printer model. If you are in Canada or US call 800 474 6836, or you can Contact HP Worldwide.
    Best of luck!
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Acrobat Reader 5.1 only prints 12 of 33 pages

    Hi,
    I am using OS 9.1, 576MB RAM, HP LazerJet w/18MB builtin.
    I can only print the first 12 pages from a 33 page PDF file.
    I do not use desktop printer monitor or anything that shows on the desktop.
    I do not use background printing.
    I only have 53 fonts active in "System Folder" "Fonts".
    Any Help Out There?
    TIA
    Robert

    Hi, Robert. Which LaserJet model are you using, and what printer driver are you selecting in the left panel of the Chooser — LaserWriter 8, AdobePS, or an HP printer driver?
    If it's an HP driver, I recommend trashing it. HP has never been able to produce a reliable Mac PostScript printer driver in 15 years of trying, despite Adobe's having done 90% of the work for them. Use LaserWriter 8 or download AdobePS 8.8 instead of using HP's driver. I've used Adobe's drivers (on which Apple's and HP's drivers have always been based) for many years with my old HP LaserJet 4M, always with good results.
    Next, locate the PrintMonitor application that is associated with your driver — it's probably in your Extensions folder. Select the PrintMonitor icon and Get Info on it. Click the Memory tab in the Get Info window and quadruple the Preferred figure that is displayed. Close the window and test printing again. Post back with results.

  • Pdf only prints 1 page

    I have one user on windows 7 with Adobe Acrobat Pro 9.4.5 and when he tries to print any .pdf file it will only print 1 copy.  No matter how he attempts it only one copy will print.  We tried a 12 page document, choose page 3 only and 4 copies - nope only 1 copy will print.
    Any ideas?

    We ran the repair Adobe Installation and found that it is the collate button that is causing the problem.  If we have a multi-page document and the collate button checked it will only print one copy. If we uncheck the collate button on a multi-page document it will print multiple copies.  However if it is a one page document it will only print one copy with or without the collate button checked.  It doesn't seem to matter where the document is located either if it is one from a web page or one save to the hard drive.  And it does it with every pdf.

  • My Deskjet990cse printer only prints the sample page but I cant get my resume to print.

    My Deskjet990cse printer only prints the sample page but I cant get my resume to print.

    Please read this post then provide some details.  What operating system? Are there any error messages on the computer screen or blinking lights on the printer?  What program are you using to print?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I'm trying to print out a credit card statement from my iPad, it only prints the first page not 4pages, please help

    I'm trying to print out a credit card statement from my iPad, it only prints the first page not the 4 pages, please help

    I read your first post when I was posing a separate question on the Mac Pro board.  I now see that we may be talking about printing from an iPad with Airprint instead!!!!!  I very much suspect the print command and settings are different for Airprint but I have never used it to be able to offer concrete advice.  I think the setting choices could be different even with Airprint on the laptop and further that you may not even be using Safari but some special app???
    I've not heard or seen the term "frame" in the context of printing before except perhaps in the context of a screen shot.  Is the credit card statement a "pop-up" of some kind rather than a webpage or pdf?

  • My document will only print using wireless once I log off windows.

    I recently purchased the HP officejet wireless 4500 printer.  I am able to send documents to print, but then get an error message.  They will only print once I log off windows.  PLEASE HELP!

    Terry101
    Welcome to the HP Community Forum.
    To a large extent, the difficultly can be related to the type of document you are trying to print -- and the application you are using to print that document.
    PDF documents can be tricky -- sometimes, especially if you are trying to print these from the Internet, PDF files can be stupid-hard to print because the format is messed up.
    You can take a look at the following - no garantees -- it might help you find something that will help nail down what is going wrong or maybe help you figure out a way to get what you need.  For example, if all else fails, you can perhaps take a Snip of the document on the screen, save the Image, and print that.  It is a sorry excuse for a workaround - but at least you end up with something on paper.
    Manage Print Output with Print Preview
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Why is there not an option to only print form data in Adobe XI?

    I have created a form in Adobe Acrobat XI Pro and saved it.  Then I want to open it in Adobe Reader, fill it in and then only print the form data but there is not an option to only print form data in Adobe Reader XI.  I'm not sure if it is in the way I created the form or something else.  Any help will greatly appreciated.  Thanks!

    Basically you need to place the file's contents on a non-printing layer. Try this:
    Create a new blank file and open the Layers panel on the left.
    Click the Options button and select Import As Layer.
    Select your pre-existing PDF file (maybe save a copy of it without the form fields first and use that version).
    Right-click the layer you created and select Properties. Change the layer's Print option to "Never Prints".
    Now copy the fields from the other file and place them in their correct location on the page.
    Save the file and you have a file that can be used to print only the form fields data, even in Reader.
    This process can be automated, by the way, but that would require a script.

  • C4400 only prints 1/3 of a photo on 4 X 6 photo paper. Filled out printer setup perfectly! Help!

    C4400 only prints 1/3 of a photo on 4 X 6 photo paper. Filled out printer setup perfectly! Help!

    Fritzk,
    Some other useful info would be connection method to the printer and the application we are printing from, as well as if other printing (docs etc) work or not. But in the mean time lets also go through some of the basics together. Lets make sure the printer is set properly for photos using printing preferences:
    -Click the start button and then select devices and printers.
    -Right click your printer and select printing preferences.
    -In the new window that appears on the left you will see printing shortcuts. There will be one marked as photo or some variation - select that. To the right ensure that the size is set to 4x6.
    -Click ok to close the window and save the changes.
    Try the print again. If it does not resolve anything lets move on to making sure we have no software tripping us up. Try downloading and running the print and scan doctor located here: http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c03275041&cc=us&dlc=en&lc=en - It can fix a lot on its own and if not give us a better idea of what is going on. Let us know the results.
    If all the software components check out use this article as it handles partial prints under unique circumstances: http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=c01892627&cc=us&dlc=en&lc=en
    Give the steps listed under windows a try and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • HP 4315 printer only prints first page.

    HP4315 prianger only prints first page.  Canot print any more pages.

    Hi there,
    If you are running windows; Try downloading and running the print and scan doctor located here:
    http://goo.gl/Ujpib
    It can fix a lot on its own and if not give a better idea of what is going on. If not windows post back with your OS.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • Why does my printer connected through time capsule only print once after powering on then never again?

    Hey,
    I have a TimeCapsule which is logging in to my wireless network (i.e. it's not extending it, neither is it serving its own network). I have a Brother HL-2030 connected to it (via USB). I have two issues:
    * the printer will only print directly after plugging in the USB cable to the TC, but only once. Subsequent attempts to print would not succeed. Disconnecting and reconnecting the USB cable will help, again, only once. The printer works flawlessly when directly connected to my MBP.
    * the TimeCapsule is not found by AirPort utility, and neither am I able to apply a software update to it. Configuring it to extend my WLAN does not work reliably.
    Does anyone have an idea what might be wrong here?
    Regards,
    Matthias

    Thanks for the hint. I had thought about that, too. It was the easiest to configure the network this way as the modem is provider pre-configured. But I need to see if I can get to bridged mode. There's an additional problem with the location of the device in the building...
    The printer had worked through the TC when it was the router (with my previous provider) and served the WLAN. Thus I don't see where the difference should be, particularly as I believe the printer is served via IP and thus it should IMHO not matter if the TC serves the WLAN + device or only the device.

Maybe you are looking for

  • Smartband and lifelog accuracy

    Hi, I've been using smartband with the lifelog app for a couple of weeks now and i've also made some comparison with my Garmin Vivofit.  Some issues that i've noticed: 1. Smartband constantly record 10-15% less steps than the Vivofit per day. 2. Smar

  • HT3819 Can you home share with two libraries on the same computer?

    Can home share be used with two libraries on the same computer?

  • Application server does not start for DMO

    Hi, I have a HR91DMO system on Win 2008. Application server does not start. From Tuxedolog : 105938.IRNTSV-DVPSPJ2!PSAPPSRV.4728.4944.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed 105938.IRNTSV-DVPSPJ2!tmboot.244.3628.-2: tmboot: CMDTUX_CAT:827: ERROR

  • Interesting RealPlayer crash + sleep failure -- what happened?

    I see plenty of computer crashes and usually it's just reset, and move on. But this one got me curious, and I wonder what other forums users think. Here is what I observed. I was listening to an NPR story on RealPlayer. I put it on pause to watch a T

  • No longer able to receive text messages through Microsoft Sync

    About a month ago I noticed I was no longer getting text message alerts through Sync in my F-150.  I've tried deleting my phone and repairing it as well as a factory reset and nothing has worked.  I've also noticed that when I stream Bluetooth audio