on 09-21-2011 5:53 AM
Hi All ,
My requirement is to hide the Add Company Button at the place where we Add Users or Add Groups . I tried to look for methods in reference guide to do the same through scripting. I dint find any solution.
One more thing I am trying is to get Start Date and Expiration dates from Phase Information of required project (Available under Document tab in the project tool bar ) through scripting. For this I am using
wH = doc.getCollectionMetadata("WORKFLOW_HISTORY").get(doc);
and when ever I am using wH.size() , I am getting the correct count of the history in it , but i am not able to iterate through the collection which I got . When ever I am using iterator() method and applying hasNext() method on it , its returning true , but when ever I am using next() its returning me null . I tried using get() and get(doc) on wH , but its not working , The problem is I am not getting to know which type of data/Object it is returning. I have seen in RG that the collection type is Associative. Can any tell me how to traverse through the elements in it.?
Any help is welcomed.
Regards,
Uday
Hi Uday,
Regarding the first requiremet of disabling "add compay" button you can do it from document security templates. Under
Setup>document setup>document security templates, choose the respective (or all) document security templates, navigate to new collaborators tab and uncheck "enable comapany collaborator"
Regarding the second question on accessing workflow history collection you should request IAPI access from SAP stating your requriement. The collectoin elementes returned by this method are not IAPI enabled & hence you wont be able to access this.
Just fyi,,Even if such access works in certain situations, accessing unexposed collection through generic accessor methods is strongly discouraged as this might break in a future release/ SP. Also anytime such generic access to unexposed colleciton may be restricted.
Thanks, Baski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Uday,
Were you able to solve the requirement of "Traversing through Workflow History." ?
I have a similar requirement of getting Start Date and Expiration dates from Phase Information for a contract document. Could you tell me if this was solved at your end?
I can think of querying database (FCI_WORK_ITEM table or others may be) but not sure if this is the only way.
Help will be appreciated.
Regards,
Bindu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.