How to get new doc in web

Hi All I am using the following code in web,

“Set curdoc=ss.documentcontext”

how to find newdoc in web. any idea?

regds

soma

Subject: how to get new doc in web - set a field…

if I understand your problem correct, you trig an agent from the web - and now you need to know whether it is a new document or not.

isnewdoc from UIdoc.class doesnt work in agents. I would set a field to a certain value as the last thing in the agent. f.eks. Checkfield=“1”. Then at the beginning of the agent check for this value… Now you know whether you deal with a new or old document…

Hope you succeed…

ZoomTek.dk

http://www.zoomtek.dk

Subject: RE: how to get new doc in web - set a field…

Hi Zoom I got the solution for that. i am using the “curdoc.IsNewNote”. it is working fine, now my problem is how to save it. i am using an agent and calling it in a button. any idea.

regds

soma