xforms:bind issue

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

xforms:bind issue

Jency Thomas

Hi,

I have an instance say,

<xforms:instance id=”main”>

<main>

          <data1/>

          <data2/>

</main>

</xforms:instance>

 

And an input control which binds to data1 & data2.

<xforms:input ref=”instance(‘main’)/data1” />

 

At a particular point, I have to make the textbox for data1 invisible. So I do an xforms:bind as

<xforms:bind nodeset=” instance(‘main’)/data1” relevant=” instance(‘main’)/data2=’1’”/>

 

So, with the data1 textbox invisible, I do a form submission which sends the instance to an action; and when I inspect xml instance, I found that the node <data1> is not present in the xml. I assume that this is the default behavior of relevant attribute; but what I need is, I need to make the textbox invisible but I need the xml node as such in the submission instance.

 

Is there any way by which I can accomplish this?

 

Expecting your help,

 

Thanks in advance

Jency

 

 



--
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: xforms:bind issue

Erik Bruchez
Administrator
Jency,

Luckily (or thanks to the wisdom of the Forms Working Group ;-) there  
is an easy way: just add the following attribute to your  
xforms:submission:

   <xform:submission ... relevant="false" ...>

This will cause the submission not to prune non-relevant nodes.

-Erik

On Dec 18, 2007, at 4:35 AM, Jency Thomas wrote:

> Hi,
> I have an instance say,
> <xforms:instance id=”main”>
> <main>
>           <data1/>
>           <data2/>
> </main>
> </xforms:instance>
>
> And an input control which binds to data1 & data2.
> <xforms:input ref=”instance(‘main’)/data1” />
>
> At a particular point, I have to make the textbox for data1  
> invisible. So I do an xforms:bind as
> <xforms:bind nodeset=” instance(‘main’)/data1” relevant=”  
> instance(‘main’)/data2=’1’”/>
>
> So, with the data1 textbox invisible, I do a form submission which  
> sends the instance to an action; and when I inspect xml instance, I  
> found that the node <data1> is not present in the xml. I assume that  
> this is the default behavior of relevant attribute; but what I need  
> is, I need to make the textbox invisible but I need the xml node as  
> such in the submission instance.
>
> Is there any way by which I can accomplish this?
>
> Expecting your help,
>
> Thanks in advance
> Jency
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

RE: xforms:bind issue

Jency Thomas
In reply to this post by Jency Thomas

Thanks a lot to the Forms Working Group :)

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Tuesday, December 18, 2007 11:28 PM
To: [hidden email]
Subject: Re: [ops-users] xforms:bind issue

Jency,

Luckily (or thanks to the wisdom of the Forms Working Group ;-) there  
is an easy way: just add the following attribute to your  
xforms:submission:

   <xform:submission ... relevant="false" ...>

This will cause the submission not to prune non-relevant nodes.

-Erik

On Dec 18, 2007, at 4:35 AM, Jency Thomas wrote:

> Hi,
> I have an instance say,
> <xforms:instance id="main">
> <main>
>           <data1/>
>           <data2/>
> </main>
> </xforms:instance>
>
> And an input control which binds to data1 & data2.
> <xforms:input ref="instance('main')/data1" />
>
> At a particular point, I have to make the textbox for data1  
> invisible. So I do an xforms:bind as
> <xforms:bind nodeset=" instance('main')/data1" relevant="  
> instance('main')/data2='1'"/>
>
> So, with the data1 textbox invisible, I do a form submission which  
> sends the instance to an action; and when I inspect xml instance, I  
> found that the node <data1> is not present in the xml. I assume that  
> this is the default behavior of relevant attribute; but what I need  
> is, I need to make the textbox invisible but I need the xml node as  
> such in the submission instance.
>
> Is there any way by which I can accomplish this?
>
> Expecting your help,
>
> Thanks in advance
> Jency
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

RE: xforms:bind issue

Jency Thomas
In reply to this post by Jency Thomas

Another issue related to the same:

I have an instance which is bind as relevant=false always because I need
it as a hidden control;
<xforms:bind nodeset="instance('main')/data1" relevant="false()"/>

It seems on lading the form, this node is not present in the instance.
But on load itself, I need the instance node because, later I'm
dynamically setting the instance value.

Please help.

Thanks in advance
Jency


-----Original Message-----
From: Jency Thomas [mailto:[hidden email]]
Sent: Wednesday, December 19, 2007 3:24 PM
To: [hidden email]
Subject: RE: [ops-users] xforms:bind issue


Thanks a lot to the Forms Working Group :)

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Tuesday, December 18, 2007 11:28 PM
To: [hidden email]
Subject: Re: [ops-users] xforms:bind issue

Jency,

Luckily (or thanks to the wisdom of the Forms Working Group ;-) there  
is an easy way: just add the following attribute to your  
xforms:submission:

   <xform:submission ... relevant="false" ...>

This will cause the submission not to prune non-relevant nodes.

-Erik

On Dec 18, 2007, at 4:35 AM, Jency Thomas wrote:

> Hi,
> I have an instance say,
> <xforms:instance id="main">
> <main>
>           <data1/>
>           <data2/>
> </main>
> </xforms:instance>
>
> And an input control which binds to data1 & data2.
> <xforms:input ref="instance('main')/data1" />
>
> At a particular point, I have to make the textbox for data1  
> invisible. So I do an xforms:bind as
> <xforms:bind nodeset=" instance('main')/data1" relevant="  
> instance('main')/data2='1'"/>
>
> So, with the data1 textbox invisible, I do a form submission which  
> sends the instance to an action; and when I inspect xml instance, I  
> found that the node <data1> is not present in the xml. I assume that  
> this is the default behavior of relevant attribute; but what I need  
> is, I need to make the textbox invisible but I need the xml node as  
> such in the submission instance.
>
> Is there any way by which I can accomplish this?
>
> Expecting your help,
>
> Thanks in advance
> Jency
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

