Lock Field After Variable Set
I am stuck.
Here is what I have so far.
I have a table (Requisition) with a field Purchase Order. Purchase Order is a number field. Requisition Layout also has all the information from the Req table. (Items are tied to PO's and PO's are tied to Req.) When in the Req Layout and select the button to add a new Item, the button has the script "CREATE NEW ITEM". The basic of the script is the copy the PO number to variable, Go to Item_Entry layout, Create a new record, Go to purchaseOrder field and enter the PO variable. But the problem I am currently having is I would also like to lock the PO field after the variable is set so that it can not be changed during the entry of the rest of the data.
I have tried to disable Browse Mode in the layout setup but when the variable is entered I can not enter any data on any other part of the layout. Everything works great if I leave Browse Mode enabled but then the field can be editied.