openmolecules.org

 
Home » DataWarrior » Functionality » Creating buttons
Creating buttons [message #2287] Thu, 22 August 2024 13:12 Go to next message
slprakash is currently offline  slprakash
Messages: 4
Registered: July 2024
Junior Member
Hi,

I have created jar files to embed the DB credentials so that the users need not enter password every time. But I just want to know if it is possible to create an UI element (a button or a hyperlink) in data warrior with the help of jar file so that an API gets triggered when I click on the UI element.

Or has it been implemented by someone already ?
Re: Creating buttons [message #2291 is a reply to message #2287] Wed, 28 August 2024 18:12 Go to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
if you put an a-tag like <a href="macro:mymacro">click this to start macro</a> into the html of an explanation view, and if you have a macro with the same name (in this case 'mymacro'), then the macro is triggered when the link is clicked (requires DataWarrior v06.02.04, which will be release in the upcoming days).

With the plugin API you can add custom functionality to DataWarrior, which can be embedded into macros and, thus be triggered by the mechanism above...

[Updated on: Wed, 28 August 2024 18:12]

Report message to a moderator

Previous Topic: chemical complexity calculation
Next Topic: Feature request: Structure does not contain
Goto Forum:
  


Current Time: Mon Nov 25 01:01:28 CET 2024

Total time taken to generate the page: 0.03624 seconds