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 » Thu Jul 04, 2019 7:24 pm

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: 6328
Joined: Fri Jul 09, 2004 5:18 pm

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

Post by Radu » Fri Jul 05, 2019 1:39 pm

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 » Fri Jul 05, 2019 6:02 pm

Thanks Radu,
That did the trick :-)

Post Reply