Problem Displaying file and doind a redirect

Hello,
I am displaying a file using a wpg_docload.download_file(v_bfile); call from a PL/SQL procedure that is called on a button
which works fine once I put a call to APEX_APPLICATION.g_unrecoverable_error inside the procedure , as below.
APEX_APPLICATION.g_unrecoverable_error := FALSE;
The button is supposed to automatically refresh (reload, resubmit) the page once that operation is finished. However the page does not refresh unless I remove the APEX_APPLICATION.g_unrecoverable_error line, which in turn means the file is not displayed.
I have tried putting in a APEX_APPLICATION.g_unrecoverable_error= TRUE at the end of the procedure and in Apex where the button is called but the system is not having any of it.
How can I get the file to display (dialog button to appear) and then the redirect to work please..

Hi,
The requirement is as below.
We need to create an customize xml using some  other xmls.
Than using the generated xml,we need to generate an pdf report.
Then we need to sent this pdf report for printing.
    I have created a custom action block using java.
   This code takes path of xml and generates a pdf report.
   It than creates a report at particular location.
   This code is working fine in xMII 11.5. As we can store/ create files at any location. 
   But not working in 12.0. I donu2019t know why?
   Is their way around in 12.0 by which we can achieve this functionality.
Thanks,
Vishal J

