How to disable/lock (Delete/Trash Icon) when Contract Document is Executed

Hi All,
I am trying to disable trash icon on Contract Documents tab for a particular contract document item that is in "EXECUTED" phase.
I tried setting security profiles , access attributes for "Contract Generation". I had set DELETE - ALLOW and ADMINISTRATIVE DELETE - DENY.
As per one of the post I found, that
Security profiles are configured in setup on the system administration tab. There are 2 "rights" associated with Contract Documents that apply to this situation:
1) Delete
2) Administrative Delete
The first access right indicates whether or a not user can delete contract documents up until they are executed. The second access right provides for the delete option even after the contract documents are executed.
To address your use case, you should make sure that users have the Delete access right in one or more of their associated security profiles and make sure they do not have the Administrative Delete access right.
But when I tried the same, edit option is also disabled on Contract Document item. Edit was set to ALLOW although.
Please suggest if I am missing something.
Thanks,
Saloni
Edited by: Saloni on Nov 10, 2011 10:23 AM

Hi Vikram,
After setting Security Profiles for Contract Generation>Contract Document>DELETE allow and Administrative Delete to DENY, Trash Icon is disabled for all contract documents watsoever phase they are. And is enabled for all contracts if Administrative Delete is set to Allow.
It is not behaving to enable Trash Icon until its in EXECUTED phase.
So, I am trying to implement using script. I wrote below code that didnt work,
contractDocumentList = agreeBean.getContractDocuments();
for(Iterator iterator2 = contractDocumentList.iterator(); iterator2.hasNext();)
ContractDocumentIBeanIfc contractDocument = (ContractDocumentIBeanIfc)iterator2.next();
ContractDocumentHome = contractDocument.getIBeanHomeIfc();
if (contractDocument.getCurrentPhase().getDisplayName(session).equals("Executed")) // string compare to check executed
//IapiDocumentLockManager.lockDocument(session,contractDocument );
IapiDocumentLockManager.lockField(session,contractDocument ,"Delete");
Any idea what is the ID for Trash Icon?
Please suggest.
Thanks,
Saloni

