How can I generate NotesForms and fill them?

Is it possible to create NotesForms with an agent, include a formname and fill them with NotesFields? Can someone help me? thanks!

Subject: How can I generate NotesForms and fill them?

You will have to explain in much more detail what you are really trying to achieve.A form is a user interface design. Notes does not store your data in forms. Notes stores your data in documents.

A NotesForm is a LotusScript object. It partly represents a form in LotusScript, but it is not a form.

Now, what do you really want to create with this agent?

Do you want to create LotusScript objects (NotesForm objects)? Probably not. You cannot use them for anything much.

Do you want to create user interface designs (forms)?

Do you want to store data (in documents)?

Subject: RE: How can I generate NotesForms and fill them?

Oke, I will try to explain. I understand that data is stored in documents. I want use a NotesForm as sort of a template. And I want to generate this template dynamically used by an agent. Maybe it’s posible by using Lotusscript?

Maybe a second option; to create an XML format discription of a form by using an NotesAgent. And using this result as form-template to create documents. Can someone help me?

Subject: RE: How can I generate NotesForms and fill them?

You still do not provide very much detail.An agent does not use a form to create documents. It does not need any sort of template. It can store any kind of data in any document.

If you really want some kind of tempate for the data items, then you can create your own template any way you like. You can use XML if you want.

You cannot easily use a form as a template. A form is a user interface design. Notes uses a form when a user creates a document manually with the user interface. Notes does not use a form when an agent creates a document directly.

Subject: RE: How can I generate NotesForms and fill them?

I get the impression that you are seeing template as a container for a Notes document. I get this from your statement “to create an XML format discription of a form”.

Well OK, that is what it is exactly. So now I get your question as:

Can I create Forms dynamically?

The answer would be that depends on what you want to do?

You need to provide more detail.