Deluge Script Advice Request

Deluge Script Advice Request

Hello. this is my first time trying to create a script and I need a little help. I have a "parts" view and a "add parts" form. The "parts view" is already populated with data. One of the fields in this view is "part number". Upon load I would like the "part number" field in the form to be automatically populated with the next sequential number available from the "part number" field in the view, lets say 06200. I would also like it to be display only. Any advice is appreciated.