2 Replies Latest reply on Sep 15, 2015 4:04 PM by keywords

    Error message of record being modified.


      Hi all,


      anyone know why I'm getting this error message when setting a number field on a foundset of line items? I do have a temporary window but it closes correctly..


      Also, the numbers do get set correctly after when you press ok so all is working just the error message..


      debugger also attached...


      thank you




      Screen Shot 2015-09-15 at 22.14.47.png




      Screen Shot 2015-09-15 at 22.11.13.png




      Screen Shot 2015-09-15 at 22.17.44.png

        • 1. Re: Error message of record being modified.

          Between Allow User Abort and New Window, drop a Commit[] script step. That may fix it.

          • 2. Re: Error message of record being modified.

            My thought is that when the script is initiated the cursor is inside a field (on the Consignment Forms layout?), and thus the record is locked. At the point in the script after the loop is completed you are then trying to go back to that layout, but still inside the new window. David's suggestion would eliminate that, because the record you are on in the original window would no longer be locked. On the other hand, you might want to keep this record locked while the script executes, in which case I suspect simply removing the highlighted GTL step would probably also work—you don't really need to navigate to this layout within the new window, if that is the layout where you initiated the script.