Navigate can't work

6 views
Skip to first unread message

meimeilu

unread,
Feb 23, 2021, 1:56:49 PM2/23/21
to orb...@googlegroups.com
Hi:
when I am going form definition,I add a button and edit resource:
<xf:model>
<fr:listener version="2018.2" events="activated" controls="test"
actions="test"/>
<fr:action name="test" version="2018.2">
<fr:navigate location="/" target="_blank"/>
</fr:action>
</xf:model>
but I can't navigate to where I want to, whether location="/" or
location="https://www.orbeon.com"

how can I navigate to where I want to?

regards
meimei

--
Sent from: http://discuss.orbeon.com/

Alessandro Vernet

unread,
Feb 23, 2021, 2:43:54 PM2/23/21
to orb...@googlegroups.com
Hi Meimei,

There is no `activated` event. Maybe you wanted to use `DOMActivate`, if
`test` is a button? Also make sure that the id of your button is really
`test` in the source of the form; if you created it with Form Builder, then
`-control` is added to the name you give in Form Builder.

I hope this helps, and you'll let me know if you get it work,

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

meimeilu

unread,
Feb 24, 2021, 8:42:14 PM2/24/21
to orb...@googlegroups.com
Hi Alex:

I referred to this website:
https://doc.orbeon.com/form-builder/advanced/services-and-actions/actions-syntax#example

the example is:
<fr:listener version="2018.2" events="activated" controls="my-button"
actions="my-action"/>

<fr:action name="my-action" version="2018.2">
...
</fr:action>

In the source,the button 'test' should is exist:
<resources>
<test>
<label>测试navigate</label>
<hint/>
</test>
</resources>
<fr:c x="3" y="1" w="3">
<xf:trigger id="test-control" bind="test-bind">
<xf:label ref="$form-resources/test/label"/>
<xf:hint ref="$form-resources/test/hint"/>
<xf:alert ref="$fr-resources/detail/labels/alert"/>
</xf:trigger>
</fr:c>

In the following example, I succeeded:
In form resource,I added the following:
<fr:listener version="2018.2" events="activated" controls="all-sop"
actions="all-sop"/>
<fr:action name="all-sop" version="2018.2">
<fr:process-call scope="oxf.fr.detail.process" name="all-sop"/>
</fr:action>
In properties-local.xml, I added the following:
<property as="xs:string"
name="oxf.fr.detail.process.all-sop.applicationA.formA">

navigate(target="_blank",uri="http://ip/*/fr/applicationB/formB/summary")
</property>
##"all-sop"is button
Although the above example did what I wanted, I found it cumbersome, So I
want do it in the form by navigate. Or Is there a better way to do this?

Meimei

Alessandro Vernet

unread,
Mar 5, 2021, 1:24:57 AM3/5/21
to orb...@googlegroups.com
Hi Meimei,

I'm really sorry: I misread your question, and though that what you had
there was XForms (my bad, your question was quite clear). And it's a bug:
I've created issue #4799, and fixed it. The fix will be in 2020.1.3, and in
2021.1.

https://github.com/orbeon/orbeon-forms/issues/4799

Until then, you'll need to do this in XForms. The following code will do the
trick:

<xf:action event="DOMActivate" observer="test-control">
<xf:load resource="https://www.orbeon.com/" xxf:target="_blank"/>
</xf:action>

You'll let me know if this works for you,

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

meimeilu

unread,
Mar 10, 2021, 6:16:41 PM3/10/21
to orb...@googlegroups.com
Hi Alex:

Thank you for the response,it works well.
We are considering buying your products,I hope we can have better
cooperation in the future.

regards.

Meimei

Alessandro Vernet

unread,
Mar 10, 2021, 6:20:04 PM3/10/21
to orb...@googlegroups.com
Hi Meimei,

Excellent, I'm glad using XForms to load the page indeed worked for you. And
yes, customers have access to a private support forum that makes it easier
to stay in touch, and we prioritize answering questions that are posted
there.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

meimeilu

unread,
Mar 15, 2021, 11:43:36 AM3/15/21
to orb...@googlegroups.com
Hi Alex:

We want to buy PE Basic version,how should I do? Direct through the
official website? How to deal with service agreement, communication method,
customer service portal and so on?

regards
Meimei

Alessandro Vernet

unread,
Mar 15, 2021, 3:38:19 PM3/15/21
to orb...@googlegroups.com
Hi Meimei,

If there is no other information you need, and are ok using a credit card
through PayPal, then yes, you can do it through the web site. Otherwise, you
can send us an email (see the email on https://www.orbeon.com/contact).

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

meimeilu

unread,
Mar 16, 2021, 1:40:32 PM3/16/21
to orb...@googlegroups.com
Ok, thank you.
Reply all
Reply to author
Forward
0 new messages