Variable default value for $ask()
Posted: Tue May 20, 2014 12:37 pm
Dear Board Members,
I am setting up an author action for a certain framework. The action is relatively simple and uses the ChangeAttributeOperation to, well, change an attribute of the node that has been right-clicked.
I use the "editor variable" ${ask} and the user is prompted for the desired value.
I'd like to set the text field that the user gets first to the current value of the attribute. To this end I have to put an xpath expression into the 'default' argument of the ${ask} expression. Is this somehow possible? Is there another solution?
More generally, is it possible to use xpath anywhere in the arguments of the author operations?
Thank you in advance.
I am setting up an author action for a certain framework. The action is relatively simple and uses the ChangeAttributeOperation to, well, change an attribute of the node that has been right-clicked.
I use the "editor variable" ${ask} and the user is prompted for the desired value.
I'd like to set the text field that the user gets first to the current value of the attribute. To this end I have to put an xpath expression into the 'default' argument of the ${ask} expression. Is this somehow possible? Is there another solution?
More generally, is it possible to use xpath anywhere in the arguments of the author operations?
Thank you in advance.