Is it possible to change color for TGV row/cell based on some conditions
Hi Experts, We have use case to change color of TGV row/cell based on some conditions. We are exploring various options to implement color change in TGV row/cell or at least text color. But not able to get any working solutions. Could you please suggest if it possible to achieve it. If yes, could you please share steps to implement solution. Example: Change TGV cell for rows with State - Released or Change Text color 'Released' to Red/Green147Views0likes3CommentsStrikethrough Invalid Row in Relationship Tab
Attempting to create a client-side javascript method that can highlight / strike-through invalid Part AML relationship rows based on a relationship property (outdated date), when I click the tab. I've been trying to replicate this github link: Sample code to set the color of a relationship row based on property values. · GitHub 2 issues I'm running into: 1. I tried putting the method on a CommandBarSection Builder method like the post says and set location to: ItemView.RelationshipsCommandBar, but can't get the method to fire on tab load. ex. Pressing the AML tab on a Part Form doesn't run the method. 2. Tested whether the method functionality works by adding a button on the relationship command bar to run, but I get an error on the method .SetBGColor (error can't read property_D). I'm trying to apply a strikethrough similar to the one in red-line view. I've looked through the forum and found some links to solutions for similar issues, but they were no longer available. Does anyone have any up-to-date links or solutions? Thanks.45Views0likes0CommentsRefreshing xClass Field on Form in Field Event OnChange
So I wrote a client side method so when you change the Classification of a part, it selects a matching xClassification. This part is working, except the UI isn't updating with the selection of the xClass, so its prompting me to enter the required properties for my xClass, but I can't see them. How do I get the xClass field on my form to update so that it displays my new selection? Several examples used aras.uiReShowItemEx() but that pulls from the database, but the xClass selection has not be saved to the Part yet... so its blank. It looks like form.populate() is the right idea because its not pulling from memory but everything I try returns form as null...Solved271Views0likes4CommentsSave User choices or Create Default list in Refine button CUI
When clicking the refine button : a list is presented : with already checked values corresponding to the columns (properties) of the presented ItemType. The method responsible of the Init of the button is : cui_common_refine_init Code : Toolbar.extendFormatters({ refine: columnSelectionMediator.cuiToolbarFormatter.bind(columnSelectionMediator) }); return { type: 'refine' }; I would like to know if it's possible to personalize these filters on the search by code or configuration, or associated to user preferences, or saving when checked/unchecked by User ? Everything is already checked and some users would like to be able to have a "default" view. Thanks74Views0likes1CommentItem.apply overwriting action, has it always done this?
After upgrading from version 12 to 31, we started getting an error when saving a certain custom datastructure, developed for us by Minerva back in the day: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'. From what I can tell, this happens because Minerva's old code calls an action directly on the document.thisItem object var output = document.thisItem.apply("VE_GetCopyTreeGridHeader"); which "pollutes" document.thisItem with that action. When later hitting save, it calls this function instead of doing whatever it ordinarily would (probably a get action), resulting in the error. I observe that if I change the action to "get", it gets rid of the error message and saves any changes in the object itself, but not in a related items treegrid associated with it. If I change the Iaction to "update", it saves everything correctly the way it used to do in version 12. I see that the docs on item apply says that it overwrites the action, but if it always did that, how did this code ever work? (By the way, that .apply() overwrites the action is an error-prone side effect which I can't see any good reason for)58Views0likes1CommentHow to update grid values without running .apply() (I want to update it only in the frontend and not post it)
Hello, There is a relationship grid row that I would like users to mass edit. I so far configured a method to appear in the CUI along with the functionality of having multiple rows highlighted, and can get the relationship Ids as well. What I need next is to reference the frontend dom of the grid, get a particular column of that row, and set it to something. Is there a reliable method for that? Best Regards, FrankSolved222Views0likes5CommentsMaking changes to typescript files in the tree
I tried to apply a trick from a previous post: How to open StartItem directly without the helper window - Development - Aras Community - Aras Community However, that file is now a typescript file in my tree. I guess that means I need to transpile it to javascript/do whatever else you at Aras do in your frontend build process, in order for it to end up in the right place? What is the recommended way to do this?148Views0likes4CommentsJavascript 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!121Views0likes2CommentsPrefill simple search criteria in the search grid
Hello, For Documents item type, in the search grid I need the "Classification" to be prefilled to "General" . I applied client side method to "classification" and "search_default" properties of Documents but it doesn't work. "search_default" property did not exist before so I just added it, I don't know if that makes a difference. method: return {classification:{filterValue:"General",isFilterFixed:false}};Solved209Views0likes8Comments