Redefine button on summary page

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

Redefine button on summary page

James Newcombe
I'm trying to add a 'logout' button to the summary page.

We don't use the 'Home' button, so I thought that was a reasonable choice to redefine.

I've set, in properties-local.xml, :
<property as="xs:string" name="oxf.fr.resource.*.*.en.buttons.home" value="Logout" />
<property as="xs:string" name="oxf.fr.detail.process.home.*.*" value='navigate("/logout")' />

"/logout" is simply trying to prove that the home button is redirected to somewhere new for the moment.

The first setting works perfectly. The second is completely ignored, and pressing the Home/Logout button takes me to Form Runner Home.

What am I missing ?

As a bonus question, I'm sure I've seen somewhere an instruction I can use in a process for invalidating the orbeon session, thus effectively logging the user out. I can't find that anywhere now.
Reply | Threaded
Open this post in threaded view
|

Re: Redefine button on summary page

Alessandro  Vernet
Administrator
Hi James,

Currently, buttons on the summary page don't run processes. And granted, they should. We have an RFE for this:


If you want to change what the "Home" button on the summary page does, for now you have to override this section of fr/summary/view.xhtml:


Alex

On Tue, Mar 17, 2015 at 9:28 AM James Newcombe <[hidden email]> wrote:
I'm trying to add a 'logout' button to the summary page.

We don't use the 'Home' button, so I thought that was a reasonable choice to
redefine.

I've set, in properties-local.xml, :
<property as="xs:string" name="oxf.fr.resource.*.*.en.buttons.home"
value="Logout" />
<property as="xs:string" name="oxf.fr.detail.process.home.*.*"
value='navigate("/logout")' />

"/logout" is simply trying to prove that the home button is redirected to
somewhere new for the moment.

The first setting works perfectly. The second is completely ignored, and
pressing the Home/Logout button takes me to Form Runner Home.

What am I missing ?

As a bonus question, I'm sure I've seen somewhere an instruction I can use
in a process for invalidating the orbeon session, thus effectively logging
the user out. I can't find that anywhere now.


--
View this message in context: http://discuss.orbeon.com/Redefine-button-on-summary-page-tp4659683.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.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 post to this group, send email to [hidden email].

--
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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Redefine button on summary page

James Newcombe
Thanks Alex.

That works.