Property 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]944Views0likes1CommentonChange 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.4KViews0likes3Comments