• How 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…
  • Method 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…
  • 'The given key '()' was not present in the dictionary.' Error

    Wanted to provide a solution to an old post on here. In our situation, when this item presented, it was a missing item from one of the float codes, specifically for updates. This is a C#, server-side method. Under the 'new Dictionary' item list, we…
  • "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…
  • Javascript 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…
  • How to batch download and upload files?

    Under Documents, Type= Setup Sheet, State = Released, are documents that are in excel and they have to be converted to pdf I guess the first the step woudl be to get the meta data, Document name, ID, Related Files, and File ID. Then loop through this…
  • How 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…
  • What is the correct syntax of writing "where" statement in AML with C#

    I need to write just write one line of AML wrapped in C# and store the ID of the item in a variable code: Innovator inn = this.getInnovator(); string amlString= @"<AML><Item type='Document' action='get' where='item_number='MADL002828'' select='Document…
  • Is there an easy way to run code after a change/creation transaction finished?

    Hello, I need to send a created/ changed item to another service. I have some code that just needs the ID of an Item, it then retrieves it from the database and sends it to the other service. The problem I am facing is that, I can't find a way to…
  • Method 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…
  • Server Method working when given a GUID, but not when using this

    Hello, When I run this server method from the method itself and use a GUID to get the Item I want to update the method works fine, but when I change it from a GUID to = this; and run it from the Item Type on the server events "OnBeforeUpdate" it crashes…
  • How to use Visual Studio Code 2022 for Coding Methods

    I am new to Aras development, and I'd like to use Visual Studio Code 2022 ("VS Code") for coding Innovator methods. I found the ArasVSMethodPlugin project on GitHub , and its change log indicates that support for VS Code 2022 was added in version 1.21…
  • Code Snippet: Generic, Reusable Code to Get All Identities In a Group

    Hello everyone, Here is a code snippet to retrieve all identities in a identity (group) recursively. As I faced this requirement multiple times, and Innovator not having a standard function for it, I decided to create it myself. //*************…
  • Need 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…
  • predecessor Number Value For Activity2

    Hi Guys, Can you please help me to find out value of predecessor Number Value For Activity2 by Method . For project Management . Thank in Advance.
  • Snapshot Isolation - On or Off?

    Hi Community, We have this turned on due to some issue with migrating data but noticed it causes problems with certain methods, causing them to run twice. Generally this involves methods that vault files. Any suggestions on how to address this?
  • How can I trigger the classification to update and change forms from a different property?

    Hi Aras Community, I have a use case where my classification is technically controlling two things. What type of workflow they are on and what kind of form they see with the ability to switch the different kinds of forms. I'm trying to prevent mistakes…
  • Make server side code wait

    Hi Community, Hopefully an easy question - I am calling a server side method from a client method and I need the server side method to wait a few seconds to allow the items to save before processing. I tried the standard sleep commands but they don…
  • Calling SearchDialog from Server method

    Hi, Is it possible to show SearchDialog from a Server method? I can use MaximazableDialog in Javascript to show the SearchDialog and get the response in callback. But I want to use such facility in a Server method. In my particular case, I am trying…
  • GetItemRepeatConfig 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…
  • Update workflow process to latest Workflow Map

    Any ideas on the topic? Failing this, resetting the workflow?
  • Update an item causes recursive loop

    Hi team, So I am looking to run a method on an item whenever it is updated to update two hidden properties on the item that drive some functionality later on down the workflow. The issue I am having is that when I use the onAfterUpdate event, because…
  • What´s the best way to organize very large Javascript Methods?

    Hi community, does anyone has some practical tips to not get lost in very large Javascript Methods? I right now work on a pretty UI heavy project that will probably contain a few thousands lines of code within one client Method. Within the standard…
  • Calling server side Methods directly from CUI element ?

    Hi community, does anyone know anything about calling server side Methods from CUI elements? Right now we can only use client events for CUI elements. Sure this elements can call a server event and then return the result, but we ALWAYS need the extra…
  • Pass a Property to a Search Grid

    For our projects we may have a large number of documents and we're considering different ways to handle this other than trying to recreate some sort of "folder" ItemType to assign them to. One concept we have is the idea of either having buttons or…