Use Src Access on regular item type?
Hello Forums, I have a regular item type that is parent to some other regular item types. I.e. we have Item A that has a relationship to Item AB, and Item AB has a relationship to BB. A, AB, and BB are all regular items. I want A's permissions to cascade onto anything below, but it seems that 'Use Src Access' only goes as far as A to Ab (the relationship item), as opposed to also placing A's permissions onto AB. Can 'Use Src Access' reach AB and BB? Best Regards, Frank0Views0likes1CommentChange permission for "view item" option(right click menu) of Documents under Operations
Under Process Plan(mpp_processPlans) --> Operations(mpp_operations) --> documents Some of these documents under an operation are "invalidated". The documents are assigned "invalidated" status from Document-->Part when the "valid" option is changed to "No"(screenshot below). The user has the ability to right click on the any of the documents and select "view item" (picture below) to open the document container (screenshot below). I need this "view item" functionality to work for a certain identity when the document is "invalid" Currently, if the document is "invalid" user can't open it from here but the document opens if one searched for it manually. I can't figure out where does this "view item" option come from and where and how was this right-click menu even generated. Can someone point me in the right direction, please. Thanks!0Views0likes2CommentsJavascript Temporary Permissions
Good day all. I'm still using v11 SP10. How do I grant temporary permission for a user through Javascript? I want to add a Comments tab to our custom change ItemType. I have a script attached to an Action to open a dialog box so a user can add a comment. The Submit button runs another script to pull the comments field information and sends it back to the original script. The original script then creates a Comments relationship entry for the change. I have this working except when the change is in the In Review Life Cycle state for normal user, it works for admins. I want to temporarily grant Aras PLM identity to the user so it can be added. I don't want to allow users to be able to edit anything else in the change while it is In Review. Method: DEMO_Notes_Form [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:21786300-fbfe-4e4d-aea7-c06e604e5f48:type=text&text=%2F%2F%20Aras%20Labs%20Project%0A%2F%2F%20Eli%20Donahue%20-%2010%2F5%2F16%0A%2F%2F%0A%2F%2F%20Call%20a%20custom%20form%20in%20a%20modal%20dialog%0A%2F%2F%20Perform%20some%20action%20based%20on%20the%20values%20returned%20from%20dialog%0A%0A%2F%2F%20Aras%20Labs%20Project%0A%2F%2F%20Eli%20Donahue%20-%2010%2F5%2F16%0A%2F%2F%0A%2F%2F%20Call%20a%20custom%20form%20in%20a%20modal%20dialog%0A%2F%2F%20Perform%20some%20action%20based%20on%20the%20values%20returned%20from%20dialog%0A%0Avar%20inn%20%3D%20new%20Innovator%28%29%3B%0A%0A%2F%2F%20var%20thisItem%20%3D%20document.getThis%0A%0Avar%20topWnd%20%3D%20aras.getMostTopWindowWithAras%28window%29%3B%0A%20%20%20%20topWnd%20%3D%20topWnd.main%20%7C%7C%20topWnd%3B%0A%0A%2F%2F%20get%20form%0Avar%20formName%20%3D%20%22DEMO_Change_Notes%22%3B%0Avar%20fetchForm%20%3D%20this.getInnovator%28%29.newItem%28%22Form%22%2C%22get%22%29%3B%0A%20%20%20%20fetchForm.setProperty%28%22name%22%2CformName%29%3B%0A%20%20%20%20fetchForm%20%3D%20fetchForm.apply%28%22get%22%29%3B%20%0A%0A%2F%2F%20check%20form%20for%20error%0Aif%20%28fetchForm.isError%28%29%29%0A%20%20%20%20return%20alert%28%22Can%27t%20find%20a%20form%20called%20%22%20%2B%20formName%29%3B%0A%0A%2F%2F%20get%20form%20params%0Avar%20params%20%3D%20%0A%7B%0A%20%20%20%20title%3A%20%27Change%20Notes%27%2C%20%0A%20%20%20%20formId%3A%20fetchForm.getID%28%29%2C%20%20%20%20%20%20%20%2F%2F%20put%20your%20form%27s%20id%20here%0A%20%20%20%20aras%3A%20aras%2C%0A%20%20%20%20dialogWidth%3A%20600%2C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20set%20width%20int%0A%20%20%20%20dialogHeight%3A%20400%2C%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20set%20height%20int%0A%20%20%20%20content%3A%20%27ShowFormAsADialog.html%27%0A%7D%3B%0A%0Avar%20parentItem%20%3D%20parent.thisItem%3B%0Avar%20value%20%3D%20parentItem.getProperty%28%22id%22%2C%22%22%29%3B%0Avar%20userID%20%3D%20aras.getCurrentUserID%28%29%3B%0A%0Avar%20callback2%20%3D%20function%28res%29%20%0A%7B%0A%20%20%20%20var%20innovator%20%3D%20new%20Innovator%28%29%3B%0A%20%20%20%20%0A%20%20%20%20var%20partItem%20%3D%20innovator.newItem%28%22sm_DEMO_NDR_Notes%22%2C%22add%22%29%3B%0A%20%20%20%20%20%20%20%20partItem.setProperty%28%22source_id%22%2C%20value%29%3B%0A%20%20%20%20%20%20%20%20partItem.setProperty%28%22comments%22%2C%20res.param1%29%3B%0A%20%20%20%20%0A%20%20%20%20var%20resultItem%20%3D%20partItem.apply%28%29%3B%0A%7D%0A%2F%2F%20call%20form%20in%20dialog%0AtopWnd.ArasModules.Dialog.show%28%22iframe%22%2C%20params%29.promise.then%28callback2%29%3B%0A%0A%0Areturn%20null%3B] DEMO_SUBMIT-Notes [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:d1caeab1-ea95-416a-bc29-4defadc197c8:type=text&text=%2F%2F%20Aras%20Labs%20Project%0A%2F%2F%20Eli%20Donahue%20-%2010%2F5%2F16%0A%2F%2F%0A%2F%2F%20onClick%20field%20event%20for%20Submit%20button%0A%2F%2F%20Returns%20the%20form%20field%20values%20to%20the%20method%20that%20called%20the%20current%20dialog%0A%0A%2F%2F%20get%20param1%20field%0Avar%20wrapper1%20%3D%20getFieldByName%28%22comments%22%29%3B%0Avar%20p1%20%3D%20wrapper1.getElementsByTagName%28%22textarea%22%29%5B0%5D%3B%0A%0A%2F%2F%20confirm%20fields%20were%20correctly%20retrieved%0Aif%20%28%21p1%29%0A%7B%0A%09alert%28%22Can%27t%20find%20field%20param1%22%29%3B%0A%09return%3B%0A%7D%0A%0A%2F%2F%20return%20entered%20values%0Avar%20retVal%20%3D%20%7B%7D%3B%0A%20%20%20%20retVal%5B%22param1%22%5D%20%3D%20p1.value%3B%0A%20%20%20%20retVal%5B%22param2%22%5D%20%3D%20sourceID%3B%0A%20%20%20%20%2F%2F%20retVal%5B%22searchResult%22%5D%20%3D%20p3.value%3B%0A%0Aparent.returnValue%20%3D%20retVal%3B%20%0Aparent.close%28%29%3B]Solved0Views0likes4Commentschanging permissions for existing Items (Documents)
We've a classification of Documents that we've setup to have a special set of permissions. We used the solution presented in the following topic to achieve that: SUPPORT Q&A - Permission based on Class Structure However, before we made this adjustment for the classification of documents, some documents we're already created. These documents still have the generic permissions set. Is there a way to change the permissions of these existing documents in such a way that they have the same permissions as any new document created under that classification?804Views0likes3CommentsHow can i create new permission and add that in
Hello, How can i add new permission and add on add I am using the following mode, it is creating permission but not adding it [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:b254bcb3-f5a7-4a5f-b41e-556278def9a4:type=text&text=Innovator%20inn%20%3D%20this.getInnovator%28%29%3B%0D%0Astring%20docid%20%3D%20this.getProperty%28%22id%22%2C%22%22%29%3B%0D%0AItem%20permissions%20%3D%20this.newItem%28%22Permission%22%2C%20%22add%22%29%3B%0D%0Apermissions.setProperty%28%22name%22%2C%20docid%29%3B%0D%0Apermissions%20%3D%20permissions.apply%28%29%3B%0D%0Athis.setProperty%28%22permission_id%22%2C%20permissions.getID%28%29%29%3B%20%20%20%0D%0A%09return%20this%3B]Solved3.3KViews1like6CommentsCan Add Problem
Good day all. I am trying to set up the ECN for a group of users to be able to create them. I have an Identity called sm_TODO that has the users in it. I have added the Identity to the Can Add section of the ECN. One of my users still has the button for adding an ECN grayed out. I had the user try a different browser just in case, but it is still grayed out. I added another account to the Identity sm_TODO and that account can add ECNs. I'm not sure what to look for with this one. Thanks for your help.Solved2.3KViews0likes2CommentsAbout File Permission
As written in the document “File Handling”, the permissions of a File Item are dependent on the Item containing that File (File container item). But I think there are some use-case for control the file item permission independent of the container item. Ex) CAD Item - Engineer : can upload and download the native files - Sales staff : can download the viewer files (PDF) and are not allowed to download native files - Restricted staff : can view just the data in Visual Collaboration, and are not allowed to download native files and viewer files. I think Aras does not have capability for these use-case with standard permission framework, so I’m considering how to satisfy the requirement. Please give me some advice. Below are my ideas that prevent to download the files by who can access the File Container Item. 1. If the file container item has the file as a property I have two ideas. - Clear the property of managing the file item at ‘On After Get’ event of File Container Item . In search grid and form view, the value of the property for file item is cleared. - Clear the id of the file item at ‘On After Get’ event of File Item . In search grid and form view, the value of the property for File Item is showed normally but cannot download. (show the message “Failed to get the file.”) 2. If the file container item has the file as Relationship Item In this case I have four ideas. - Clear the related id at ‘On After Get’ event of Relation Item In the relation grid, it seems like null relationship, so I cannot download the file. But in Structure Browser, I can see the file item and download the file. So, this idea is not good. - Clear the id of the file item at ‘On After Get’ event of File Item . In the relation grid, it seems like null relationship, so I cannot download the file. (same as above) And in Structure Browser, I can see the file item, but I cannot download the file. - Set the permission of the relation item as “No permission”. In the relation grid, I cannot see the relationship, so I cannot download the file. And in Structure Browser, I cannot see the file item, so I cannot download the file. - Set the permission of the relation item as “Discover only”. In the relation grid, it seems like normally (I can see the file name), but I cannot download the file. And in Structure Browser, I can see the file item, but I cannot download the file. If you have any idea to control the file permission, please let me know.4.4KViews0likes2CommentsDelete attempt as admin: SOAP-ENV:Server.InsufficientPermissionsException
I'm working on a local system. I can add and edit users... So, POST and PATCH are working. I go to delete the same user I just edited, but am getting: // DELETE 'http://localhost/InnovatorServer12/server/odata/User('30B991F927274FA3829655F50C99472E') { "error": { "code": "SOAP-ENV:Server.InsufficientPermissionsException", "message": "You have insufficient permissions to perform 'delete' operation." } } Why? How to fix this?Solved3.4KViews0likes1CommentHow to query for the latest generation of items that the user has access to?
Hi, I would like to ignore the "is_current" property when querying for items, and instead return the latest generation of each item that the user has access to (i.e. permission to "get"). For instance, since the permission_id can change for a given config_id, the user might not be able to access the vary latest: Can I do this in AML? Or do I need to do some SQL magic instead? Would be great if somebody could help me implement a method that does this. Or at least show me how I should approach the problem.4.3KViews0likes3Comments