Quote from rb on 12/11/08 at 13:42:12:Furthermore, and this would be very useful:
I can now only insert fields that are associated with the items to be Merged.
However, I would also like to insert values from other items (that are not being merged).
Using a LUA script, I could get these values and then pass them to MM in the LUA command that starts MM:
Launch MM(arg1, arg2, arg3...)
The arg1, arg2, arg3... would then be fields that could be inserted into the document.
am not tracking you here.
you can insert values from items that don't "print".
in Word you do this via conditional (see MM instructions for basic overview).
you still need to merge the items, but for example,
if the merged item has value X, use that for some purpose but don't do normal merge with item, etc.
MM allows you also to use the first item in phonebook as 'header' on top of normal merge.
but likely am just not tracking...
MM(arg1,arg2... etc.) what is arg ? a fixed var to be passed to the word merge ?
if so,
why not just make the FIRST item in your merge to contain these folders,
and have word take the data from there ?
hope is clear enough to be helpful.
Edited:
adding this example:
Let's say you have a phone entry with key data in various folders.
load that into phonebook.
then go to another notepad with the actual items to merge (could be filtered phonebook items even, or other item list).
use the MM "Header Record" option, and phonebook item will be added as 'header' to the other items selected for your merge.
within the word doc,
use the first item to fill in your 'args'.
____________________
alternative with LUA,
have LUA simple add the additional info into folders of FIRST item in list.
eg., list of 100 names,
at name 1, add in folder A val A, folder B val B, etc. then use A, B, etc. as your 'args'.
normal merge info might be "business, address, etc."