Changing the message in a system dialog box

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

Changing the message in a system dialog box

bwallis42
Hi all,
  I've been asked if I can change a message in the found draft for never
saved dialog. The message used is found in the apps/fr/i18n/resources.xml
file and I can make a local copy of that and change the message there but
this would create a maintenance issue in the future as I would need to keep
my copy of that file up to date.

Is there a way to override just one message from the resources file? Or
maybe another way to override what is presented in that dialog.

thanks
brian...

--
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/1568591525882-0.post%40n4.nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: Changing the message in a system dialog box

Alessandro  Vernet
Administrator
Hi Brian,

You can do this through properties. You can find more information about this
in the section linked below. In your case, say you want to override the
`found-draft-for-never-saved` resource. In the Form Runner resources.xml you
see it is under `detail/draft-singleton/found-draft-for-never-saved`, so
you'll want to set the property
`oxf.fr.resource.*.*.en.detail.draft-singleton.found-draft-for-never-saved`.
And note that when changing those properties, you'll need to restart the
server to see an effect, as those are aggressively cached (unlike most other
properties).

https://doc.orbeon.com/configuration/properties/form-runner#overriding-resources

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/1568651429869-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Changing the message in a system dialog box

Alessandro  Vernet
Administrator
Hi Brian, did you get a chance to try setting the property to override
resources? If so, did that work 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/1569277621696-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Changing the message in a system dialog box

brian.wallis.infomedix
Thanks Alex, yes worked perfectly.

regards,
brian...

On Tuesday, September 24, 2019 at 8:27:02 AM UTC+10, Alessandro Vernet wrote:
Hi Brian, did you get a chance to try setting the property to override
resources? If so, did that work for you?

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: <a href="http://discuss.orbeon.com/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdiscuss.orbeon.com%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF5V5zfD-87RVoalaG4cqO_RzdDcA&#39;;return true;">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/e46a3e8e-e64f-45c4-908a-b0fc892d912a%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Changing the message in a system dialog box

Alessandro  Vernet
Administrator
Excellent Brian, and thank you for the update!

‑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/1569344246398-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet