Page 1 of 1

no popup appearing, neither with oxy_popup nor $ask

Posted: Thu Jul 04, 2019 7:24 pm
by stulis
Hello,
I'm trying (unsuccessfully) to get an editable popup to enter some preferences before generating a pdf

I've tried the example (in the css file):
link:before{
content: oxy_popup(
edit, '@href',
values, "Spring Flowers, Summer Flowers, Autumn Flowers, Winter Flowers",
tooltips, "Iris${comma}Snowdrop, Gardenia${comma}Liliac, Chrysanthemum${comma}Salvia, Gerbera",
selectionMode, single);
}
then :
content: oxy_popup(edit, '', values, "hello", selectionMode, single)
content: "$ask('something')"

I also tried (in dita):
<data name="${ask('something')}"></data>

What am I missing?

(I'm running XML Editor 21.0, build 2019022207)

Re: no popup appearing, neither with oxy_popup nor $ask

Posted: Fri Jul 05, 2019 1:39 pm
by Radu
Hi,

Most editor variables, including $ask are not expanded in CSS content. Also editor variables in XML content are not expanded.
What you could do if you want to ask the end user something every time when publishing might be to edit the transformation scenario and any parameter you add in the Parameters tab can have a value containing $ask editor variables.
And the publishing engines does some special interpretation of certain parameters:
https://www.oxygenxml.com/doc/versions/ ... yling.html

Regards,
Radu

Re: no popup appearing, neither with oxy_popup nor $ask

Posted: Fri Jul 05, 2019 6:02 pm
by stulis
Thanks Radu,
That did the trick :-)