How to open a dialog box

hi,
I have a Button, after clicking that i should get a dialog box with 2 options 'yes' or 'No' .
If i select 'yes' i need to insert data to db. o/w it redirects to the same page.
I used the following code:-
MessageToken[] tokens = { new MessageToken("ITEM", "Are You Sure You Want Book the Order")};
OAException warningMessage = new OAException("AK", "FWK_TBX_T_EMP_UPDATE_CONFIRM", tokens);
System.out.println(warningMessage);
OADialogPage dialogPage = new OADialogPage(OAException.WARNING,
warningMessage,
null,
String yes = pageContext.getMessage("ICX", "FWK_TBX_T_YES", null);
String no = pageContext.getMessage("ICX", "FWK_TBX_T_NO", null);
dialogPage.setOkButtonItemName("Yes");
dialogPage.setOkButtonToPost(true);
dialogPage.setNoButtonToPost(true);
dialogPage.setPostToCallingPage(true);
dialogPage.setOkButtonLabel(yes);
dialogPage.setNoButtonLabel(no);
java.util.Hashtable formParams = new java.util.Hashtable(1);
formParams.put("empNum", "123");
formParams.put("empName", "babu");
dialogPage.setFormParameters(formParams);
pageContext.redirectToDialogPage(dialogPage);
am.invokeMethod("apply",parameters);
but i am getting the error like:
Error
You have insufficient privileges for the current operation.
can anybody help me to solve this problem.

mouse listener on the tree, see if the click count is 2 and what node it clicked, open the dialog. MouseEvent can give you the click count and x/y coordinate, JTree can tell you what node is at that coordinate.

Similar Messages

  • How can open File Dialoge Box in Oracle9i

    can any one tell me how can i open file dialoge box in oracle 9i i am using webutil but when i run this code.. there is an exception during runtime.. not compile time.. so plz tell me how can i open file dialoge box.. thx..
         declare
              file_name varchar2(100);
         begin
              file_name := client_get_file_name(FILE_FILTER=>'TEXT FILES (*.txt|*.txt|');
         end;

    Please do not post the same topic in multiple forums. The
    only thing I can suggest is when they click on the button to
    download, you take flash out of full screen while they download the
    video, you can use fileReference to control and monitor the
    download. Use a listener object to monitor when download is
    complete, then set flash back to full screen.
    How are you scripting the full screen?

  • How to open a dialog box while double cliking the JTree child node.

    hi
    I am new to Swing technology.I want to open a dialog box while double clicking the child node of a tree.Could anyone please send me some examples.

    mouse listener on the tree, see if the click count is 2 and what node it clicked, open the dialog. MouseEvent can give you the click count and x/y coordinate, JTree can tell you what node is at that coordinate.

  • How to open subscribe dialog box when clicking ics link

    I would like to create a web page containing all our shared calendar links so my users need only to click a link which will open iCal, have the "subscribe" dialog box pop up and have the calendar URL auto filled.
    I've gotten as far as opening the ics file with iCal but am stuck on how to force the "subscribe" box to automatically open.
    For example, I would want the link: http://sharedcalendars/home/scott/calendar.ics
    to open iCal, pop up the "subscribe" box and auto fill the URL field with http://sharedcalendar/home/scott/calendar.ics .
    My users are lazy and complain to great lengths about having to manually type the URL of each shared calendar.
    Any Ideas?

    mouse listener on the tree, see if the click count is 2 and what node it clicked, open the dialog. MouseEvent can give you the click count and x/y coordinate, JTree can tell you what node is at that coordinate.

  • How to Shw Open File Dialog Box

    Hi all,
    Can anyone help me plz.
    I am designing an interface using forms 9i where data entry operator has to insert data for products in the database. Also we want to store the image of the product. so I want to show an open File Dialog box from where user can pick a file and click ok & if it returns the file name with complete path, then i can read the contents of image using read_image_file.
    So, is there any Oracle built-in for that???
    Thanks in advance

    Thanks Ronald webutil worked successfully.
    But i am facing following error when i try to go to the Canvas provided by the Webutil setup(olb).
    Error is given Below:
    1. FRM-13008; Can't find java bean with name 'oracle.forms.webutil.ole.OleFunction'.
    Previously it was giving errors on all JavaBean classes then i put the path of webutil.jar file in registry as given in the documention. It works ok for other java beans but why above error is coming.
    plz Help.

  • How to trigger an "open file" dialog box

    I am using forms 10g. Does anyone know of codes to trigger "open file" dialog box in a button object?
    My goal is that the user may be able to select a file from his terminal by clicking a button.
    Thanks in advance.

    As aweiden suggests, there are additional setup steps that have to be completed on your workstation as well as the Forms server so you can use the WebUtil library. If you are using Forms 10g R2, then I recommend you conduct a search of the Forms Help system (Search tab) on "WebUtil" and select the "Configuring WebUitl" topic. If you are on Forms 10g R1 (9.0.4), then you had to download and install WebUtil on your workstation. I recommend you read the Web_Util.pdf in the "DOC" folder an follow all of the steps in Chapter 2 : Configuring WebUtil.
    Craig...

  • Please fix: Common Open File Dialog Box to support Favorites (Follow-up: Better provisioning in the Windows client)

    One more thing:
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Please obsolete or (re)develop components in Windows, so those components support any new workflows in Windows!
    On example of an application where you cannot use Favorites is Adobe Photoshop. It uses the Common Open File Dialog Box in Windows (which does not support Favorites).
    Comparing Finder (MacOS) with Windows Explorer - you "seem" to have the option of using favorites to pin folders.
    Well, if your application calls Windows to use the Common Open File Dialog Box - it's actually NOT POSSIBLE AT ALL to navigate to the user concepts (user folders) pinned to favorites.
    Again, the favorites namespace is completely unused (not provisioned) out-of-the-box. That's may be ok, however it's not fully implemented across Windows and just another example of stuff accumulating up to being unusable.
    What's missing is favorites is a way to use the favorites space in the Common Open File Dialog Box.
    Ref.: Better provisioning in the Windows client
    https://social.technet.microsoft.com/Forums/en-US/dbb2102f-00b7-47ca-88f2-4f88cd9d3409/followup-starting-launching-and-switching-?forum=WinPreview2014Feedback#2aba34e9-6074-4750-8f66-425bdeacc705
    https://social.technet.microsoft.com/Forums/en-US/168bb9f9-ab18-42e6-9f20-5e36e71f742c/merging-the-task-bar-and-the-start-screen-area?forum=WinPreview2014Feedback#168bb9f9-ab18-42e6-9f20-5e36e71f742c
    https://social.technet.microsoft.com/Forums/en-US/59a5bb6a-0368-4f34-bea4-b9811ac0bf8c/dont-forget-development-of-the-start-screen-remember-virtualization-of-it-too-purpose-is-hud?forum=WinPreview2014Feedback#59a5bb6a-0368-4f34-bea4-b9811ac0bf8c
    https://social.technet.microsoft.com/Forums/en-US/c10168fe-a534-44aa-a0ec-e9defc71da5f/better-provisioning-in-windows-client-remember-templates-for-the-start-screen-like-the-need-for?forum=WinPreview2014Feedback#c10168fe-a534-44aa-a0ec-e9defc71da5f

    Congrats to Carmelo!
     Windows Phone and Windows Store Apps Technical Guru - February 2015  
    Carmelo La Monica
    Windows Phone 8: control Nokia Maps (Part 3)
    JH: "Part 3 of the series how to work with the Nokia maps control. As the previous articles this one contains a lot of code snippets and some pictures. Good work!"
    Ed Price: "A great topic, a fantastic breakdown of sections with clear descriptions, and a nice mix of code formatting and helpful images! Another stellar article from Carmelo! Great job including the link back at the end to the portal
    article!"
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • Adobe CS5 Applications open/save dialog boxes size always resets

    So, since the Mountain Lion update, all of my Adobe CS5 save/open window dialog boxes reset their size each time. In my case they are too small, causing me to have to enlarge the window out every time, to be able to see file names/locations etc. 
    Not a massive issue, but rather annoying when I think of the time I'm wasting resizing windows hundreds of times a day, especially as this never used to happen.
    Is this an Adobe issue?
    Can anyone using Adobe CS6 on Mountain Lion tell me if they experience this too?
    Anyone on using Adobe CS5 on OSX-10.8.2 experienced this too, any suggestions?

    I came here looking for this very same help.  It is driving me crazy.  It happened when I recently updated to Mountain Lion.  It has to be a Mountain Lion problem, as I'm using the very same Adobe products that I've used for years and it never occurred before.
    I'm also having the problem with Mountain Lion resizing my coverflow finder windows every time I open them.  Also completely annoying.
    How do I get the windows (saving and coverflow) to stay in the same position as I last had them versus resetting to some default position every time I open them or click on a new file?  Very annoying.

  • Why can't I preview indd files within InDesign's open file dialog box?

    Hello all,
    It is bad enough that Adobe doesn't add a plugin to preview any Adobe source file within Windows Explorer (well, except for PDF but I think Microsoft did that).
    But I find it ridiculous that I cannot preview .indd source files inside InDesign's Open File dialog box. It just states, "No preview available". I am sure this failure is tied into what Windows can preview... still, not a good excuse!
    This is also the same problem in both Illustrator and Photoshop.... neither Adobe program can preview their own file format!
    WHY?  OR How can I correct this?
    [UPDATE: SageThumbs | SourceForge.net seems to partially work on many Photoshop files (works reasonably well as long as I limit the file size to 70mb), it doesn't seem to work on Illustrator files (despite the claim), and it doesn't work on InDesign.]
    Still, the question remains, why isn't Adobe taking responsibility for this? 

    I think you all misunderstood.
    I am referring to opening files *within* the Adobe software. Example: Inside InDesign, I click File > Open... I see a list of my .indd files and to the right is a window with the words, "Select a file to preview."  If I select an .indd file, I think it is reasonable to assume that I will see a preview of the .indd file... but NO, I just see the message, "No preview available."
    In my opinion, this is a failing of Adobe!
    > Use bridge
    Why would I want to open a separate program just to see thumbnails? Sure Bridge has its uses when I want to look at a lot of different images but I am only talking about quickly seeing a thumbnail before I open a single file within either InDesign, Photoshop, or Illustrator.
    Q. If Bridge can render thumbnails, why on Earth would Adobe not place the preview code into the open file dialog of each program?

  • Check if file downloaded successfully , through Open Save dialog box

    hi,
    In the jsp I have a download link through which user can download a file which is located on the server . I have achieved this by setting the response type in servlet as follows => response.setHeader("Content-Disposition", "attachment; filename=" + fileName); .When the jsp page loads the user is shown a Open Save dialog box for downloading the file. The user can download the file or cancel the operation.
    But now I need to track if the user has downloaded the file successfully on his m/c , depending on which a flag will be updated in the database . I am not able to track this event . Pls help how I can check if the file has been downloaded successfully and do further processing.

    This is fully dependent on the client side. You can never rely on that.
    In most cases you could check if any byte of the file is written to the outputstream and/or no IOException is been thrown, but some webbrowsers (such as Firefox) will download the file immediately while the client still need to choose 'save' or 'cancel'. Only when the client chooses 'cancel' the download will be aborted and the file will be deleted. But if the file is small and/or the network is fast, then the file download might be already completed at that time.
    Again, you can never rely on what happens at the client side.

  • ICloud doesn't show up in Numbers open file dialog box

    How do you add iCloud to the Numbers open file dialog box? It doesn't show up for me. I've already set up iCloud in my system preferences and enabled document synching.

    Unfortunately, since I don't use iWork on my Mac I'm not going to be much help.  But unless there's something in Numbers settings that you need to enable to use iCloud like you do in the iOS version, all you should need to do is enable Documents & Data in System Preferences>iCloud, which you said you already did.  You might try unchecking this setting in System Preferences, restarting your Mac, then checking it again to see if that makes any difference.  That is a standard troubleshooting step for other iCloud syncing issues.

  • Open File Dialog Box (JS)

    I know that in order to open a file dialog box and get a file I have to use this code:
    myFile = File(File.openDialog("Import XML","XML Files: *.xml"))
    This is what I use to open XML files. Now I want to be able to open a folder based on the label of the textFrame. I can get the label and build the file path. How can I open a dialog box that already points to a specific folder? Also, how can I check with the script if there are files within the folder?
    Thanks,
    Justin M.

    >How can I open a dialog box that already points to a specific folder?
    var myFolder=Folder("/C/XYZ");
    var myMask="INDD:*.indd";
    var myFile=myFolder.openDlg("Select Files To Open", myMask, true);
    >Also, how can I check with the script if there are files within the folder?
    var myFolder = Folder.selectDialog("Please select path to files");
    if (myFolder!=null) {
    var fileList = myFolder.getFiles();
    alert("The selected folder contains " + fileList.length + " files.");

  • Open file dialog box - Excel 2011

    Not sure if this is the right forum to ask a question about running Office 2011 under Mavericks.
    Since upgrading to OSX 10.9, something very odd seems to have happend to the open file dialog box in Excel. The list of the files in the current folder is displayed, but the filename column is really narrow showing just 7 characters of each name. In contrast the date modified column is incredibly wide. I can manually adjust the filename column to make it wider so I can read the filenames, but each time I reopen Excel it has defaulted back to being very narrow.
    Does anyone know if there a preference setting somewhere that I can change in order to make the width default to something more readable so I don't have to manually change it every time I want to open a file. The Word and Powerpoint open dialog boxes appear normal, so the problem seems to be confined to Excel.
    I had been running the same version of Office 2011 under Snow Leopard and the change to Excel only appeared after upgrading the OSX 10.9.

    MalcolmBebb@Honeywell wrote:
    OK, I was a bit hasty. The thanks stand. Can't see how to edit the post, please consider the rest withdrawn.
    It's okay - we all get like that at some time or other.  I dread reading my posting history for that reason. 
    I'm just glad you got exactly the help you needed. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Why can't I sort in Open/Save dialog boxes?

    Ever since I upgraded to ML, I found that I am unable to sort the listing in open/save dialog boxes. Currently the folder contents (List view) are all sorted by reverse Name. There are times I rather sort by Modification Date or Creation Date.
    The regular finder windows work as expected (click to sort, two clicks to reverse sort), but it seems this functionality have been removed from the Open/Save dialog boxes. I've searched for any tips/hints, but have been unable to find anything. Help.

    v3ktor.com wrote:
    Could not find the sorting function in the open dialogs before coming here. Really bad interaction design from Apple. It took me ages to figure it out. And if you sort it on "name" how do you switch A-Z or Z-A?
    You are not sorting, you are Arranging (ie grouping). In the Open file dialogs, you don't have an option to Sort.
    If you want to sort the items, set Arrangement to None and use the List View. Click the headers to sort. If you want to add more headers, right-click on the headers to select them.
    In the regular Finder Windows, the options when you click on that button without any modifiers is the Arrangement options. Arrangement groups items by those criteria. By Name is like Sort, but without an option to switch direction.
    If you press that button (or use the menu command in Finder) while holding down the Option (alt) key, you will get the sort options.  If you have an arrangement set, then the Sort option will sort within the groups. Some Arrangements have no sort option (like by Name) because it doesn't make any sense. If you just want to Sort, then set Arrangement to None and use the Sort option to sort.

  • Open window dialog box

    Dear reader,
    My application is uploaded on the web.
    I want to open the "Open window dialog box" on the web but am unable to do so.
    also I dont want to get a static file but it should be selectable. Using java beans opens a static file and its not dynamic.
    if i am wrong please correct me otherwise give an alternative.
    thanks & regards,
    bhakti.

    if i understand correctly you have a note item (based on table) on every child record? when you open the dialog box: how do you put data from notes to dialog box? in the same way as you can write it back ...

Maybe you are looking for

  • Authorized macbook no longer authorized

    Hi There: I had to send in my Macbook for service and came back wiped out. I had backed up some important files and my music library on my ipod in an external HD mode type of thing. Now I put my music back on my computer and then tried to put it back

  • Have I made a huge mistake ordering this??

    I'm hoping there are a whole host of people who have ordered and had installed Infinity and get something like the service that is promised.. yet all I seem to be able to find here are people complaining about things, and a lack of replies from BT of

  • Database changes during pool pairing in lync 2013

    Hi, I am planning for pool pairing.Can anyone tell what all database get copied on bacup pool.Do we need extra storage for pairing. will all previous lcscdr & lcslog get copied to backup pool?

  • Document Still Open-RAS

    When I close the report using close() method in ReportClientDocumet class  I still see the document is opened in RAS server. I view this information on Report Application server metrics . How do I close the report so it removes the job reference from

  • Elements 11 will not launch

    there were no errors during installation, serial number accepted no problem.  All I get when I attempt to launch is the Elements 11 Organizer software licensing Agreement and when I click on accept, nothing else happens.  I have installed and uninsta