Similar Messages

  • Problem with file and printer sharing

    I just installed a Linksys WRT54G to replace a D-Link wireless router and cannot reestablish my file and printer sharing since replacing the router.  I had file and printer sharing working fine before installing the WRT54G.   All of the computers are running either XP Pro or 2000 Pro.  I have two printers attached to one of my computers that I was previously sharing with all of the other computers on our home network.  One is attached via a parallel port, the other via a USB port.  
    Here's what I've tried so far without success.
    1.  The IP of the WRT54G is 192.168.1.1, and the IP's it assigns to my LAN computers begin 192.168.1.XXX.  The old IP of the D-Link was 192.168.0.1 and its LAN IPs were 192.168.0.XXX, so I've gone into my firewall and changed the settings for the range of trusted computers to correspond to the WRT54G's IP addresses.
    2.   I've tried uninstalling the printers and reinstalling them, including reinitializing printer sharing.
    3.  When I try to use the Windows  "Add printer" wizard to add a networked printer, it can see the computer that has the printers attached, but it does not see the printers.
    4.  I haven't fooled around with the file sharing settings, but they've all be lost too, so I suspect there is a common problem for both printer and file sharing.
    Any suggestions would be most welcome.  I don't know what would be different about the WRT54G that would cause this problem.

    Try this to Enable File and Printer Sharing...Turn Off the Router Firewall...Make sure the Windows Firewall is also Off...

  • Problems with files and a new hard drive...

    Hi there...
    I have maxed out an external hard drive I was using to hold all my photos....
    I have bought a 2 new drives with a view to backing up everything I have on file.
    If I start moving files around LR then can not locate the files and they come up in red in the folders section of the programme.
    IS there a way of reorganizing things without having to re import stuff?
    Any help would be great....
    Lee

    I think I get it... (im having a dumb day!!)
    I set the new h/d up and I import in essence an empty file into LR.
    Then all the files I want to keep on the new h/d I drag and drop from the old h/d...is this right??
    like I said Im having a dumb day...
    all the help is much appreciated
    Lee

  • Problems previewing file and with flash action

    I am using Acrobat.com for my children's book in order to send it out to agents and it has been working well since October. I have checked it several times and there were no issues but today it will not preview either file any longer and the flash page turner is no longer working. I upoaded a new version of the same file and it is working but the link I sent out to agents will only allow a download now. Just wondering what may have caused this. I read where someone else had a similar issue but there was no result posted. The page turning issue, though not really an important feature, is just something I really liked about the program. Thank you.

    Hello,
    This should have been a temporary issue - the preview function should be working normally for the new file now. Please lmk if this is not the case.
    Michelle

  • Problem restoring files and settings after a recovery

    I did a system recovery using recovery disks purchased from HP. My files and settings were backed up during the recovery program on an external drive.
    There were no instructions included on restoring files and settings after the system recovery. I called HP and a support tech told me to run the backup program on the external drive from the admin profile which I did. However, the program put my old files on my C drive at the following location C:\System Recovery Files\C\Users\Bill.
    How do I use these files under my current user profile at C:\Users\Bill?
    I suppose I could move my data files, folder by folder, but is there an easier and better way?
    My computer is as follows:
    HP Pavilion GC673AAR-ABA m8100n, SN MX3733051W
    Windows Vista Home Premium 32-bit
    This question was solved.
    View Solution.

    Unfortunately the backup feature within the recovery manager is used as a last resort option for gathering whatever files can be saved, and there is no way to place the files back to where they were previously.
    I am an HP employee, but my views are my own and are not endorsed by HP.

  • Problem in file and socket fd

    Hi
    I am using TCP sockets for communication.I create a server which blocks on the accept method to listen for new connections.
    The problem is that if I open a file descriptor in the program ,then the server does not block on accept method but instead it reads garbage from the socket.
    What could be the possible problem.??
    Thanks

    hi Here I am sending you a piece of code thaat simply starts a server and opens a file . When I run this ther server does not wait .And if I comment out the line which openss the file it works fine .
    <pre>
    #include <stdio.h>
    #include <strings.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/wait.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netinet/tcp.h>
    #include <netdb.h>
    #include <sys/uio.h>
    #include <arpa/inet.h>
    #include <errno.h>
    #include <ctype.h>
    #include <signal.h>
    #include <fcntl.h>
    #include <time.h>
    #include <sys/timeb.h>
    #include <stdlib.h>
    #include <stropts.h>
    #include <sys/filio.h>
    #include <iostream.h>
    #include <pthread.h>
    #include <plot.h>
    #define PORT 8888
    #define BACKLOG 10;
    int main()
    int listenfd ,connfd;
    //** if I comment this line server works fine
    int fd = open("file",O_RDWR,777);
    socklen_t clientlen;
    struct sockaddr_in clientaddr;
    struct sockaddr_in serveraddr;
    listenfd = socket(AF_INET,SOCK_STREAM,0);
    serveraddr.sin_family = AF_INET;
    serveraddr.sin_addr.s_addr = htonl(INADDR_ANY);
    serveraddr.sin_port = htons(8888);
    bzero(&(serveraddr.sin_zero), 8);
    int n=1;
    if (setsockopt (listenfd, SOL_SOCKET, SO_REUSEADDR, (char *)&n, sizeof (n)) <0)
    fprintf(stdout,"Error: socket option\n");
    close (listenfd);
    shutdown(listenfd,2);
    bind (listenfd,(sockaddr*) &serveraddr,sizeof(serveraddr));
    listen(listenfd,10);
    //*** Server Started
    printf("Server listening on port 8888 \n");
    connfd = accept(listenfd, (sockaddr*)&clientaddr,&clientlen);
    printf("Connected accepted \n");
    return 0;
    </pre>
    Thanks

  • Problem with File and his methods

    Is there a way to know how much Files there is in a File.
    MyFile contain MySubFile1 MySubFile2 and what i want my program to do is to return the number 2 (for my two subfiles).

    File repracine = new File("namedir") ;
    String[] tabfile ;
    if (!repracine.exists())
    repracine.mkdir() ;
    tabfile = repracine.list() ;
    for (int i=0;i<tabfile.length();i++)
    System.out.println(tabfile) ;
    problem: tabfile.length()...
    Small changes have to be done..
    1. length is not a method but an attribute of the array. That means that> for (int i=0;i<tabfile.length();i++) has to be for (int i=0;i<tabfile.length;i++)2. If you want just the number of files in your directory You don't need the for loop at all. All you need is the tabfile.length value. If you need to print the names of all the files in the directory then you better change line:>    System.out.println(tabfile) ; to >    System.out.println(tabfile) ;
    Hope that helped.
    afotoglidis

  • Problem removing files and other issues

    Hello, i have been using Solaris 10 now for almost a week. I am starting to see a lot of flaws in it. I hate to go back to Linux when I have wanted Unix for so long. well here are my problems.
    Removing files from the DIR /export/home/ gives me this error:
    Error "Not on the same file system" while deleting "/export/hom...-1.src.rpm".
    would you like to continue?
    [Skip] [X_Cancel] [Retry]
    I seem to get that error everytime I try to delete a downloaded file, also I am logged in as root. (because I created a user account, assigined the user a group and password and I still can't log in with it)
    I also configure my panel, and add applications like the cd player, and when i reboot my computer, the applications are question marks wich are also dead links.
    I can't set my clock. the timezone seems to be messed up.
    When I reboot my computer or shut it down, it takes longer everytime to boot back up. I have timed it. The computer has passed infant mortality, but it is still young, and runs good. So i am assuming all my hardware is fine. since i have installed the os, I have installed firefox. and I have used firefox. that is about it. I am loggin in as root, so i am extremely carefull with what i do, I just seem to have a new problem with each log in. I am starting to feel like Unix is losing it's special value, but i want to try and fix the problems before giving up, after all, it has been less than a week.
    If you have any information on anything that i babbled on about thank in advance.

    Had the same problem. This post (external) seems to suggest this is Nautilus problem: http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2005-04/1109.html
    Deleting stuff form the shell instead works as a workaround, but then you don't have the benefits of trash can.
    / Rich

  • Problems displaying GUI and fillRect()

    Hello all, thanks for reading this post ... this is a four part question:
    1)I have a JFrame set up with JButtons along the bottom. There is open space at the top where I would like to display some 2D drawing like fillRect(). In my paint method, when I use fillRect(), my buttons would disappear until I ran the mouse over them. To fix this problem I used a super.paint(g) before my fillRect() and in my paint method. Is there a better way to disiplay 2D images with a GUI?
    2)I am dispalying 2D images directly to the JFrame. Should I use another type of java container like a JPanel to do the 2D output? If so, how would I alter and use the paint method of JPanel (for example) so that I could call it from JFrame.
    3)I need to display repeated rectangles with the fillRect() function. Right now I am including the fillRect() call in the paint method and using another method to loop repaint. I am getting many errors and have a feeling that there is an easier way to achieve repeated display of rectangles. Can anyone offer a better way?
    4)The title bar of my JFrame steals some pixels away from the area that I am trying to draw to. Consequetly, if I try to paint to the coordinates (0,0) i cannot see the coloring becuase it is behind the title bar. I read in a book about something called insets that have variables such as .top .bot .left .right that have the size of the margins taken up (e.g. the title bar). I tried to get such information from my JFrame but didn't have much luck. Any and all help is greatly appreciated.
    To recap, I have a JFrame as my main program, with JButtons at the bottom and open space at the top for displaying 2D images.

    Follow this sample:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Draw2 extends JFrame 
         Tpan     board = new Tpan();
         JButton jb1    = new JButton("sample1");
         JButton jb2    = new JButton("sample1");
    public Draw2()
         super();
         setBounds(1,1,500,400);     
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
                   dispose();     
                   System.exit(0);
         getContentPane().setLayout(new BorderLayout());
         getContentPane().add("Center",board);
         JPanel con = new JPanel();
         getContentPane().add("South",con);
         con.add(jb1);
         con.add(jb2);
         setVisible(true);
    public class Tpan extends JPanel
    public Tpan()
         setBackground(Color.pink);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.setColor(Color.black);
         for (int i=0; i < 35;i++)
              g.setColor(new Color(i*7,100,250-i*6));
              g.drawRect(i*9,i*6,50,50);
    public static void main (String[] args)
         new Draw2();  
    }       Noah

  • Lightroom displays files and exports files darker than the original or from Photoshop

    Hello all.
    I would first like to preface this by stating I am not technically minded, and I know nothing (or very little) of ICC profiles etc.
    Though assume someone will attempt to tell me to do something with them in a really technical way which I won't understand, please treat me like a 4 year child in this regard.
    I am using Lightroom 5.6 on a Mac running 10.9.4 I have CS6 Photoshop and have a Spyder 3pro calibration device and have linked all of the Adobe programs to the output of the calibration to "hopefully" ensure quality control.
    I recently have been scanning analogue film and importing this into Lightroom 5. I have noticed that the file imported always looks darker than the original.
    When I have exported from Lightroom them they look like crap.
    There are no import additional settings as they are all turned off. I did that when I installed LR.
    I have also noticed than whenever I imported a Raw file for some reason the original file would look great for a second then when clicked on would also change to something less appealing. But I digress.
    So in attempt to show what is happening. I have created some images to illustrate my problem.
    Also it does not matter if I turn the soft proofing on or off.
    Lightroom Softproof on
    Lightroom Softproof off
    Lightroom vs Photoshop Histogram - Very similar
    Left: File opened from Lightroom as the Original      Right: Original Photoshop File
    Left: File opened from an Export from Lightroom      Right: Original Photoshop File
    Any clues as this is very annoying and at the moment makes Lightroom 5 unusable.

    Can you put one of your scans somewhere, like www.dropbox.com, and post a public download/share link to it?   I'd like to try one of the scans on my computer, though, to see if it does the same thing.  You can crop an original down to something smaller that includes sky and trees like your screenshots show.
    I am guessing there is a gamma problem or a profile problem somewhere.  What Profile do the scans have embedded in them from the scanner?  You can turn on the three Ask checkboxes in your color-settings and see what it says when you open an original in Photoshop.
    My guess is that LR is using a default profile that doesn't match what Photoshop is using, but perhaps there is a gamma issue, too.
    Have you tried opening one of the originals in the Camera Raw plug-in, perhaps from Bridge or just from PS / File / Open.  You may have to set your PS Camera Raw settings to prefer ACR for TIFs.  ACR and LR should be about the same in file handling so it'd be interesting to see if that is the case.

  • I am working in LR 5.7. I am having problems moving files and folders from my internal Mac drive to an external drive.

    My process is to drag files or folders from one location to another. Sometimes it works, but it takes a VERY long time. Sometimes it does not work. For example, I tried to move a folder with 329 images. LR processed for 13 hours and moved 58 images; then it stopped and gave the message "…error copying files to the destination you selected. The following files could not be copied." Then it noted the files not copied. Does this look like a LR problem? A hardware problem? Any suggestions on how to fix would be appreciated.

    Jim has a very good suggestion. There are many factors at work here:
    1) How are you connecting the external drive to the computer?
    2) How big are files (329 x 1MB is not the same as 329 x 25MB)?
    3) What is your computer specification?
    4) Do you have any power saving settings on (in particular something that would send the computer/hard drives to sleep)?

  • Problem with file and tabbedpanes

    Hi
    i am reading a file on my program .in that file i am written 4lines .but i want that from that file 2 lines on one tab and another two lines on another tab using tabbedpanes
    Edited by: nirmala on Dec 26, 2007 7:26 AM

    i am written some code see this public void actionPerformed(ActionEvent e) {
    // Handle open button action.
    if (e.getSource() == browse) {
    int returnVal = fc.showOpenDialog(NnsClient.this);
    if (returnVal == JFileChooser.APPROVE_OPTION ) {
    File file = fc.getSelectedFile();
    // This is where a real application would open the file.
    log.setText(file.getParent());
    } else {
    log.setText("Open command cancelled by user." + newline);
    log.setCaretPosition(log.getDocument().getLength());
    // Handle update button action.
    } else if (e.getSource() == update) {
    File file = fc.getSelectedFile();
    String val = file.getAbsolutePath();
    File file1 = new File (val);
    try
    RandomAccessFile ra = new RandomAccessFile(file1,"r");
    //System.out.println(ra);
    long last = ra.length();
    System.out.println(last);
    FileReader fis = new FileReader (file1);
    //LineNumberReader lr = new LineNumberReader(fis);
    //System.out.println(lr);
    //lr.skip(last);
    //int countRec = lr.getLineNumber()-1;
    //System.out.println(countRec);
    BufferedReader bis = new BufferedReader(fis);
    StringBuffer sb = new StringBuffer();
    String line = null;
    while((line= bis.readLine())!=null)
         //int i = line.length();
         System.out.print(line.toString());
         //System.out.println(line);
         //sb.append(line);
    System.out.println(sb.append(line));
         sb.append("\n");
    tf.setText(sb.toString());
    ra.close();
    fis.close();
    //dis.close();
    bis.close();
    catch(FileNotFoundException e2)
    e2.printStackTrace();
    catch(IOException e1)
    e1.printStackTrace();
    }this is for action performed in this code only i want to develop that when i click on update i wanto get the file data on different tabs
    JTabbedPane tp = new JTabbedPane();
    JPanel pa = new JPanel();
    pa.add(scroll);
    //pa.add(ns.ta.setText(sb.toString()));
    JPanel pb = new JPanel();
    pb.add(tf);
    t.setEditable(false);
    //setPrefferedSize(new Dimension(30,40));
    //tf.setText(sb.toString());
    tp.addTab("tab1", pb);
    tp.addTab("tab2",pa);
    content.add(tp,BorderLayout.SOUTH);this code is for tabbedpanes on my program

  • PDF forms have problems displaying text and only appears when the field is selected

    Hello,
    I created some pdf forms to distribute to the company clients. But we are having some people complaining about the text visibility. When they have work in team, the pdf that they receive from a third person often appears unfill or without text, the text is only visible when the field is selected. I need to find a solution for this because our company products are base on this forms.
    If there is any addition information that I should add to understand what is happening and how to fix it, I'll be happy to write it.
    In the company, we all have mac and the forms where created innitially in Adobe acrobat 9 pro, but we have now Adobe acropabt XI pro.
    The users have both Mac and Windows systems.
    Thank you,

    This is usually caused by the form being filled-in and saved by a Mac user who is using the Preview application to view the PDF. More information is here: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html
    It is a good idea to inform your users that Adobe Reader (or Acrobat) should be used to work with the forms.

  • Problem displaying data and Smart data debugging pl/sql

    I'm using JDev 9.0.5.1 build 1065, when i debug a PL/SQL function from the connections navigator, it allows me to stop at a breakpoint, but it doesn't display anything in the data or smart data panes. Do i need to change a config setting somewhere ? The PL/SQL is in an Oracle 8i database, does it need to be 10g for this functionality to work ?
    Thanks
    Alistair

    Are you trying to debug ASP.NET or a windows app or direct debugging?
    If a windows app or direct debugging, follow these steps:
    http://cshay.blogspot.com/2006/07/plsql-debugger-in-visual-studio.html
    If ASP.NET, follow part of the steps above to configure, but then use these steps for External App debugging:
    Debugging PL/SQL from .Net 2003

  • How to delete duplicate files and fix borken links

    Problem: Duplicate Files and Broken Links
    Involves 2 IBM ThinkPads (1) one main partition (system driveC:) running Windows XP SP3, (2) running Windows 7 and with two partitions  - Drive C: has the library while drive D:contains the “itunes media” folder.
    Issues:
    On both laptops, the iTunes media folder contains duplicatecopies of purchased songs and movies (some purchased prior to iTunes 9),imported or ripped songs from CDs, and redeemed digital copies of movies. EverythingI have tried results in broken links and duplicate files. Is there a method or aprogram which will allow me to disentangle this mess? I have spent hoursdeleting files, not using the iTunes “copy” function and so on but the problemcontinues. At times I simply run out of disc space and simply have to start theprocess all over again. I have spoken to someone in Apple’s iTunes tech supportand was told this was a “windows” problem?!?
    Any suggestions or advice that would help me to untanglethis mess would be greatly appreciated. Is taking the ThinkPads to a PC repairshop the only answer? How would they fix the problem?
    Thanks all, PrimeSequence.

    PrimeSequence wrote:
    Thanks 'turingtest2' for your suggestion. I know the location of the files, but iTunes keeps duplicating them as soon as I launch iTunes.
    You know the location of your file, but it sounded like iTunes doesn't. The FindTracks script is designed to fix the broken links.
    I doubt uninstalling and reinstalling will change anything. Uninstalling iTunes does not affect the contents of your media library or media folders, the files stay put.
    iTunes shouldn't generate much in the way of new files just through launching it... Exceptions include artwork files for tracks it knows it has yet to scan and any downloads related to podcast subscriptions.
    The only other thing I can think of would be some sort of error with the Automatically add to iTunes folder. Any files that are in there should be moved to their normal locations within the media folder layout, not copied, and then added to the library. I suppose the processing order could be add, then move, and if for some reason the move fails then next time you start up iTunes they could be added again. So do you have any files in the Automatically add to iTunes folder? If not is there any other pattern you can see to this duplication? Do you have any software that tries to add files to iTunes automatically?
    Actually, and in a similar vein, does this duplication happen on both machines or just the Windows 7 one? Vista introduced new "default" locations for user profiles plus a bunch of symbolic links that automagically redirect attempts by older software to look for things in the default XP locations. As a result your Music folder, for example, can appear at multiple locations within the tree of folders on your C: drive. I suppose it is just possible that some form of recursive nightmare could be going on there.
    FWIW it is much easier to manage a self-contained library where the media folder is inside the library folder.
    tt2

Maybe you are looking for

  • Unable to open any photos in CS4

    Hi, my name is Cheryl, and I am new to the group.  I am just about ready to throw this dang computer out the window!  I am running Vista 64 bit, and have downloaded my CS4 to it.  It will not let me download any updates thru the Help section- gives m

  • Classic starts up, apps won't...

    I used the Classic environment successfully fairly recently, and I don't recall any major changes to my system. But just yesterday my wife told me she couldn't get Word to start up. So I tried myself and nothing worked in either of our accounts. I th

  • A2107 Ideapad 12v adapter: will the OA36247 for the Thinkpad Tablet 1838 work for this unit?

    Hi- I've got a Thinkpad Slate Tablet (Android OS) and the 12v adapter that goes with this unit...will the adapter work with the other Lenovo tablets such as the A2107 Ideapad? Thanks in advance for rendered clarity. Solved! Go to Solution.

  • Sg300-28 port-channel options

    i have an sg300-28 running the latest firmware, and would like some insight on port-channel options.  below are the port configs i have for a LAG to my router.  i am currently using 802.3ad with LACP.  my router is a linux machine pulling duty as a b

  • Time Machine won't back-up particular folder

    I recently reformatted my Drobo and did a complete, new backup with Time Machine. I had been using this combo for awhile and never had any problems that I was aware of. After 30 hours of backing up 1.3TB of data into a 2.4TB space, it was stuck at 1.