How to disable 'Save' button when OAF and XML Publisher integrated...URGENT

Hi,
I am new to the OA Framework and XML publisher. I have been working on a requirement where I am designing a new page in Manager Self Service with few fields and a submit button. Also designed a RTF template in XML publisher to display the output in PDF format.
When the details are entered on the page and click on 'Submit' button, the PDF will Open with the data populated. This is working perfectly... thanks to the forum.
But my issue is: When the submit button is clicked, it displayes a dialog box with Open/Save/Cancel options and if I click the 'Open', the PDF will be opened. But my client is a retail client and they don't want store managers to save this PDF so either I have to skip this dialog box and directly open the PDF or I have to disable the 'Save' on the dialog box.
Gurus -- Please help me how to achieve this. This is very urgent
Below is the piece of code I am using in the controller to generate the PDF.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
APP_NAME,
TEMPLATE_CODE,
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF,
null,
pdfFile);
Thanks in Advance,
Naren

Frank, thanks for the update.
But do you want me to try ControllerContext.getInstance().getCurrentViewPort().isDataDirty(); in button disable property?
I have written one method in my am like
public boolean isTransactionDirty(){
return getDBTransaction.isDity();
and exposed that method to client side and i try to use this method in my button disable property as
disable#{bindings.isTransactionDirty.execute} but this is not working.
Thanks

Similar Messages

  • How to disable SAVE button(in menu and tool bar)

    Hi all
    i have to disable the save button in menu and tool bar...
    Thanks
    raj

    Hi,
    I have an issue to disable special menu in the menu list for production supervisor responsiblity.
    I am using release 12 application. I want to achieve this using custom.pll
    I have used the following code in the custom.pll
         if (event_name='WHEN-NEW-BLOCK-INSTANCE') THEN
              if (form_name='GMEBDTED') then
              app_menu2.set_prop('Transact Material',ENABLED,PROPERTY_OFF);
         end if;
         end if;
    But when i complied this code and reopen the form still the Transact Material in the menu list enabled.
    please give ur advice
    Regards
    Prabu

  • How to disable save button on selection screen (1000) run from other report

    Hi Experts,
    Can any one let me know how to disable save button on selection screen (1000) run from other report.
    Say I am running from report R1 which submits report R2, but the save button should be disabled on
    report R2(selection screen 100).
    Thanks in advance.
    Regards
    RP.

    Hi RPReddy16 ,
    Try this:
    DATA :BEGIN OF t_extab occurs 0,
                     fcode like rsmpe-func,
                 END OF t_extab.
    REFRESH T_EXTAB.
    MOVE 'SAVE' TO T_EXTAB-FCODE.
    APPEND T_EXTAB.
    CLEAR T_EXTAB.
    SET PF-STATUS 'STATUS' EXCLUDING T_EXTAB.
    Regards,
    José

  • OAF and XML Publisher

    Hi,
    How to merge OAF and Xml publisher when multiple view objects are present i.e(PO header and Lines)
    Thanks

    refer this http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
    --Prasanna                                                                                                                                                                                                       

  • How to Disable Save Button in interactive form via sfp

    Dear,experts
    My requirement is that Disable Save Button in interactive form via sfp .Is there any options to do this or write Javascript/Formcalc.Please help!
    Thanks
    Vince.

    I found a adobe documentation that says that If you want to disable some toolbar buttons, you will have to use application-level Javascript. Looks like it is not possible from ADLC
    Place the following Javascript code inside a .js file in
    %ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScripts   to disable the toolbar buttons:
    // [File - Create Adobe PDF Using Acrobat.com], plus toolbar button
    app.hideMenuItem("WebServices:CreatePDF");
    app.hideToolbarButton("Weblink:CreatePDF");
    // [File - Collaborate], plus toolbar button
    app.hideMenuItem("Annots:FileCollaboration");
    app.hideToolbarButton("Annots:CollabToolButton");
    app.hideToolbarButton("CommentTask");
    app.hideToolbarButton("SigTaskButton");
    app.hideToolbarButton("SaveFileAs");
    app.hideToolbarButton("Save");
    Regards
    Sandy

  • How To Disable Save Button in a PDF

    I have Creating One Application in Oracle Forms 6 and Run in Web
    In that I have Showing a Pdf Fie using a WEB.SHOW_DCOUMENT.
    But I have to Disable a Save and print Button in Display pdf file in a IE.
    It’s Possible then help
    thx

    The best way to find out something about it is to type in www.google.com these key words: disable save adobe
    Then you can read more about it on this links:
    http://www.adobeforums.com/cgi-bin/webx/.3bb65a55
    http://www.adobeforums.com/cgi-bin/webx/.3bc076e4
    http://www.acrobatusers.com/forums/ask_an_expert/questions/view/1222/
    It's interesting question and very important but looks like unsolved...

  • How to disable "Save" button in FileDownload Element??

    Dear All,
    I have an urgent case which <b>requires not to show the "Save" button in FileDownload element box</b>.  I only want "Open" and "Close" button shown.  How to achieve this?
    thanks,
    Zita Liao

    Thanks all,
    But I use this piece of the code....and only the pdf file is opened directly.
    Other types such as .doc or .ppt, the system still pops out the "SAVE" window though.  How to deal with other types and let them open directly??
    try{
                               IWDCachedWebResource pdfResource=WDWebResource.getWebResource
                           (out.toByteArray(),binaryType.getMimeType());
                           wdComponentAPI.getWindowManager().createExternalWindow(
                             pdfResource.getURL(),"Report View",true).open();
                          catch(Exception e)
                           wdComponentAPI.getMessageManager().reportException(
                           e.getLocalizedMessage(),
                           true);
    thanks,
    Zita

  • JDev ADF Faces and XML publisher integration

    Hi,
    I have an ADF Faces / BC project which I want to integrate XML Publisher for reporting and output purposes.
    Following this note by Deepak Vohra http://www.oracle.com/technology/pub/articles/vohra-jdev-xmlpub.html (which was incredibly helpful by the way)
    So far it's looking very promising but I have a few unknowns with the design.
    1. The database connection.
    In the examples a JDBC connection is opened (and actually forgotten to be closed!). I would like to utilise the AM pooling mechanisim rather than a seperate open/close situation. How do i properly reference/use the pooled AM java.sql.Connection?
    2. Output
    The examples write the PDF (what i am using) to the file system. Is it possible to write this to the browser response stream using a JSP or servlet? My preference is NOT to produce PDF's on the middle tier file system if possible. Need some guidance here.
    thanks and regards,
    Brenden

    1. The database connection.
    In the examples a JDBC connection is opened (and actually forgotten to be closed!). I would like to utilise the AM pooling mechanisim rather than a seperate open/close situation. How do i properly reference/use the pooled AM java.sql.Connection?
    To obtain JDBC connection from ApplicationModule refer
    http://radio.weblogs.com/0118231/2004/01/30.html#a232
    2. Output
    The examples write the PDF (what i am using) to the file system. Is it possible to write this to the browser response stream using a JSP or servlet? My preference is NOT to produce PDF's on the middle tier file system if possible. Need some guidance here.
    Output may be set to an OutputStream with the FOProcessor method
    setOutput(java.io.OutputStream stream)

  • Disable save button in vl01n

    hi
         can you everybody tell me how will disable save button in vl01n
        please reply me
    Thanks
    with regards vijay

    hi,
    i could not understand ur query? pl. put it in a right way, then only it would be possible for us to give you the prompt reply.
    regards
    KR

  • How to disable Setting button in Tools - Options - Advanced - Network from windows registry?

    Dear support,
    Now, my office use Firefox as default browser to access WebServer. And there are some policy that users must use ProxyServer. I do not want user change proxy setting in Firefox. How to disable Setting button in Tools - Options - Advanced - Network from windows registry?
    Thank you.
    Treky

    You can not use the Windows registry to disable items in Firefox. This link shows how to lock down Firefox proxy settings, change the values to suit your needs:
    http://www.stbernard.com/ip5kb/iPrism/WhatsNew/50SupportFiles/SupportFiles/IP0460.htm
    One minor variation, in step 4 instead of adding that line to all-js, you can create a file called ''local-settings.js'' containing the line shown and save the file in the same folder as all.js

  • Disable 'SAVE' button on 'FILE' menu on some forms using personalization

    Hi there,
    I need to disable 'SAVE' button on 'FILE' menu on some forms using personalization. Please let me know if you know how to do this. Currently we have done this through custom.pll and we are trying to phase out custom.pll. Any help is appreciated.
    thanks
    Sudeep

    whether i know u cannot disable SAVE toolbar through Personalization. You do it with custom.pll.
    CHECK FOLLOWING LINK
    Disable Save item from Contrl Menu
    Pradhyumn Sharma

  • Disable save button in toolbar in offline form

    Hi to all !
    I am facing a wierd problem in my  adobe interactive offline form.
    I have added a save button in my offline form . I have added  validation script on this button.
    Hence I want the user to use this button only.So I want to disable the save button  that comes in the adobe reader for every user of this particular form.
    i know that their is a similar functionality for wd adobe form but i am creating an offline form, and i do not know how to disable the button in this case.
    So please help me

    Hi Kuldip,
    if you're trying to hide the Save Button in the Adobe toolbar, then you can place the following code in the wdDoModifyView method to hide the whole toolbar.
    // Get interactibe form handler.
            IWDPDFDocumentInteractiveFormHandler iFormHandler = WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(), "<name of your form>");
    //     Get appearance setter. 
          IWDPDFDocumentAppearance appearance = iFormHandler.getDocumentContext().getAppearance();
         // Hide menu bar.
         appearance.hideMenuBar(true); 
         // Hide tool bars.
         appearance.hideToolBars(true);
    hope this helps,
    harman

  • How to disable a button

    Hy Experts,
    I am a Basis guy and I want to know how to disable a button from any screen.
    Basically I have to Disable a button "Save as Completed" from the screen of t.code MIR7.
    Is there any way to hide it. If it is then please let me know, I will be thankful to you.

    Dear Aplesh,
    Check this:
    It will give you the description along with screen-shots.
    http://husnie.wordpress.com/
    Regards,
    Rakesh

  • How to disable minimize button(icon) of jframe

    how to disable minimize button(icon) of jframe

    HELP!
    I need to do a similar thing. Along with a couple other things.
    I was able to control some windows thru a unix window manager like I would for Motif (the use the window name of AWTapp or AWTdialog are recognized when doing xwininfo) That is all I can seem to get. Nothing changes this.
    Does anyone know how?
    Anyway. mwmDecorations and mwmFunctions settings appear to allow setting of some of the windows. But I need control 100%of the time.
    I need to disable the CLOSE button in all java windows or find a way that the window manager event can get back to the java application. Currently it is not recognized.
    In some windows I need other items disabled such as SIZE & MAXIMIZE.

  • How to create SAVE button in Workbook using BI IP Functionality

    Hi All,
    I have Real-time Infocube (ZCUBSDID) with me. Planning has been done on the cube using BI-IP (like Aggregation level, filter, planning function and planning sequence are present there).
    As an Input i have everything in Quality system like I can access query in Bex Anlyzer (Input Ready Query) and also i have workbook associated with the query. SAVE button is also present on workbook which is giving result based on fiscal year and version.
    Now my task is to create workbook on Development system with the same functionality as Quality System.
    I have same Query available on DEV system also. I created new  Workbook but SAVE button is not available in my workbook.
    Can anyone suggest how to create SAVE button in my new workbook.
    I am new in IP side so please let me know if i can get any help from workbook which is already present in Quality system.
    Which type of analysis i should do to come out with solution.....otherwise let me know step by step procedure to create SAVE button on workbook using BI-IP functionality.
    It will be great help. My advance thanks goes to you people.
    Thanks,
    Rupali Singh

    Check points 19 & 20 on this link http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a033e0f56e21b5e10000000a1553f6/frameset.htm.
    Command to be called on SAVE button is SAVE_AREA as explained in the point 20.
    Regards,
    Deepti

Maybe you are looking for

  • I can't find a way to preserve app data while upgrade from iOS 3 to 4

    During the weekend I am helping one family member to upgrade the iOS on her iPhone 3G from 3.1 to the latest available, 4.2.1, and I ran into a problem which mades me frustrated. Before the upgrade, iTunes warns me "Upgrading to iOS 4.2 will delete a

  • Do I need to reboot host machine when Restarting an Administration Server ?

    Please let me know if you have come across following situation. I have two separate physical machine (Sun Solaris) having separate Weblogic 8.1 server running. One machine is prodcution server and another contigency server. In the contigency situatio

  • How to save a data file in Labview in the root ntuple format ?

    Iam using Labview and storing the numeric values from a Keithley 237 module via GPIB interface in a excel spreadhseet.I wish to store the data in root(anlysis softwarefrom CERN) ntuple format.How do I do this..?

  • How to debug program that runs SAPScript

    Hello, How can I step through the program (in debug ) that prepare the data to load into SAPScript form?  I already know how to activate SAPScript debugger, SE37 -> Utilities -> Activate Debugger.  However, this only takes me to the form where the da

  • Has anyone else seen odd web site formats recently?

    Both of my lion macs are displaying the same webist, "mine", oddly. Fonts big, footers stretched etc. Not all web sites have this issue but mine does. I dusted off my old sony and took a look there and all was looking good so I was wondering if a rec