RE: xforms:bind issue

Jency Thomas
In reply to this post by Jency Thomas
Hi,

Still I have an issue related to binding an instance with
relevant=false.

As you said, when I do a form submission as:
<xform:submission ... relevant="false" ...> , I'm getting the non
relevant instance node while submitting, but its value is set to empty
string. I need to get the non relevant instance along with its value. Is
there any way to accomplish this?

I'll make the situation more clear:
I have a parent form which has an instance as
<xforms:instance id="main">
 <main>
           <data/>
           <id/>
 </main>
 </xforms:instance>

I use the data instance to represent a text and id instance to represent
the id of the corresponding text. So, I add 2 textboxes and bind the 1st
one to data node and 2nd to id node. The value of the data and id text
fields are populated through javascript from a popup window. Since I
don't need to display the id on the screen, I hide it using:

<xforms:bind nodeset="instance('main')/id" relevant="false()"/>

So, with the data and id set, I do a form submission as

<xforms:submission ..... relevant="false"/>

In the resultant instance, I have the id node, but its value is empty
string. I assume its because the relevant attribute is set to false in
the xforms:bind. Is there any way to hide the control but still get its
value in the instance.

Thanks in advance
Jency
 

-----Original Message-----
From: Jency Thomas [mailto:[hidden email]]
Sent: Wednesday, December 19, 2007 3:24 PM
To: [hidden email]
Subject: RE: [ops-users] xforms:bind issue


Thanks a lot to the Forms Working Group :)

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Tuesday, December 18, 2007 11:28 PM
To: [hidden email]
Subject: Re: [ops-users] xforms:bind issue

Jency,

Luckily (or thanks to the wisdom of the Forms Working Group ;-) there  
is an easy way: just add the following attribute to your  
xforms:submission:

   <xform:submission ... relevant="false" ...>

This will cause the submission not to prune non-relevant nodes.

-Erik

On Dec 18, 2007, at 4:35 AM, Jency Thomas wrote:

> Hi,
> I have an instance say,
> <xforms:instance id="main">
> <main>
>           <data1/>
>           <data2/>
> </main>
> </xforms:instance>
>
> And an input control which binds to data1 & data2.
> <xforms:input ref="instance('main')/data1" />
>
> At a particular point, I have to make the textbox for data1  
> invisible. So I do an xforms:bind as
> <xforms:bind nodeset=" instance('main')/data1" relevant="  
> instance('main')/data2='1'"/>
>
> So, with the data1 textbox invisible, I do a form submission which  
> sends the instance to an action; and when I inspect xml instance, I  
> found that the node <data1> is not present in the xml. I assume that  
> this is the default behavior of relevant attribute; but what I need  
> is, I need to make the textbox invisible but I need the xml node as  
> such in the submission instance.
>
> Is there any way by which I can accomplish this?
>
> Expecting your help,
>
> Thanks in advance
> Jency
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
Reply | Threaded
Open this post in threaded view
|

RE: xforms:bind issue

Jency Thomas

Hi,

Again a similar issue.

I have an instance which is bound as readonly:
<xforms:bind nodeset="instance('OriginalInsuredInstance')/OriginalInsured/originalinsuredaddress" readonly="true()"></xforms:bind>

When I do a form submission, the value of the readonly instance becomes blank. I bring value to this field from a child popup jsp. Is there any way by which I can get the value of this instance while submission.

Thanks in advance
Jency


-----Original Message-----
From: Jency Thomas [mailto:[hidden email]]
Sent: Wednesday, December 19, 2007 3:24 PM
To: [hidden email]
Subject: RE: [ops-users] xforms:bind issue


Thanks a lot to the Forms Working Group :)

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Tuesday, December 18, 2007 11:28 PM
To: [hidden email]
Subject: Re: [ops-users] xforms:bind issue

Jency,

Luckily (or thanks to the wisdom of the Forms Working Group ;-) there  
is an easy way: just add the following attribute to your  
xforms:submission:

   <xform:submission ... relevant="false" ...>

This will cause the submission not to prune non-relevant nodes.

-Erik

On Dec 18, 2007, at 4:35 AM, Jency Thomas wrote:

> Hi,
> I have an instance say,
> <xforms:instance id="main">
> <main>
>           <data1/>
>           <data2/>
> </main>
> </xforms:instance>
>
> And an input control which binds to data1 & data2.
> <xforms:input ref="instance('main')/data1" />
>
> At a particular point, I have to make the textbox for data1  
> invisible. So I do an xforms:bind as
> <xforms:bind nodeset=" instance('main')/data1" relevant="  
> instance('main')/data2='1'"/>
>
> So, with the data1 textbox invisible, I do a form submission which  
> sends the instance to an action; and when I inspect xml instance, I  
> found that the node <data1> is not present in the xml. I assume that  
> this is the default behavior of relevant attribute; but what I need  
> is, I need to make the textbox invisible but I need the xml node as  
> such in the submission instance.
>
> Is there any way by which I can accomplish this?
>
> Expecting your help,
>
> Thanks in advance
> Jency
>
>
>
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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