Get the Context Action Name in the Method
Hi All, I have Multiple Server Side Item Actions Configured on the Part Item , I want the logic/functionality to be performed by each action to be controlled by the same method . In which case , is there a way to pass the Invoking action name to the Method so that based on the value I can chose the function to be performed. For the above action , I want to get the action name "plm_Test" while invoking the method on the Item. This would greatly help me in avoiding creating Multiple Methods for each Action. Thanks.5.2KViews0likes7CommentsMethod event version type "Version 2" - where do we find more samples and guidelines?
Hi community, does anyone of know how to use the "Version 2" type for ItemType Server Methods? Let´s assume we use an onAfterAdd/Update event in the Part BOM ItemType. With Event Version 1 the event is fired for each single row. Which version 2 it would be executed on the complete item group. From my POV version 2 is useful to improve performance for certain tasks. But there is not much information out there that describe how to use this version type. The context item in version 2 is empty by default. So "this" simply contains nothing when we execute a Method with "Version 2". I assume that we have to extract the information of the affected items from the "eventData" parameter in the background. I found some minor code samples in the code used for Effectivity and Derived Relationships. But they are to specific for being used in other contexts. Does anyone know more about using "Version 2"? Thanks for any tip!!! Best regards Angela0Views2likes14CommentsMethod Templates in Release 31+ : What do you we need to know about them?
Hi community, since a few releases Aras added a "Template" item selector to the Method ItemType. Release 2023 already contained the new property, but didn´t use it yet. It was also hardly used in I30. But there is much more going on since I31. What do we need to know about Method Templates?Solved0Views1like3CommentsHow to check my schedular is running?
Hi, I have a method that need to run via schedular on every 1 minute. I need to check and hold the schedular until previous trigger (schedular execution) got completed. if the previous schedular execution is in process then we got error for next trigger, i.e. SQL transection error. Please suggest how to overcome this situation. I do not want to increase the schedular frequency. Thanks in Advance Deepak0Views0likes2CommentsGetItemRepeatConfig removes child items that are used multiple times. How to fix?
Hi community, I use a classical "GetItemRepeatConfig" query to get a Part BOM over multiple levels. id="xyz"; Item partItem = inn.newItem("Part","GetItemRepeatConfig"); partItem.setAttribute("select","id,classification,keyed_name,item_number"); partItem.setID(id); // <- target Part Item bomItem = partItem.createRelationship("Part BOM","get"); bomItem.setAttribute("select","related_id(keyed_name),sort_order"); bomItem.setAttribute("repeatProp","related_id"); bomItem.setAttribute("repeatTimes","10"); partItem = partItem.apply(); When taking a look at the AML result, I discovered that Parts that are used on multiple levels inside a BOM (e.g. common items like screws) are not returned as complete items. The full related item is available only ONCE inside the AML result, but not for every BOM position that use that Part. Here is how the result looks like: The image shows three relationship BOM positions. Position 1 and 3 contain the full Part <Item> for the "related_id". Position 2 does not contain the "Item" cause it appeared already present in a previous position. Problem: Without the date of the related_id/Item, I am not able to render the AML data. In my current use case I want to restructure the AML result in a way that it will also include depth/level of each BOM position. This basically works well, but as soon a duplicate entry appears, the data for the child item is missing: Here is the current result that I get. I used a placeholder "Data missing" each time the related item is missing: I discovered that this one is actually a know bug/behavior since over 10 years: https://community.aras.com/f/archive/2097/developers-forum---getitemrepeatconfig-fix The solution in the post is to not use GetItemRepeatConfig, but to manually create a query that includes all BOM levels. Sure, this solution will work. But after 10 years, is this really the solution of choice? My AML query shall also contain other relationships, which would make the query even bigger when we hardcode any level manually. Does anyone now a better solution for this one or how to modify the GetItemRepeatConfig query so it returns all data? Thanks for any help! AngelaSolved1.2KViews0likes8CommentsJavascript 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!0Views0likes2CommentsRESTFul API Delete Method Error 405
I tried to delete ItemType by following the Document about RESTful API in Aras. For example, PostMan was called as below (DELETE) localhost/.../exItemType ('abcde') If you call it url A 405.0 - Method Not Allowed error message is returned. Additionally, I tried to remove the RelationshipShip for itemType, but the same error occurred. Relationship remove was also carried out according to Document's method. For example, PostMan was called as below (DELETE) localhost/.../$ref This also returns an error of 405. How can I use RESTful to remove itemType?0Views0likes2Comments"This" String Becomes "srcElement"
Hi all, I have created a form that looks like this: The table is pre-filled via a Form Event method. This is a checklist that the user fills out for document reviews. Clicking on the New Version button triggers a Field Event method that clears the table and fills the table with fresh (but same) checklist items. However, on clicking the button and triggering the method, all instances of the string "this" becomes "srcElement". Does anyone know why this is happening and how to prevent it? Version 11 SP9. Thanks!0Views0likes4Comments