Re: Macro questions: preserving columnProperty and setting date filter [message #1225 is a reply to message #1217] |
Thu, 11 February 2021 19:39 |
Andrew0
Messages: 19 Registered: August 2015
|
Junior Member |
|
|
Thomas,
Thanks very much for your reply. I have two (hopefully small) followup questions:
Using the macro editor, I was able to access "Set Column Properties" as you suggested. However, my macro does not appear to be writing the desired values to the column properties. Can you look at the macro below and let me know where my syntax is going wrong? I tried to implement the example you gave in http://openmolecules.org/forum/index.php?t=msg&goto=765
<macro name="colPropsTest">
<task name="setColumnProperties">
properties=lookupCount\t1<NL>lookupName0\tWikipedia Entry<NL>lookupURL0\thttp://en.wikipedia.org/wiki/%s
replace=true
column=Compound Name
</task>
</macro>
The "\t" in the code block above represent TAB characters.
Your response to the second question also makes sense. Is there any way to access the current time in milliseconds in DataWarrior macros? For example, if I want to update the filter to only display the last X days of data.
Thank you,
Andrew
[Updated on: Thu, 11 February 2021 19:40] Report message to a moderator
|
|
|