HI Bruce,
I've done some further digging now, and you are quite correct, that it is that section from netweb.tpw that seems to be causing the problem. Even with your suggested modification i still get an error, but if I remove the whole section in red it seems to work fine.
If p_web.Formstate = ''
p_web.formsettings.file = 'Jobs'
p_web.formsettings.key = 'JOB:PK_Jobs'
clear(p_web.formsettings.FieldName)
p_web.formsettings.recordid[1] = p_web.RestoreValue('JOB:JobID')
p_web.formsettings.FieldName[1] = 'JOB:JobID'
IF p_web.GetSessionValue('UpdateJobs:Prime') = 1
p_web.formsettings.action = Net:ChangeRecord
ELSE
p_web.formsettings.action = Loc:Act
END
If p_web.GetValue('_parentPage') <> ''
p_web.formsettings.parentpage = p_web.GetValue('_parentPage')
else
p_web.formsettings.parentpage = 'UpdateJobs'
end
p_web.formsettings.proc = 'UpdateJobs'
p_web.FormState = p_web.AddSettings()
end
if loc:viewonly and p_web.IfExistsValue('LookupField')
packet = clip(packet) & p_web.CreateInput('hidden','LookupField',p_web.GetValue('LookupField')) & '<13,10>'
end
packet = clip(packet) & p_web.CreateInput('hidden','FormState',p_web.FormState) & '<13,10>'
My only concern, is that in removing these lines, it may impact somewhere else, that isn't immediately obvious to me.
Regards,
Neil.