openmolecules.org

 
Home » DataWarrior » Functionality » Macro questions: preserving columnProperty and setting date filter
Re: Macro questions: preserving columnProperty and setting date filter [message #1225 is a reply to message #1217] Thu, 11 February 2021 19:39 Go to previous messageGo to previous message
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 2D coordinates in the template
Next Topic: Confidentiality of compound structures
Goto Forum:
  


Current Time: Fri Nov 22 20:19:29 CET 2024

Total time taken to generate the page: 0.03961 seconds