Get property-local data in Form Builder

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

Get property-local data in Form Builder

Ruben Garay
Hi Alex!


I have a doubt and I hope you can help me:

Is it possible to configure in the properties-local or another file data as
user or password, which can be obtained to use in HTTP Authentication of an
HTTP Services?

This for reasons of not writing them directly on the form. o What security
measure can be implemented for this case?

<http://discuss.orbeon.com/file/t375629/Captura.png>

--
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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Get property-local data in Form Builder

Alessandro  Vernet
Administrator
Hi Ruben,

You can use an AVT (see 1st link below) as the value of the username and
password, so you can insert XPath, and use the `xxf:property()` to read the
value of a property (see 2nd link below). So you could have something like:



And a property:



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

https://doc.orbeon.com/xforms/core/attribute-value-templates-avts
https://doc.orbeon.com/xforms/xpath/extension-functions/core-functions#xxf-property

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 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: Get property-local data in Form Builder

Ruben Garay
Thanks Alex!

I have used the following:


{xxf:property('my.property.name')}

And it has worked well.

Regards!

--
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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Get property-local data in Form Builder

Alessandro  Vernet
Administrator
Hi Ruben,

Perfect, I'm glad using `xxf:property()` in an AVT worked for you to setup
the username/password in the properties, and thank you for the confirmation!

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