Hello,
I’m using:
Call docA.CopyAllItems ( docB, True )
Which works great, because I need to create a new document with information from the selected document.
problem is I have two fields which are necessary,
UniqueID ( formula, @DocumentUniqueID)
docIDNumber ( formula, @Text(@DocumentUniqueID).
When docB is created these two field values are pulled from docA. (it shouldn’t).
So I set these to fields to be “”, when docB is created.
Problem is now these fields will not autocompute and fill in the @DocumentUniqeID, which now breaks the process flow of the DB…
This bug that I’ve created has become a show stopper for my DB…
Advise anyone?
~Brett
Subject: Did you try…
Call docB.Save( True , False )
docB.docIDNumber = docB.UniversalID
macro$ = |FIELD UniqueID := @DocumentUniqueID|
Evaluate( macro$ , docB )
Call docB.Save( True , False )
Subject: Evaluate
Fails on the evaluate line…
Call docB.Save( True , False )
docB.docIDNumber = docB.UniversalID
macro$ = |FIELD UniqueID := @DocumentUniqueID|
test = Evaluate( macro$ , docB )
Call docB.Save( True , False )
Subject: Try this
Change this line…
macro$ = |FIELD UniqueID := @DocumentUniqueID|
…to…
macro$ = |@Setfield( “UniqueID” ; @DocumentUniqueID)|
That works for me.
Subject: Awesome!
Thanks Willy… that was the trick…Works great…
Thanks Again!!
~Brett