Page 1 of 1

Re-Use a User-Date in User Defined Tool

Posted: Thu Aug 08, 2019 8:05 am
by OLLI_S
Hello,

I have created a User Defined Tool that creates a new email in Outlook and fills all fields of the mail (To, CC, Subject, Body) with data stored in the ToDoList.
I have now a button in the toolbar that creates the email.

In the command I also have a date prompt, that asks for a date and pastes it in the subject:

Code: Select all

$(userdate, var_date1, "Date prompt")
I want to re-use this variable a second time in my body, how can I perform this?

Best regards

OLLI

Re: Re-Use a User-Date in User Defined Tool

Posted: Fri Aug 09, 2019 5:58 am
by abstr
Just reference it as '$(var_date1)'

Re: Re-Use a User-Date in User Defined Tool

Posted: Fri Aug 09, 2019 6:13 am
by OLLI_S
Hello Daniel,

thank you, this is working.

Under usability aspects: maybe you add the "Insert Variable" to the Popup-Menu in the User-Defined-Tool-Editor?
So users can select the menu entry and just need to replace the variable name.

Best regards

OLLI

Re: Re-Use a User-Date in User Defined Tool

Posted: Fri Aug 09, 2019 10:10 am
by abstr
OLLI_S wrote:
Fri Aug 09, 2019 6:13 am
maybe you add the "Insert Variable" to the Popup-Menu in the User-Defined-Tool-Editor?
My preference would be to add to the menu only those user-variables already defined so there would be no confusion about what 'Insert Variable' might mean.

ie. For those of a programming leaning they might expect to be able to assign a value to it and then do some sort of scripting, whereas we're only talking about re-referencing an existing variable.

Good idea, I'll add it to 7.3!