Get internal form fields name using lotus script

I’m trying to get all the fields of all the forms of whatever database. I’ve created an agent with lotus script and I use the ‘fields’ property of ‘NotesForm’ object, but this only returns not internal fields.

I know that in @Formulas, there’s a @function @docFields that return even the internal fields, but I don’t know how integrate it into my code.

Subject: get internal form fields name using lotus script

You are confusing forms and documents.A form is a user interface. The fields in a form are the fields that are used by the user interface (even if they are hidden from end users).

A document stores data. The items stored in a document might not be the same as the fields in the document’s form. A document might have extra items that the form knows nothing about, or it might have fewer items if some code prevents them from being saved to disk, or removes them.

Unfortunately Notes does not always make the difference between fields in a form and items in a document very clear, so it is easy to get confused.

What are you really trying to achieve with this?