I’ve copied a document using LS and opened it in the UI. Then I use a button to create another document, wich should inherit values form the copied one. This doesn’t work.
When I close the doc, open it again, then it works.
Has someone any suggestions about this problem?
TIA
Christian
PS:
I dont’t know wheather this is a special Notes 6 problem or if it is the same in Notes 6…
Subject: Inherit values doesn’t work…
How do you create the second document ?
What do you mean ‘open it again, then it works’ ?
Inherit values (the form property) only occurs once, when you create the document, so how do you transfer the values to your second document ?
cheers,
Tom
Subject: RE: Inherit values doesn’t work…
The second one is composed by @command([compose];…). When I close the first doc and open it again, the 2nd doc inherits the values.
Subject: RE: Inherit values doesn’t work…
Save the first document first, before doing the compose.It may be enough to call uidoc.reload(), when you first open the document in your lotusscript code, it’s probably got something to do with the front-end document not being in sync with the back-end document.
cheers,
Tom
Subject: RE: Inherit values doesn’t work…
Thanx for your responses. Saving the doc in the backend, before opening it in the frontend
helps. A reload doesn’t help.
To save the doc is not exactly what i want. It
is a workaround, not really nice…
Have u got any other suggestions?
Christian
Subject: Sure… SInce you have already written stuff that copies a doc and opens it in the UI
in LS, just make you button do almost the same thing. Create a new doc and programatically copy the fields you need. i.e.newdoc.FieldX = doc.FieldX
Subject: RE: Sure… SInce you have already written stuff that copies a doc and opens it in the UI
I’ll do so, when i’ve got more time.