Navigate can't work

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Navigate can't work

meimeilu
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/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1614063971234-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Navigate can't work

Alessandro  Vernet
Administrator
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
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1614109430150-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Navigate can't work

meimeilu
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

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1614157975844-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Navigate can't work

Alessandro  Vernet
Administrator
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
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1614925493032-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Navigate can't work

meimeilu
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


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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1615341992430-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Navigate can't work

Alessandro  Vernet
Administrator
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
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1615418401911-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

How to buy PE Basic version

meimeilu
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

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1615794992549-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to buy PE Basic version

Alessandro  Vernet
Administrator
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
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1615837097682-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: How to buy PE Basic version

meimeilu
Ok, thank you.

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

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1615857277399-0.post%40n4.nabble.com.