Similar Messages

  • How did I color my trash icon green?

    Greetings! A Goofy sounds like a newbee question, but
    it has me stumped:
    How did I color my trash icon green?
    All other color is perfect on all icons
    in the dock and desktop.
    1.5 GHZ G4 12" just updated to 10.4.10 a few weeks ago.
    Running graphics apps mostly. No haxies on this Mac anywhere like Candy Bar or anything, just booted up yesterday and the trash can was green.
    Nicely done like it was built that way.
    Firewall is on.. don't think someone in the office is playing a joke on me.. but who knows!
    Any input and or laughter is great!
    z

    Update. Restarting the Powerbook did not clear it up, logging out, logging in as another user, then loggin in as myself again did. Must have been
    the Finder getting flakey, though it has been a green trashcan for a couple days, with re-starts and all. Maybe Oscar the Grouch was hidding in it!
    Still would like to know how the trash can would turn green though
    when all other icons were fine.
    Goofy.
    Thanks!!
    z

  • How do I change the "trash" icon to "archive" icon in email on my iPhone using iOS7?

    How do I change the "Trash" icon to "Archive" icon as the default setting in email using iPhone iOS7?

    That is very much dependent on your Email account. 
    Go to Settings->Mail,Contacts,Calendars->Accounts->Your Account->Account->Advanced->Move Discarded Messages Into.
    Choose Archive Mailbox.
    It may not be there if its not supported by your email provider.

  • How to disable or delete iCloud account?

    Anybody knows how to disable or delete an iCloud Account???

    Welcome to the Apple community.
    All you need to do is logout at system preferences > iCloud.

  • How to disable PUT/DELETE method in SMC tomcat

    Hi,
    SMC provides tomcat as the web server to allow logon the SMC console through IE.
    For security consideration, we have to disable the http "PUT" and "DELETE" method of tomcat. Its config file seems to be /opt/SUNWsymon/web/conf/catalina.policy, but I have no knowledge of this file.
    Do anyone know how to disable PUT/DELETE method in tomcat? Or provide me a reference book for this issue?
    Thanks a lot.

    For security consideration, we have to disable the
    http "PUT" and "DELETE" method of tomcat. Its config
    file seems to be
    /opt/SUNWsymon/web/conf/catalina.policy, but I have
    no knowledge of this file.I'm not sure how to disable that feature, but be aware if you disable the ability for Agents to send files to the SunMC web server you may break all Configuration Tasks. Agent config files are sent to the Server by HTTP to allow them to be stored as templates/snapshots.
    I don't remember seeing instructions on how to make the changes you want: the quickest way to find out is probably to call SunMC support.
    Regards,
    [email protected]

  • How can I change/delete the icons on the Buttons from JUNavigationBar?

    Hi,
    does someone know how I can change/delete the Icons used by the Buttons on the JUNavigationBar?
    Any Idea?
    THX
    Peter Zerwes

    To change the icons, you could call navbar's setButtonIcon method like:
    navbar.setButtonIcon(EXECUTE_BUTTON, myIcon);
    To remove/hide a button group you could call one of the
    setHas...Button methods (setHasInsertButton, setHasDeleteButton, setHasTransactionButtons, setHasFindButton...) THX Sathish, but my problem is that i want to use the Buttons without the Icons!!
    Any Idea?

  • How do you remove deleted apps icons in App Store in purchased area?

    How do you remove deleted apps icons in App Store in purchased area?

    You can't permanently delete any items from your purchase history, but you should be able to hide them from the Purchased tab via your computer's iTunes : http://support.apple.com/kb/HT4919
    If your iPad is on iOS 7 then after hiding them on your computer you may need to log out of your account on your iPad by tapping on your id in Settings > iTunes & App Store and then log back in for them to be hidden from the Purchased tab

  • How can I retrieve deleted trash on a mac book pro?

    How can I retrieve deleted trash on a mac book pro? I inadvertently trashed and then deleted a file from my computer. Is there any way to retrieve it?

    Only be using data rescue software - and there's always the chance that the file has already been overwritten.
    I've used Data Rescue 3 to succesfully retrieve files that I've trashed. It's an $100 gamble, tough, and there's no assurance that you'll be able to retriebve the file.
    Clinton

  • How can I move the trash icon to a different spot on my desktop?

    How can I move my trash icon to a different location on the desktop?

    Here is a comprensible answer on that.
    Here is the answer (not by me): Remove Separator and Trash from Dock?
    This answer is for Yosemite however it could be adjusted to use it on 10.6
    Please make sure you understand all the instructions before doing anything.
    Here is not a so complete answer for 10.5 http://hints.macworld.com/article.php?story=20090523192819542
    As before, make sure you understand the instructions before doing anything

  • How to get value of MA attributes on Contract Document phase change script

    Hi,
    I need to get value of Master Agreement attributes on Contract Document phase change.
    When Contract document phase changes to Supplier Draft, I want values of Master Agreement - Publish date, vendor visible, email.
    But I am unable to retrieve the same.
    I wrote IBean code to get but was not working.
    Please help me resolve this issue.
    Thanks,
    Saloni

    Hi Saloni,
    There is nothing different that you should do for this script.
    Use the getParentIBean() function on Contract Document to get the parent MA/SA. From there on it is as simple as using the correct getters to fetch the values.
    Hope this helps.
    Thanks
    Devesh

  • How to disable/control the dock icon sizes when hovering over them?

    Hello.
    How do I disable/control the dock icon sizes when hovering over them? They are too big when enlarged with my mouse cursor.
    Thank you in advance.

    BDAqua wrote:
    Hi,
    Apple icon at the top left of the screen>Dock>Dock Preferences>Size & Magnification.
    Thank you!

  • [Solved] Deleted trash icon in dolphin, how to get it back?

    Hey, I accidently deleted the trash can symbol in the "places" sidebar of dolphin. Now I wonder how you can restore that, because even if you add a new entry leading to the trash, there will be no option that allows you to empty the trash via that icon.
    I used that icon quite a lot and would like it back. As for now I have the trash widget in my bar, but I hope that is only temporary and I can restore the icon in dolphin. So, does anybody know how?
    Last edited by JonathanArcher (2009-06-15 18:07:42)

    1. Open Dolphin
    2. Press Ctrl + L and go to trash:/
    3. Drag the trash icon closest to the 'trash:/' text into Places (it was probably placed above the root folder)
    4. Right click and choose Edit ''
    5. Rename to Trash and choose the user-trash icon in System icons: Places

  • How to disable "Power optical drive" icon?

    Hi everyone,
    does anyone know how to disabling on the taskbar the "optical drive power" icon or how to deactivating at all the service? I cannot find it in Services, msconfig, not even in 3rd parties registry editors like Cc Cleaner or Jv16 PowerTools...
    Thanks a lot,
    Walter

    Ive tried several options but was not able to remove this symbol from the task bar.
    I dont know if this is the right one but when you open services there you will find option Toshiba optical disc drive service.
    Anyway, dont change anything. It runs in the background and doesnt disturb on any way, right?

  • How to disable edit.delete in oracle forms 11i?

    i was able to use APP_SPECIAL.ENABLE('EDIT.CLEAR',PROPERTY_OFF); to disable the clear button but also want to disable delete button,
    i added the APP_SPECIAL.ENABLE('EDIT.DELETE',PROPERTY_OFF); in the pre_block and pre_query trigger but not able to disable the delete item from edit menu.
    Am i doing sometjhng wrong?

    Hi;
    Please check
    How to disable delete button in a form
    How to disable delete button in a form
    Regard
    Helios

  • How do you permanently delete trash in the deleted items folder?

    I have over 4000 deleted emails in my deleted items folder. How do I permanently delete them from that folder? Thanks.

    Hello,
    If you are talking about the Deleted Items folder in an Outlook client, you probably should ask in the
    Microsoft Office Community Forums.
    Otherwise, I'd probably ask in the
    Outlook.com forum on Microsoft Community.
    In both cases, however, you should be able to right click the Deleted Items folder and select "Empty Folder"
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Maybe you are looking for