Hi Bruce,
When I tried to put the Save and Next code into my application, the results where not as expected. When the Save and Next button was selected, the current record was saved successfully and the next record appear in the form, however selecting either the Save or the Save and Next buttons returned to the browse without update. Debug shows no p_stage events occurred after these Save buttons were pushed and the browse screen returns. First let us verify that I have not made any errors in entering the PostUpdate embed code. The italicized code is replaced with the values described.
if p_web.GetValue('_buttontext_') = p_web.translate('Save and Next')
do GetNextRecord
p_web.Requestfilename = '<NetWebForm procedure name>'
p_web.SetValue('<NetWebForm procedure name>_form:inited_',0)
p_web.setValue('change_btn','change')
p_web.SetValue('_parentPage','<NetWebbrowse procedure name that called the NetWebForm>')
p_web.SetValue('_bidv_',p_web.AddBrowseValue('<NetWebbrowse procedure name that called the NetWebForm>','<File Name>',<primary key of file>,p_web.GSV('<primary key value>')))
p_web.SetValue('<primary key field name>',p_web.GSV('<primary key value>'))
p_web.RequestReferer = p_web.gsv('SaveRefer<NetWebForm procedure name>')
end
Rob Kolanko