Load xClass and xProperties, and link xProperties to multiple xClasses from AML
We want to load 1k+ xclasses to Aras, we are talking about 4k+ xproperties here. When we are running AML for creating relations xClass_xProperty_Flatten and xClass_xPropertyDefinition to link them to class tree, it fails with error : <faultstring><![CDATA["xClass_xProperty_Flatten" can be added or deleted or updated only in XTree context]]></faultstring> <detail> <af:legacy_detail><![CDATA["xClass_xProperty_Flatten" can be added or deleted or updated only in XTree context]]></af:legacy_detail> <af:exception message=""xClass_xProperty_Flatten" can be added or deleted or updated only in XTree context" type="System.ArgumentException" /> </detail> I can load property definitions, but not classes, but can’t map the properties to classes. How can we mass create and reuse these xProperty definitions in more than one class from AML, by creating relations correctly?2.3KViews1like1CommentHow can I trigger the classification to update and change forms from a different property?
Hi Aras Community, I have a use case where my classification is technically controlling two things. What type of workflow they are on and what kind of form they see with the ability to switch the different kinds of forms. I'm trying to prevent mistakes from happening by providing 2 drop downs one that shows the workflow type and another that offers the form options. On selecting the form options, I need to update the classification and have the form change to the proper form. My current code updates the classification but does not execute whatever code causes the form to change on the classification update the way it does if you type it in or use the classification dialog box. Below is the code I'm starting with I don't know if there may be an API I can call that does this change or if there is a way to refresh the iframe that I'm not aware of. Any help is greatly appreciated. [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:21865118-1b9b-4636-b04c-3a80e379aacf:type=javascript&text=var%20inn%20%3D%20top.aras.newIOMInnovator%28%29%3B%0D%0Avar%20formtype%20%3D%20document.all%28%22form_type%22%29.value%3B%0D%0Avar%20worktype%20%3D%20document.all%28%22workflow_purpose%22%29.value%3B%0D%0Avar%20classification%20%3D%20%22%22%3B%0D%0A%0D%0Aswitch%28worktype%29%7B%0D%0A%20%20%20%20case%20%22New%20Work%22%3A%0D%0A%20%20%20%20%20%20%20%20if%28formtype%20%3D%20%22form1%22%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20classification%20%3D%20%22form1%2FCreate%20New%22%3B%0D%0A%20%20%20%20%20%20%20%20%7Delse%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20classification%20%3D%20formtype%2B%22%2F%22%2Bworktype%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20break%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20case%20%22Other%20Work%22%3A%0D%0A%20%20%20%20%20%20%20%20if%28formtype%20%3D%20%22form2%22%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20classification%20%3D%20%22form2%2FOther%20Work%22%3B%0D%0A%20%20%20%20%20%20%20%20%7Delse%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20classification%20%3D%20formtype%2B%22%2F%22%2Bworktype%3B%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20break%3B%0D%0A%7D%0D%0A%0D%0Awindow.handleItemChange%28%22classification%22%2Cclassification%29%3B%0D%0Awindow.handleItemChange%28%22form_type%22%2C%20formtype%29%3B%0D%0A%0D%0Areturn%20this%3B]Solved197Views0likes2Commentschanging 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?804Views0likes3Comments"Classification cannot be changed after saving the item" error using the .Net API to update requirement
I am using Aras 11 SP15. I am trying to update a requirement I created. Here is my code: using System; using System.Collections.Generic; using Aras.IOM; namespace TestArasProject { public static class Program { public static void Main(string[] args) { HttpServerConnection conn = IomFactory.CreateHttpServerConnection(serverUrl, dbName, username, password); Innovator inn = IomFactory.CreateInnovator(conn); conn.Login(); Item updateItem = inn.newItem(requirement, "edit"); string internalId = "FB20D91203DC4E3EB30DBA0CFBE4FD0F"; updateItem.setAttribute("where", "[" + requirement.Replace(' ', '_') + "]." + "config_id" + " = '" + internalId + "' AND [" + requirement.Replace(' ', '_') + "]." + "is_current" + "='1'"); // updating the name of the requirement updateItem.setProperty("req_rm_title", "Test Requirement" + Guid.NewGuid()); Item result = updateItem.apply(); Console.WriteLine(result); Console.WriteLine(result.isError()); Console.ReadLine(); conn.Logout(); } } } I am getting the following error: <SOAP-ENV:Envelope xmlns:SOAP-ENV="">schemas.xmlsoap.org/.../" xmlns:i18n="">www.aras.com/I18N"><SOAP-ENV:Body><SOAP-ENV:Fault> <faultcode>1</faultcode> <faultactor /> <faultstring>Classification cannot be changed after saving the item.</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope> I checked the XML which was getting created to update, this XML did not even contain the Classification property nor am I trying to update it. Here is the XML: <Item isNew=\"1\" isTemp=\"1\" type=\"re_Requirement\" action=\"edit\" where=\"[re_Requirement].config_id = '3AFD850B785E43F1B854EE404469FA87' AND [re_Requirement].is_current='1'\"> <req_title>2019_06_24_12_25_42_850_-{AB}</req_title> </Item> I noticed that Classification (Type) is a default value on UI still I need to explicitly pass it through the API. This is not the case with Risk or Complexity type of fields. How do I update a requirement?20KViews0likes14CommentsTypeError: Cannot read property 'filed' of underfined
Hi, When I update data, use type List then error: "display_value_D_oneditstart handler failed with message: TypeError: Cannot read property 'field' of undefined" https://imgur.com/v5CaATD https://imgur.com/JX44iIF Please help me, thank you1.6KViews0likes0CommentsLocking of input in a search dialog when a property is passed as a search criteria
I am able to modify greyed-out classification property which was passed as a search criteria for 'Part' itemtype. I want that property to be locked and user should not be able to modify it by any means. I created one new dummy Part item, set its classification property and used that dummy item in the search criteria. In this screenshot, even though my item Class is greyed-out but I can still change it by clicking on three-dots button under Item-Class. What I can do to not make it happen ?1.5KViews0likes0Comments[Part Classification] How to create AML to add classification for Part
Hi everyone, As my picture above, I want to use AML to edit Part and set value Item Class, Class Path and some value like m_Capacitance Uni, etc. I'm just a newbie in Aras. So please help me or let me know some keywords to resovle this issue. Thanks a lot.Solved6KViews0likes2CommentsExtended Classification issue
Hi, Trying to set up a small tree. I could build the tree with 6 classes, and 10 attributes with attribute inheritance from parent to child class. But I am not able to Restrict Selection To Only Leaf Classes Restrict Selection To Only Leaf Classes set to true Restrict Selection To A Single Class set to true Error : apply "Restrict Selection to only Leaf Classes" preference for the "XXX" xClassificationTree because there are items with conflicted classification. Anyone saw this before?2.7KViews0likes1CommentClass Structure don't show one of list by identity
Hi ItemType 【Class Structure】 I add three item AAA、BBB、CCC. I create two Identity -->Identity_A 、Identity_B. When Identity_A login and click classification show list,I want list just show AAA 、BBB 2 item. When Identity_B login and click classification show list, I want list just show BBB、CCC item. How can to setting or write method control. I don't know where event can I use.1.9KViews0likes2Comments