"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?20KViews0likes14CommentsComments after return in Client Method leads to 'event handler' error
Hi community, I discovered a strange behavior in Innovator 12. Let´s assume we have a regular Form with a button that uses the following onClick event: alert("This is just a test button event"); return; // Todo for later: add additional validation This Method will lead to the following error Message: 'Event handler' failed with the message: ReferenceError: func $ BD472BC271CA48E88DE6CB0C7E3CED75 $ _onclick2 is not defined I noticed that the Method works fine, as soon as I remove the comment behind the return. Of course in normal code we most of the time do not have any additional comments after the final return. But when creating new Methods, I often place later used code at the bottom so I can take care for it later. Comments after the return statement were never any problem in Innovator 11. It took me quite a few days until I finally discovered why certain parts of my new code never worked. Is there an explanation for this new behavior? Are there any other new design rules to consider when programming in Innovator 12? Would be happy about any hints to avoid similar effects! Thanks! AngelaSolved13KViews0likes10CommentsARAS 12 - How to remove "Create New XXX" button ?
Hi, I defined an ItemType named "Cost". This is a relationship without related item. There is nothing in the "Can Add" of this ItemType because nobody can create a "Cost". There are only created by code. In ARAS 12, I have this: What should I do in CUI to remove "Create New Cost" ?11KViews0likes8CommentsARAS 12 - Force to take all the available place
For an ItemType without relationship, ARAS 11 lets all the available place for the display of the item. See my ItemType in ARAS 11: But with ARAS 12, this is not the case. See the same ItemType in ARAS 12: Is there a solution to force the "Costing Context" to take all the place or to remove this frame ? Thank you in advance for your help? Regards.11KViews0likes8CommentsAuth in Aras 12
Hello guys We have an mvc C# app and we use IOM to connect to aras. Has anyone tried the "old" way connecting via var conn = IomFactory.CreateWinAuthHttpServerConnection(url, db); and got it successfully working on production environment? It's not working for me the impersonation does not work. The app cannot log in, but if im in my dev environment using IIS express everything is fine user is found and logs in. Best regards9.5KViews0likes10CommentsOAuth - How to use Grant Type "Authorization Code" for token generation
Hi everyone, I recently read this excellent blog post about token authentication using the REST API for Innovator, and in it Christopher Gillis says that ' urrently, I believe "password" is the only authentication type allows [sic]. Aras as a whole is moving towards more types of authentication in 12.0, so this is likely to change in the upcoming releases.' With 12.0 released, I see that OAuthServer\OAuth.config now defines two allowedGrantTypes for the clientRegistry with ID "IOMApp": 'password' - the one that I have been using in my code when generating OAuth tokens for Innovator so far - but also 'authorization_code'. Hence, I was wondering if anyone knows a practical way yet to generate the access token with that grant type, instead of using "password"? Thanks a lot in advance for any info on this subject. Cheers, C8.1KViews2likes2CommentsHow to pin TOC by default in Innovator 12?
Hi community, When users login to Innovator 12 the first time, they only get a huge white welcome page with deactivated TOC. This is confusing, as people may think Innovator is not working. I remember my first steps with Innovator 12. I was literally waiting 3 minutes cause I assumed Innovator is still loading. I even assumed the installation went wrong and checked the browser debugger for potential error messages. I needed an eternity until I finally accidentally clicked on the main navigation button in the top left corner to get the TOC. I want to avoid that my users face the same frustrating experience. Is it possible to pin the TOC by default? I have discovered that the ItemType Core_GlobalLayout contains the property core_toc_pinned. This one is used to store the preference for the pinned TOC. I changed the default value of this property from 0 to 1, but this customization is not enough to pin the TOC by default. The preferences are set when users log out, so we cannot use the default value in the ItemType for this purpose. There are some codetree files that reference to this property. I assume one of them also sets the "real" default value for the property. Does anybody know where I can do this customization? Many thanks! AngelaSolved7.5KViews0likes3CommentsLink in children's Item Type view to the parent's Item Type view
Hello everyone, Try explain, my scenario: I have the Item Types related: 1° Item type Authorization. 2° Item type AuthorizationTittle. 3° Item type AuthorizationTittleRelation (only to related). I need add a link or buton in AuthorizationTittle with a phisical link/url to open a view of your Authorization Parent. Thanks.Solved5.9KViews0likes12Comments12sp05 packaging error on a simple item with ITPresentationConfiguration
Hi, I get a message I never saw while creating a package. I thougth it was due to a missing element but I reproduce it only by - 1 creating a simple object - add the TOC access (and permission/creation) - add it to a new package (1 form+ 1 item) - Then export it - and try to import it to a brand new db from the 12sp innovator backup db... I get that message : DELAYED RESOLUTION: applying AML <Item type='ItemType' id='D9D992E995EC41BB8B6B852510384D05' action='edit' doGetItem='0' version='0'><Relationships><Item type="ITPresentationConfiguration" id="9807CFE5BF3BD9466B77D6069BFA2DFF" action="add"><client>js</client><related_id keyed_name="tr_i001_project_TOC_Configuration" type="PresentationConfiguration">9807CFE5BF3BD94636326AA7318BB90D</related_id><sort_order>128</sort_order><source_id keyed_name="tr_i001_project" type="ItemType" name="tr_i001_project">D9D992E995EC41BB8B6B852510384D05</source_id></Item></Relationships></Item> In the exported package I have this lines I never saw before <Relationships> <Item type="ITPresentationConfiguration" id="7ACFCDADA1BD72956B77D6069BFA2DFF" action="add"> <client>js</client> <related_id keyed_name="tr_i001_projet_TOC_Configuration" type="PresentationConfiguration">7ACFCDADA1BD729536326AA7318BB90D</related_id> <sort_order>128</sort_order> <source_id keyed_name="tr_i001_project" type="ItemType" name="tr_i001_project">2E959A23C5D640B79FA45579D827BDEC</source_id> </Item> With 11spX I never get that issue. Thanks for your help, for the moment the support only tell me I might miss some element in the package... Since I reproduce the bug with only 1 items and the corresponding form I am a little bit confuse...5.2KViews0likes3Comments