on 2011 Aug 10 10:16 AM
Hi All,
I am working on Sourcing 7.0 project management part. Is there any way to restrict the number of attachment for a task? My requirement is for one task user can attach only 3 documents.
Is there any configuration setting where we can set the count? Or I need to write Script for that.
Please share your view.
Thanks,
Deepak
Edited by: Deepak Arora on Aug 10, 2011 11:17 AM
Request clarification before answering.
Hi
I am not sure this could be achieved using configuration. However a validation script can be written to keep a check on number of attachments. You can throw an application exception when attachment count increases beyond a particular limit.
Regards
Mudit Saini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mudit,
Thanks for reply.
As per detail in Help.sap.com, attachment option is available on the sourcing document toolbar, or in a line item, project schedule event, or discussion message.
Here I am taking Project as document. I have checked class for document ans is u201Cprojects.ProjectTypeu201D. In that u201CDEFAULT_ATTACHMENTSu201D is coming as a collection and class for this is u201Cattachment.subordinateu201D.
Could you please give some pointers on how to proceed for scripting.
Thanks
Deepak
Hi
You can use method: getAttachments() ( IAPI: com.sap.eso.api.projects.ProjectIBeanIfc) to get the list of attachments for the project. then a counter can be set to keep count of attachments restricted.In case user try to add more attachments, exception message could be thrown.
Regards
Mudit Saini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.