My best guess is that the test your script performs is breaking down with this particular field. Have you stepped it though with the debugger and data viewer to see what is happening?
… and seeing your script including those tests might be helpful, too.
Übrigens: ist “Dimension” nicht eher „Maße“ oder „Abmessungen“?
Have you tried removing the value list from the field and just entering text to see if the script works?
Or have you considered handling the "inconsistencies" ahead of time with a conditional value list? In other words, the value list shows only acceptable values based on the value of a previous field.
Yes. The scipt is the same for all fields. The undo script step is executed for this field too but nothing happens. The difference is, that with the other fields the cursor remains in the field. With the field "Typ", however, when I make the selection the cursor jumps to the next field and I cannot stop it from doing that. The srcipt works for this field if I make it an edit box. Then, as soon as I type anything the warning pops up and the modification is undone.
Yes. I made the field an edit box and then the sript works (see my comment further up). The value list is just a list of three choices.
The backgroud for the test is, that for an invoice line there may be active stock reservations for this invoice, which meet exactly the conditions of this invoice line. Changing any of those fields requires that the stock reservation is released and a new reservation is be made, manually. The user needs to be aware of this consequence and hence is warned before the action continues. He has the choice to undo the change in case it was made accidentally.
Just for the records:
I changed the field type from dropdown list to popup menu and now it works!
Thanks for thinking into it.