As we can observe System allows to put in between blank lines at line level. When user creates any sales line, i want to restrict them from putting blank lines. i.e. they should not be able to skip any line. (There should not any gap in between the lines.) How should I do it ? If i write the code sales line- OnInsert but it does not work. Kindly help.
You can write code on “On New Record” trigger of Sales order Subform that if “No.” of Sales Line is blank then give message or error whatever convenient for you.
I tried it but when I enter the next line the sales order page gets closed. I had put the ERROR on OnNewRecord and the page gets closed with the same error message.
I got the solution. There is a property of subform “MultipleNewLines” which is by default yes. I turned it to “No”. Now unless and until i put something in the line, system doesn’t allow me to come down.