NotesForm object

pts.
Tags:
LotusScript
Is it possible, in LotusScript, to copy a form object from one database to another? OR, alternatively, to create a new NotesForm object and copy items from a form object in another database? TIA --Bill

Answer Wiki

Thanks. We'll let you know when a new response is added.

you can export and import design elements with the DBDesign library (from Damien Katz) and by using DXL (Domino XML). There can be several examples found in the web…

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Bobmanw
    yes, you just have to create an instance pointing to the object in question. example...note that i didn't write all the code, and you'll have to instantiate some of the views, document and items, but the general idea is there. Dim dir As NotesDbDirectory Dim db As NotesDatabase Dim db2 As NotesDatabase Set dir = s.GetDbDirectory("") Set db = dir.OpenDatabase("dbpath.nsf") set db2 = dir.OpenDatabase("dbpath.nsf") 'get 1st item in document(source)..let's assume it's doc. 'and item is the item from the doc ... set pointerToField = doc.item 'declare a new document from the other database and 'create a new object and copy that object or convert it 'through a dummy variable pointerToField.CopyItemToDocument(newDoc,newItem) ...
    0 pointsBadges:
    report
  • PaulRyan
    Depends what you actually want to do? If you want a simple way of re-creating a form that exists in one database in another distinct database. Highlight the form(s) in the original database?s form view and press Ctrl+C, then open the other database, again in forms view, and press Ctrl+V. This gives you the option of template sharing from a standard ntf database. Alternatively, as with response 1, mt69, you can do it programmatically using the NotesNoteCollection class ? see Designer help.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following