When adding a new line item, check the first occurrence of that item in the ‘validateField’ entry point. (This will return the index of the first occurrence of that item) Then check the index of the current line item. If the indexes are different, then we can assume that the selected item is already been… Continue reading How to restrict the multiple entry of the same item in the sales order
Tag: first occurrence
Find the First occurrence of the item in sales order
Scenario: When creating a sales order record, we need to check whether the newly added item is already added or not. So for that use the following code section in the client script. let currentRecord = scriptContext.currentRecord; FIRST_OCCURENCE = currentRecord.findSublistLineWithValue({ sublistId:… Continue reading Find the First occurrence of the item in sales order