How to disable the Add button of attachmentLink programatically in CO

Hi All,
Please let me know how to disable Add button created along with the view list link of attachmentLink item in OAF.
I want to enable only the view list linkl and disable Add button.
Thanks
Pooja

Hi Pooja,
You can set the property insert allowed to false for the entity map related to attachment item in page definition.
Now in your controller, you can set this to true if your condition is achieved.
Dictionary[] entityMaps = attBean.getEntityMappings()
entityMaps[0].remove("insertAllowed");
entityMaps[0].put("insertAllowed", false);
attBean.setEntityMappings(entityMaps);
Hope it helps.
Thanks,
Deepak
Edited by: Deepak Jain on Apr 6, 2010 11:01 PM
Edited by: Deepak Jain on Apr 7, 2010 12:02 AM

Similar Messages

  • How to Disable the Add & Review Button

    How to Disable the Add & Review Button
     *Updated with the correct ISF  code (the previous code, in case you saved it, was to actually  escape apostrophes.  That will be posted  seperately. 
    Note that this solution might not work in your environment - you might have to modify it based on your installation.
    Enjoy! 
    Common_disableAddAndReviewButton()
       if ( Moment == 'ordering' )
            var theForm = document.forms[0];
            var buttonCt = 0;
            for( i = 0; i < theForm.elements.length; i++ )
                 if( theForm.elements[i].type == "submit" )
                    if ( buttonCt == 0 || buttonCt == 2 )
                        theForm.elements[i].disabled = true;
                         theForm.elements[i].style.visibility="hidden";                  
                     buttonCt++;              

    This is GREAT - I added a new Java Script and set it to "when form is loaded" and when I did some test reqs - no Add & Review button !!!!

  • How to disable the cancel button in InputDialogBox?

    Can someone please tell me how to disable the cancel button in an input dialog box?
    thanks,

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How to disable the trackpad button function?

    My trackpad botton goes mad, it's seems like hold you mouse's left button and you can click the right button, just can't open the file, my usb mouse works great only in Snow Leopard, in Leopard I can use none of mouse or trackpad.
    I think my trackpad button has broken, I want to disable this button, but I don't know how, can you give me some advise?
    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL?

    I'm using Snow leopard( 10.6.2 ) now, how to disable the trackpad button in SL and keep my trackpad available, I prefer using touchpad, I think I can disable the button and still use touchpad?
    I apologies for my poor english.

  • How to disable the minimize button on the JFrame?

    Does anyone know how to disable the "Minimize" button on the JFrame (Window)?

    Why bother using a JFrame at all? Just extend JDialog, and there won't be a minimize button to worry about at all. The only drawback is that a JDialog doesn't put an icon in the taskbar, so you have to move/close other windows until you can see the JDialog window on the desktop.
    The windowMinimized stuff doesn't let you stop what the window is doing -- you just get an event telling you what happened.

  • How to disable the AET button on Web UI?

    Hi all,
    Does anyone know how to disable the AET button in the Web UI? Our customer doesnu2019t want the end users to change any configuration and the only thing left for this is hide/disable the AET functionality.
    Thank you very much in advance.
    Kind regards,
    Alvaro

    Alvaro,
    The AET should not be visible to end users, especially not in the production system.
    This should be done by authorisation.
    If you are referring to the personalization, you can disable this in the businessrole by selecting a value for the parameter PERSONALIZATION.
    If there are no values available, you can maintain them in sm30 --> PERSCV_PROFILE.
    Hope this helps.
    Regards,
    Pieter Rijlaarsdam

  • How to disable the salary button

    How to disable the salary button in "Combined Per & Asg Form WKFLW_NAME="US HRMS PERSON TASKFLOW" screen function.

    You should not modify the taskflow "US HRMS PERSON TASKFLOW" directly. Instead, create a new Taskflow that contains the navigation items you require, and then create a new function that uses the Taskflow.
    1. Create a Tasklfow
    2. Create a Function using the form "Combined Per & Asg Form" including the parameter WORKFLOW_NAME="XX HRMS PERSON TASKFLOW" (or whatever you have called it)
    3. Use this function in your menu definition.
    http://download-uk.oracle.com/docs/cd/B11454_01/11.5.9/acrobat/115hradm.pdf
    See section "Configuring Oracle HRMS" for more information on Taskflows.

  • How to disable the Tools Button in Bex Analyzer

    Hi Guys,
    How do I disable the Tools button only in Bex Analyzer so as to avoid the users messing with Query Designer.
    Thanks,
    Recca

    Recca,
    Can you do this via authoirsations instead?  ie. Allow two types of users, Designers who have access and Users who don't.
    User will be able to access the Query Desinger but have no access to create or save. That should suffice.
    If you start tweaking with the toolbar it may have wider negative implications.
    Regards
    Gill

  • How to disable the cancel button in the ProgressMonitor

    hi,
    I need to know, is there any way to disable/remove the (cancel)button in the ProgressMonitor?
    One more problem is,
    Once i click the cancel button, isCanceled() return true, how to make it false again so that the process continue....
    It is very urgently.....
    please help me out.
    Thanks in advance.
    Regards,
    Deepa Raghuraman

    I don't think that's a good solution, because Cancel button itself is not disabled, so user is tempted to click it and nothing happens.
    A better but dangerous solution is this:
    progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this,
                                         "Running a Long Task",
                                         "", 0, 100);
    progressMonitor.setMillisToDecideToPopup(0);
    progressMonitor.setMillisToPopup(0);
    progressMonitor.setProgress(0);
    JDialog dialog = (JDialog)progressMonitor.getAccessibleContext().getAccessibleParent();
    JOptionPane pane = (JOptionPane)dialog.getContentPane().getComponent(0);
    pane.setOptions(new Object[]{});Refer to the same question here [http://stackoverflow.com/questions/512151/how-do-i-disable-the-cancel-button-when-using-javax-swing-progressmonitor] .

  • How to enable the add button in worksheet properties in OLAP

    Hi
    After Changing the time to Pacific, im able to manage the catalog..But still im not able to share any of my olap worksheets.
    I have also granted the BISM and D40 objects from ' user_objects table ' to the user from whom im trying to share the report..
    but in my OLAP report..the worksheet properties shows me the add priveleges button in a disabled form..pls can any body help me out..it is an urgent issue and cud'nt enable the add button..
    please give some guidance...
    Thank you,
    S. Kokila

    Hi,
    Normally, for the archiving or generation of the invoice document in PDF format is handled by maintaining the output records through VV31/VV32 with the relevant printer, storage mode ( 3- print and archive or 2- archive only ), no. of messages ( means no of copies ) in the communication method.
    Then when you click the print button through VF03 in the print options pop-up you get a print at the physical printer and at the same time an archived copy ( PDF copy ) attached with the document.
    So, please make sure the output records are fine to allow a PDF copy generated and then try to print and check in VF03 by entering into the billing document.
    Hope this helps you.
    However, from the print preview you normally would not be allowed to save or print.
    Regards,
    Ram
    Edited by: Ramakrishna Peri on Apr 3, 2009 9:16 AM

  • How to disable the submit button

    Hello ,
    I have multiple controls on a page . I want to disable submit button until the user enters all the fields .
    How to do this . appreciate your help in this .
    rgds
    kumar

    Hi Kumar,
    watch this post: disabling the submit button
    Tobias
    http://apex-at-work.blogspot.com

  • How to disable the Save button For a pdf?

    Hi,
    I have a requirement that when you open the livecycle developed pdf, the Save option available in the toolbar (Save As icon) and File menu of the Reader should be disabled. A button will be provided in the form separately to provide the Save functionality. Can anybody help me reg. this? Is there any setting available for this in Adobe Pro or any other tool?
    Regards,
    Maria

    It's not really difficult to disable the save button. But it depends on the context from where you want to delete it. even if you disable the save button the user has the option to print screen and create a fresh pdf. So your question has some philosophical aspects to deal with. Please mail me at [email protected] incase of further quries. I've understood your problem and have got a solution but it's not somewhat legitimate to do. I can share it with you through email.

  • How to disable the checkout button in saved carts window in istore

    Hi all,
    There is a requirement to disable the check out button in the saved carts window in istore.
    When a user is saving a shopping cart in istore and revisiting back to the cart after some days. he should not be able to checkout but he has to click on update and go through the checkout.
    If i could disable the checkout button then i could make all the users to click on the update button to proceed to checkout
    Any ideas please............
    Regards,
    Prasad
    Message was edited by:
    Prasad rajan

    Cross posted: [http://www.coderanch.com/t/487888/Swing-AWT-SWT-JFace/java/disable-cancel-button-input-dialog]

  • How To: Disable the Print button until Required Fields are filled out

    I have a PDF Form that I have created using LiveCycle Designer 8. On my PDF Form, I have a bunch of fields that are required. Is it possible to disable the Printer button until the user fills out all the required fields? We don't want a user being able to print out an incompleted form.

    It's not possible.
    However, you can create buttons on your document that "help" the user print
    just a part of the document: a certain page range, just the current page,
    etc.

  • How to disable the "Navigator" button on Nokia 621...

    Hi,
    Anybody knows if there is a way to disable the "Navigator" button on Nokia 6210? 
    It gets accidentally pressed (when in pocket or when trying to answer a call etc.) and the GPS eats all the battery..

    this cant be disabled unfortunatly its a built in feature and as you said you keep accidently pressing it this happens im afraid
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

Maybe you are looking for

  • Remote and Testing Server Site Definitions

    I am confused about what information I should put in my remote site definition info and testing server FTC Host directory text boxes. My host placed 3 directories: database, log, and www on my server and Dreamweaver placed two directories, Connection

  • Template title problem

    hi i have designed a dreamweaver template which has a main content editable region and another region further up which i want to include the title in. Therefore this piece of code i made as follows: <head> <link rel="stylesheet" type="text/css" href=

  • KM Context Menu 'action' as hyperlink

    Can the km property actions be displayed as a hyperlink(s) instead of as a context menu.  For example can I remove the action context menu and replace it with a hyperlink that says 'New Document'.  This link when clicked would yield the document uplo

  • Unlocking multiple folders within Iphoto Library folder

    I just bought ILife 06 and the pics in iphoto will not upgrade because Im assuming some of the pics within the folders in the Iphoto Library are locked. I transferred a lot of these pics from a cd rom and apparently files transferred in such a way ar

  • Need to upgrade BI patch update..

    Dear friends, last week we have successfully upgraded our CRM patch upgradation from 5 to 7.0 now as a BI consultant i need to suggest whether we have to upgrade the BI patch upgradation? right now BI version is 7.0.1 need to updgrade latest patch ,