Event Handler Failed OnInsertRow
Hi I am new to Aras so i dont really know what am doing. However i have been working on a small project where i require a row event. when i add the below code to the Relationship type with the event handler OnInsertRow i keep getting an error. can someone please help me i dont know what am doing wrong. var parent_item = parent.thisItem; var parts = parent_item.getRelationships("parts"); var newItemNum = parts.getItemCount(); setRelationshipProperty(relationshipID, "sort_order", newItemNum); Thank you9.9KViews0likes4CommentsWork Item - Onclick - Inbasket
Hi all... I have small doubt regarding work item or Workflow Task (At Inbasket). Using WF ,Lifecycle and ItemType.................. One Document is submitted for a review. Now, the document state is "Submitted" Until the Workflow task clicked on Inbasket by assignee it remains "Submitted". If assignee opens the WF Activity completion sheet, the document state is changed into "In Review". After that he may "reject" or "approve". Is it possible?9.2KViews0likes6CommentsIs it possible to use the change event trigger of an item to get the name of the field?
hi All, According to this image, my method name is " change_field ". The field names of text boxes framed by dashed lines on the screen are "A", "B", "C", and "D". The text boxes that are framed with dashed lines have a text box below them that is not framed with dashed lines. The field names are "A1", "B1", "C1", and "D1" respectively. I want to get the field name of the current trigger method in the method "change_field", and change the value of other text boxes according to the field name. Example: The user changes the text box with the field name "A" and triggers the method "change_field". I need to get the field name of the current text box called "A" in the method "change_field" and read the field name of the current text box called "A" to change the value of the field name of the text box called "A1". But I don't know how to write the syntax of 「get the field name of the current text box as "A"」 If somebody knows and can help I would really appreciate that. Thank you.6.8KViews0likes6CommentsFilter search data based on other property selection.
Hi Team, I have a requirement of filtering search data based on the other property value selection. For example,I have 3 columns in a relationship grid(TEAM,ROLE,IDENTITY).Whenever I select a particular team in the 1st column,I should only filter the roles under the Team selected when I search for Role.After selecting the Role,I should only get the specifies Identities under the selected Role. Could you please help me in this requirement. Thanks in advance Krishnasai6.6KViews0likes5CommentsonChange field value does not keep new value when item is saved
Hi everyone, I have an on change event that fires when one of my stock fields are changed, which should change the value of a stock message field. The function I have is able to change the value of the stock message field, but when I save/click done, the value is not updated in the properties. My code: [embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:c1696a98-fd57-4cfc-a98f-2b8ea9cbbe99:type=text&text=var%20fMinStock%20%3D%20document.getElementsByName%28%22_minimum_stock%22%29%5B1%5D.value%3B%0D%0Avar%20fCurrStock%20%3D%20document.getElementsByName%28%22_current_stock%22%29%5B1%5D.value%3B%0D%0Avar%20iMinStock%20%3D%20parseInt%28fMinStock%29%3B%0D%0Avar%20iCurrStock%20%3D%20parseInt%28fCurrStock%29%3B%0D%0Avar%20fStockMessage%20%3D%20getFieldByName%28%22_stock_message%22%29.getElementsByTagName%28%22input%22%29%5B0%5D%3B%0D%0A%20%20%20%20%0D%0Avar%20stockMsg%20%3D%20%22%22%3B%0D%0Avar%20stockMsgColor%20%3D%20%22%22%3B%0D%0A%20%20%20%20%0D%0Aif%28iCurrStock%20%3C%20iMinStock%29%7B%0D%0A%20%20%20%20stockMsg%20%3D%20%22Insufficient%20Stock%22%3B%0D%0A%7Delse%7B%0D%0A%20%20%20%20stockMsg%20%3D%20%22Sufficient%20Stock%22%3B%0D%0A%7D%0D%0A%20%20%20%20%0D%0AfStockMessage.value%20%3D%20stockMsg%3B] The onChange in action: When save or done is clicked after onChange: Any ideas on what I might be doing wrong?Solved4.4KViews0likes3CommentsMove an existing Vault into a new instance
Hi all, I am attempting to create a test instance in order to try out new things in a safe non production environment, and I have created a new Aras instance from scratch and imported everything from the production successfully, the only problem is I am being given a OnShowFile error telling me that the vault location of the files are invalid. I had replaced the default vault with a copy of our default production vault and I am stuck on what the problem might be. Any help would be most appreciated!4.4KViews0likes1CommentProperty validation - Dialog to Confirm Ok or Not
Hello All, I've been struggling with a property validation use-case and I'm sure it's something that'd be useful to lots of folks. Have a working server event that blocks the user from proceeding if a certain property is left blank; however there may be cases when the user wants to proceed anyways with that field blank. As far as I've read, there's no confirmation dialog available via the Server Events, only error ones. So... looked at a Client-side event on the property validation. Good news is I'm able to get this event to fire. The bad news is the field is an "Item" and when an item is selected, it doesn't seem to actually save the reference. I'm doing this on a "Validate" event on the property itself. Has anyone done anything like this or have a suggestion? I don't really care if it's done against the property or a form, just need a way to highlight that something is blank and shouldn't be most of the time! Thanks in advance.2.3KViews0likes10CommentsSet focus on a property in a relationship grid
Hello, I have method attached to OnEditFinish of the property sort_order of the Part BOM relationship. The goal is to check if the property is filled and if no, to throw an error. After the display of the error, I want to set back the focus to the property so that the user can enter a value there. Is it possible to achieve that? My Aras version is 12SP18. I tried using the gridApplet but I couldn't find a function that can be used to achieve my goal. Thank you [emoticon:c4563cd7d5574777a71c318021cbbcc8]944Views0likes1Comment