Searching by effective date when adding relationships
Hello - We have an application built within Innovator that is similar to the Digital Twin concept, with configurations of components within modules tracked as versions of the module item, and 'hard fixed' relationships between the recorded jobs and the specific version of module which was used. This works really well as long as the job is entered at the time, but quite often jobs are entered retrospectively after new versions of the modules have been created, and users often forget about the process to find a specific historical version (using generation > 0 search criteria), instead just selecting the latest. In the main search grids you can search with the 'query type' set to 'effective' and set which date you're interested in (e.g. in my case the job date), which returns the relevant historical versions rather than the latest. Does anyone know a way to mimic this in the relationship search dialog? Many thanks806Views0likes6Commentshow to change relationship form value
hi,All I set "Open Related Form" on [relationshiptype] so that I can edit the relationship with a popup window when I click "Add Relationship". But I want to bring out the default values in the popup window, I tried the following actions //my code //This is the code I tried to write in JavaScript if ("" === this.getProperty("requ_name","")) { var UserId = this.getInnovator().getUserID(); if (UserId) { //User UserId = UserId.substr(0,32); var User = this.getInnovator().getItemById("User", UserId); if (User.getItemCount()==1) { this.setProperty("requ_name", User.getAttribute("id")); this.setPropertyAttribute("requ_name", "keyed_name", User.getProperty("keyed_name", "")); // The first way ,but it responds with this message { "undefined" : "document.getElementById(...) is null" } document.getElementById("requ_name").value = User.getProperty("keyed_name", "") ; handleItemChange("requ_name", document.getElementById("requ_name").value); // Second way, but it responds with this message { "undefined" : "handleItemChange is not defined" } handleItemChange("requ_name", User.getProperty("keyed_name", "")); //document.thisItem.setProperty("requ_name", User.getProperty("keyed_name", "")); // The third way, but it responds with this message { "undefined" : "document.getElementsByName(...)[1] is undefined" } var vid=document.getElementsByName("requ_name")[1].id; document.getElementById(vid).value = User.getProperty(“ keyed_name”,“”); document.thisItem.setProperty(“ requ_name”,User.getProperty(“ keyed_name”,“”))); } } } Please advise me. Thank you.3.5KViews0likes3CommentsHow to fetch details of nested relationships using AML query?
I have a requirement like Main Phase can have relationship with Activities and Phases, also Phases can have child phases eg: i want to get the id of all activity (itemtype2) if i provide id of main phase is provided ? A phase can have no activity also.16KViews0likes9CommentsHow to get the value of relationship item type using the return value of fetchRelationships
hi,All 'my code 'This is the code I tried to write in VB Me.fetchRelationships("File") Dim file as Item = Me.getRelationships("File") Dim t_file_id as string If file.getItemCount()>0 Dim fileCnt as Integer=file.getItemCount() For x=0 To fileCnt-1 t_file_id = file.getItemByIndex(x).getProperty("related_id") file1= file.getItemsByXPath("Relationships/Item[@id='"+t_file_id+" ']") file1.getProperty("doc_name") ' return Not a single item Next End If 'file 'The value obtained is shown below How do I get the doc_name value? If somebody knows and can help I would really appreciate that. Thank you.4KViews0likes2CommentsSpecific Relationship Tab Views per Item Type
Hello, I am working on trying to setup relationship view tabs for 2 item types. They share a relationship with another item type. I would like to customize the grid that appears for each type. Example: I need to use affected item on 2 item types that have workflows. When I add it to the relationships tab for each, the grid display is the same for both however I need one set of properties to display on one item type, and a different set on another that can be filled and saved (i.e. disposition, comments on one and duration, units on the other). Any help would be appreciated.1.8KViews0likes0CommentsSet default sort on Relationship view by item number
1. Went to the Itemtype definition for the relationship, Changed the Order By value for the definition of the Sequence property to 2. I have done the following changes in my Aras 11 SP15. but when I open the form it still sorts on the basis of sequence but after refreshing it sorts on behalf of item number. I tried OnBeforeGet method to change sort_order but it shows me Object object error.1.7KViews0likes0CommentsIs it possible to allow adding a relationship while denying data member editing?
Dear all, I am in trouble setting the permission of a relationship. I have 2 Item types, say A and B. The relationship is "A can contain numbers of B". -- A |- B |- B |- B |- ... User group Alpha is supposed to have full control of the data, while the Beta group can view all the data, create B objects and add some Bs to A. I had disabled the "Use source permission" option in the relationship item type and had assigned the permission of the Beta group to the relationship item type. However, when I log in as a Beta group member, I cannot lock any object of type A, so the "Pick/Create" relationship tollbar is always gray, so I cannot add any relationship. Am I doing the right thing? Or is there any way to achieve my goal?5.4KViews0likes2CommentsUpdate Part Document Relationship
Hi, I'm trying to update PART DOCUMENT relationship but facing issue: AML: <AML> <Item type="Part Document" action="edit" where="[Part_Document].id='C080331098D24F00B635418D823D97AC'"> <related_id>AFF14CBFFD074494B00E3D247D8D11FE</related_id> </Item> </AML> getting Object reference not set to an instance of an object error. how to edit this relationship as I want to attach different document on some condition. Thanks, Maddy.3.3KViews0likes1Comment