Override IType Property auto-label
After adding a property to an ItemType and tabbing from the property Name to the property Label there is the annoying behaviour I would like very much to override. I'd rather it stay blank than constantly needing to: Select all, delete, and finally enter a sensible label. I'm only critical of this annoyance because all the default labels are sensible, but whoever put together this auto-label didn't seem to take that into account. For instance, the default label for "team_id" is simply "Team", and the default label for "release_date" is "Release Date". So, why would tab-to automatically copy the property name? I'd like if tab to split on underscore and did a caps op on every word. Then, rather than constantly needing to delete the auto-label to enter one that conforms to the default look of out-the-box Innovator IType labels, it would actually be helpful! This is a quick JS example, and I think if ANY auto-label this should be it: ``` // Change "release_date" property name to desired default-looking, "Release Date": "release_date".split("_").map(x => x.charAt(0).toUpperCase() + x.substr(1,)).join(' ') ````5.5KViews0likes6CommentsJavascript method to set the default value in search grid?
We need to limit the search results of "Document" item for certain identity. The default value of "Classification" should be prefilled to "General" and should be unchangeable by the user. I was thinking if I can get the current identity of the user and then call a function that would prefill the "Classification" to "General" and make it uneditable. I have a code for finding the identity of the user. I need to know how to target the "Classification" field of "Document" item type in the search grid view thanks!0Views0likes2CommentsGetting name property mismatch error while changing data type - Text to Date
The Property has data type Text and we are trying to set to Date on that time we are getting : - does not match the required 'name' property pattern: ^[a-zA-Z](\w*| +\w+)*$]] Request: <Item type="ItemType" id="5738793931D64D938F02558135C20FE8" action="add" doGetItem="0"><Relationships><Item type="Property" id="41C87DE9CAC2484DBE736F80016D1C87" action="add"><data_type>date</data_type><pattern>short_date_time</pattern></Item></Relationships></Item> Response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault xmlns:af="http://www.aras.com/InnovatorFault"><faultcode>SOAP-ENV:Server.PatternMismatchException</faultcode><faultstring><*$]]></faultstring><detail><af:legacy_detail><*$]]></af:legacy_detail><af:exception message="The specified value () does not match the required 'name' property pattern: ^[a-zA-Z](\w*| +\w+)*$" type="Aras.Server.Core.PatternMismatchException" /><af:item type="ItemType"><af:property name="name" value="" /></af:item></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>Solved0Views0likes2CommentsModifying a Reverse View
Hi all, On a document container, we have a tab with the view of all the DCOs that affect it: Because this isn't the standard view, the fields/properties that are/aren't shown here do not correlate to their visibility on the DCO item type. My question is, how do you add or remove fields/properties to this view? Please let me know if you need more information. We are using Aras Innovator Version 11 SP9.0Views0likes4CommentsHow to use getid() method to get id?
In the system the "Id", and "config-id" are the item name. For Document item, the id is the document name(screenshot below). I need the id property, the one that is unique, to be added to the properties of Document item. I have this method but it doesn't work: Item myItem = this.newItem("Document"); myItem.setID(this.getID()); Item results = myItem.apply(); Error is "Error Number: CS0161, 'ItemMethod.methodCode()': not all code paths return a value" Also, once I have this method working what are the next steps. I guess I will have to add this method to the Server Events, event onBeforeGet, correct? Any help is appriciated. Thanks!0Views0likes5CommentsHow to get the data of Impact Matrix using Query Builder?
Like the question states. I need to get all the items ( their properties etc) that are associated to a PR(which are ECR, ECO etc.) I also need complete data from the impact matrix of ECO and EDR. When the Impact Matrix relationship is added to the ECO, the Impact Matrix doesn't have the properties such as item_number, Name, Revision etc. These properties are not even close which makes me think I am not going about this the right way. There isn't any other way that I saw to connect the impact matrix to ECO, the only option is via relationship here. Any help is appreciated! Thanks!0Views0likes1CommentHow to stop\pause life cycle promotion to edit a part?
I need to edit some Part properties such as State, Release Date, Revs, etc. But everytime a Part is edited a new version is created where the Rev increments. I do not want this to happen. I want to edit the part and have it not create a new version.Solved0Views0likes2CommentsNeed Guidance: Prevent On Close Server Event to get called when there is Error (when voting) and the CM Activity is not Closed?
Hello All, I'm creating a server-side method that sends an email to the Change Leader. It gets invoked "on close" in association with a Change Management workflow activity. The email should be sent only when the activity is closed, and the workflow progresses to the next activity. However, if the user votes on the activity while there are missing affected files related to the Change Management, an error message is displayed stating "The New Number field is required when Action is set to 'Add'." I want to find a way to prevent the email from being sent when such and similar errors exist. I tried to use activity.getProperty("state", ""); to check if the state of the activity changes from Active to Closed. However, this property does not update (when the method is invoked) while the mentioned error exists or not. Currently, I'm thinking of a way to access this error message content from my method and act accordingly. I tried isError() and it gives 0 (no error), getErrorString() and getErrorDetails() return an empty string. I would appreciate it a lot if someone can help me with it. Best Regards, abduSolved0Views0likes1Comment