Load Item on Aras Sidebar Button
Hello, I am new to Aras, I was trying to load a Item instance of different itemtype into part. I tried to follow sidebar_default_gv_click method and able to load the form. but the i am trying to load the item instance, which is not working. Below is the Html Page which is loding the form in view only mode and if I try to change it into edit mode it dosent work. <!doctype html> <!-- Modified version of ShowFormAsADialog.html for inline rendering --> <html> <head> <style type="text/css"> @import '../javascript/dojo/resources/dojo.css'; @import '../javascript/dijit/themes/claro/claro.css'; @import '../javascript/include.aspx?classes=common.css'; @import '../styles/common.min.css'; html, body { overflow: hidden; width: 100%; height: 100%; margin: 0px; padding: 0px; } </style> <script type="text/javascript" src="../javascript/include.aspx?classes=ArasModules,ScriptSet2"></script> <script type="text/javascript" src="../javascript/include.aspx?classes=/dojo.js" data-dojo-config="baseUrl:'../javascript/dojo'"></script> <script type="text/javascript"> function getQueryParam(name) { const match = location.search.match(new RegExp(name + '[:=]([^&]+)')); return match ? decodeURIComponent(match[1]) : null; } window.onload = function() { const aras = parent.aras || window.aras; // Try to get aras context const formId = getQueryParam('formid'); if (!formId || !aras) { document.body.innerHTML = "<center>Form not specified or ARAS context missing.</center>"; return; } const formNd = aras.getFormForDisplay(formId); if (!formNd) { document.body.innerHTML = "<center>Unable to load form metadata.</center>"; return; } const formFrame = document.getElementById('formFrame'); const win = formFrame.contentWindow; const item = null; const formType = 'view'; setTimeout(() => { aras.uiShowItemInFrameEx( win, null, // item.node if you have it formType, 0, formNd.node, null // itemTypeNd if required ); }, 100); }; </script> </head> <body class="claro"> <iframe height="100%" width="100%" id="formFrame" frameborder="0" scrolling="auto" src="blank.html"></iframe> </body> </html> Here I used item=null as aras.getItembyId(); is also not working. can someone help me with using aras.uiShowItemInFrameEx(); method because it is loding the form and this is the method through which I think i will be able to load Item Instance. Can anyone help me with how to load the form of diffrent itemtype through sidebar button?0Views0likes1CommentHow to hide a tab of an item?
For the Item Part, for the all the part numbers, I need to hide a specific tab, lets say "Goals" for a specific identity. "Goals" is under Relationship Types in Part item. I have tried: - Right click on the Goals in Relationship Type,Permissions--> Access Report, edit Permissions named "Relationship Type". Add identity, here to Permission named "RelationshipType" and give no rights to the identity. The tab still shows.0Views0likes2CommentsCreating new items via aras.uiShowItemEx doesn´t add LifeCycle data especially for versioned ItemTypes. How to fix?
Hi community, I have a couple of ItemTypes with a custom LifeCycle. Sometimes when users promote an item to change the "state", the Form will not be updated and will not show the updated data. In this case users always had to click the refresh button to see the updated state. So the basic situation is something like this: I discovered that the Form update mainly fails when the item was created via a custom client Method. AND: In addition it only fails if the target ItemType is versionable. Here are some simple steps to reproduce the scenario. Let´s assume we have following code that we can directly execute from a client Method: [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:19604769-ada7-4f06-92ad-60eb8ae9dadd:type=text&text=const%20newItem%20%3D%20aras.newItem%28%22Manufacturer%22%2C%22add%22%29%3B%0Aaras.uiShowItemEx%28newItem%2C%20%22tab%20view%22%29%3B] The code will add a new item and opens it in a new tab. User than can save the item and promote it to another state. - If the ItemType is something like Manufacturer, Form update will work after item promotion. - If the ItemType is versionable like Part or Document the Form update will NOT work. I checked the context item that is used for promotion. I noticed that for versionable items the LifeCycle data is not included in the context item when we come from a custom Method. When using promote, the context item should contain information about the used LifeCycle like this: But the life cycle State information is missing when promoting a versionable item that was created by Method I wonder if this is a bug in innovator or if I forgot something in my Method code. The update error does not occur for of items that were created via the regular "New item" button. I assume the missing LifeCycle data causes the problems with the Form update. Does anyone know how to improve this one? Thanks for any hint! AngelaSolved0Views0likes1CommentHow to change the position of a Relationship Accordion tab
I needed to make a tab visible to certain identity. Therefore, I selected "Hide All" in the relationship types and used the CUI control to make a new tab. I need this tab to be all the way to right. Sort Order fields don't work, neither in the Relationship Type nor in cui_windowSection. Pictures below0Views0likes3CommentsHow to disable delete relationship button based on parent item state?
I know this question has been asked multiple times and I have reviewed all the ones that had answers. None of them seemed to clearly lead me in the right direction. I feel what I'm trying to do is a pretty basic use case. I'm trying to prevent affected items from being deleted or added based on the lifecycle state of the ECN. I feel the following is the most user friendly way to achieve this. For the ECN Item, I want to disable the "Delete ECN Affected Item" button when the ECN state is (In Review or Released state). Is this recommended? If so, please provide an example. If not, what is the preferred method to achieve this with a good user experience?Solved0Views0likes6CommentsI want to see all item bout related item in relationship tab
I developing a request form When I make a Item to request I want to a view a bout the item that I can request I manage the Item list by a Item type And I make a relationship type to connect the request item type and item list item type I need how to view all of the Item in my relationship tab bout the related item type I using aras 120Views0likes0CommentsHow to focus on particular tab on item form populated?
Hi, I can now swich the display / non-display of tab according to the conditions,by referring to Disable a Relationship Tab. But this time, unintended tab is focus on. How do I focus on particular tab on item form populated? Please,help me.5KViews0likes3CommentsNeed to Hide few Columns in Part relationship BOM Tab
Hello Aras Experts, I have a business requirement related to the BOM (Bill of Materials) tab. In my current scenario, there is a need to hide specific columns, illustrated by the black-highlighted sections in the attached screenshot. Typically, to hide a column, one would navigate through ItemType -> Part -> Property -> and check the Hidden & Hidden2 values. However, in my case, these columns seem to be non-existent in this structure. I've also attempted to use JavaScript in the formload and formpopulated events to hide the columns, but unfortunately, this approach has not yielded the desired results. I would greatly appreciate any suggestions or guidance you can provide to address this issue. columns to hide - Transgroup, smallest pack, product type etc ( highlighted below) Regards, S. Senthurpari0Views0likes1CommentHow to hide/show columns of relationship on OnFormPopulate event
Hi All, I am trying to hide some of the columns from the relationship based on parent property value, I have tried below code: parent.findCurrentRelationshipsTab().grid.setColumnVisible(ColumnIndex, false, 150); however, this is working when Item is loaded, I want this on onFormPopulate. I am getting the parent.findCurrentRelationshipsTab().grid as null/empty. Is there any way to get the relationship grid. Thanks, Maddy1.1KViews0likes3Comments