How to retrive value of xforms:select in orbeon forms on client side (in JavaScript)

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

How to retrive value of xforms:select in orbeon forms on client side (in JavaScript)

alexey.lugovoy
I have next problem, when I'm trying to retrieve value from xforms:select elements I retrieve some encrypted value like "eKdObOh+XakQQkcJayfQArlH+Y5M4huLkvqoSAsN7P8=" while I know the real value, which I'm set in the form constructor is "ALFRESCO_ADMINISTRATORS".

I found this function ORBEON.xforms.Document.getValue(controlIdOrElement) but it returns the same encrypted value.

Is there any way to retrieve real value from xforms:select elements, or may be some configs which I have to enable/disable, or may be there some common algorithm which transforms real value to encrypted one?
Reply | Threaded
Open this post in threaded view
|

Re: How to retrive value of xforms:select in orbeon forms on client side (in JavaScript)

Erik Bruchez
Administrator
Alexey,

I have just replied on StackOverflow:

http://stackoverflow.com/questions/9868705/how-to-retrive-value-of-xformsselect-in-orbeon-forms-on-client-side-in-javascr/9875438

Please mark the answer as correct if it helps.

-Erik

On Mon, Mar 26, 2012 at 2:25 AM, alexey.lugovoy
<[hidden email]> wrote:

> I have next problem, when I'm trying to retrieve value from xforms:select
> elements I retrieve some encrypted value like
> "eKdObOh+XakQQkcJayfQArlH+Y5M4huLkvqoSAsN7P8=" while I know the real value,
> which I'm set in the form constructor is "ALFRESCO_ADMINISTRATORS".
>
> I found this function ORBEON.xforms.Document.getValue(controlIdOrElement)
> but it returns the same encrypted value.
>
> Is there any way to retrieve real value from xforms:select elements, or may
> be some configs which I have to enable/disable, or may be there some common
> algorithm which transforms real value to encrypted one?
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/How-to-retrive-value-of-xforms-select-in-orbeon-forms-on-client-side-in-JavaScript-tp4505217p4505217.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to retrive value of xforms:select in orbeon forms on client side (in JavaScript)

alexey.lugovoy
That works, thanks a lot!