${ask()} dynamic default values on transformation

HomeGoods
Posts: 89
Joined: Wed Feb 09, 2005 8:57 am

${ask()} dynamic default values on transformation

Post by HomeGoods » Sat Apr 11, 2015 1:34 pm

In the default "DITA Map WebHelp with Feedback" transformation scenario, the parameter webhelp.product.id and version have these ${ask()}:

Code: Select all

${ask('Please enter the documentation product ID:', string, 'oxy-webhelp')}
${ask('Please enter the documentation version number:', string, '1.0')}
Is it possible to provide ${ask()} with dynamic default values?
I tried these, but to no avail:

Code: Select all

${ask('Please enter the documentation product ID:', string, ${cfn})
${ask('Please enter the documentation version number:', string, '${date(yyyy-MM-dd)}')}

alex_jitianu
Posts: 705
Joined: Wed Nov 16, 2005 11:11 am

Re: ${ask()} dynamic default values on transformation

Post by alex_jitianu » Tue Apr 14, 2015 9:48 am

Hello,

Starting with the next Oxygen version (17.0) you will be able to provide such dynamic values. We've just released a 17.0 beta so if you are interested in giving it a try, please write us an email on support@oxygenxml.com.

Best regards,
Alex

HomeGoods
Posts: 89
Joined: Wed Feb 09, 2005 8:57 am

Re: ${ask()} dynamic default values on transformation

Post by HomeGoods » Thu Apr 16, 2015 8:57 am

You're right. The following parameters works on 17.0 beta:

Code: Select all

${ask('Please enter the documentation product ID:', string, '${cfn}')}
${ask('Please enter the documentation version number:', string, '${date(yyyy-MM-dd)}')}
Thank you for the various enhancements on 17.0. I really like it.

Post Reply