on 06-13-2006 6:36 AM
Hi,
I am trying to deactivate the trash can icon during the approval of invoices. I have found where I can deactivate the icon, that is in SE80 > Internet Service > BBP_PDH_TEXT 100.
I have commented out the line:
`if ( (GV_MODE_TEXT=="E") || (GV_MODE_TEXT=="C") )`
`if (GV_INTERNAL_ATTACH_MODE=="X")`
`if (GS_ATTACH-INTERNAL_IND[j])`
`TD(align="center")`
<a href="javascript:deleteAttachment('`GS_ATTACH-GUID[j]`')"><img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/trash.gif")`"
alt="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" title="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" border=0></a>
`else`
`TD(align="center")`
`end`
`else`
`TD(align="center")`
<!-- <a href="javascript:deleteAttachment('`GS_ATTACH-GUID[j]`')"><img src="`mimeURL(~service="bbpglobal", ~language="", ~name="images/icon/trash.gif")`"
alt="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" title="`BBP_TEXT_GLOBAL-DELETE_TXT.label`" border=0></a> -->
`end`
`end`
However this only achieves that when I add an attachment when I create the invoice, I can't then delete it because the icon's gone. Does anyone know of a way where I can only remove icon during invoice change and not during invoice create?
BTW, can you guys please be really specific as I am not actually a developer (my skills in coding are very limited as you can see)
Thanks,
Paula.
Hi Paula,
You can keep only 1 condition in the template GV_MODE_TEXT=="C" i.e. CREATE mode.Hope this will keep the icon only for the create mode.
If this doesnt help,then may be you wil have to mdofiy the std code ..Include LBBP_PDH_TEXTF11 and Form modify_screen_tc--Here you can set your condition based on the field "gv_mode"...I.e. only for create mode you can have the attachment icon.
Regards,
Disha.
Pls reward points for helpful answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Disha,
I have already tried doing that. It seems that even when I am creating an invoice it falls in the condition IF GV_MODE_TEXT==E.
I did see the bit about changing the code in modify_screen. I am a bit reluctant in changing that because I am not a developer and we have none at the moment. We might try that later on.
Thanks,
Paula.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.