no popup appearing, neither with oxy_popup nor $ask

Oxygen general issues.
stulis
Posts: 5
Joined: Wed Jun 26, 2019 3:58 pm

no popup appearing, neither with oxy_popup nor $ask

Post 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)
Radu
Posts: 9048
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stulis
Posts: 5
Joined: Wed Jun 26, 2019 3:58 pm

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

Post by stulis »

Thanks Radu,
That did the trick :-)
Post Reply