drop down problem

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

drop down problem

manish_suriya

Dear all,

Please find the attached file.

In this there are state and product dropdown.

what i want to show:

 Initially when page loads state should dispaly the options and product shuld NOT dispaly any options. When i select any option from state then only products populate the options.

problem:

i am not able to link both. how shuld i achieve it ?/


Thanks in advance.


Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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

view.xhtml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: drop down problem

manish_suriya

Sorry for my mistake,

i am getting the out put. forget to change instance.

sorry guys

Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Manish Suriya <[hidden email]>

10/18/2008 07:16 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] drop down problem






Dear all,


Please find the attached file.


In this there are state and product dropdown.


what i want to show:


Initially when page loads state should dispaly the options and product shuld NOT dispaly any options. When i select any option from state then only products populate the options.


problem:


i am not able to link both. how shuld i achieve it ?/



Thanks in advance.



Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00007AAA    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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

view.xhtml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: drop down problem

manish_suriya

I think the problem still exist.

By changing instance,  on the first load of page product drop down is disappearing and it comes when i select any state.

but i what both product and state dropdowns  to be shown when page first loads. state dropdown shuld have all options and prouduct shuld show choose 1 only.

on select of state only product option will populate.


Thanks in advance

.


Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Manish Suriya <[hidden email]>

10/18/2008 07:34 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: drop down problem






Sorry for my mistake,


i am getting the out put. forget to change instance.


sorry guys


Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                      Business Solutions
                      Outsourcing
____________________________________________


Manish Suriya <[hidden email]>

10/18/2008 07:16 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] drop down problem








Dear all,


Please find the attached file.

In this there are state and product dropdown.


what i want to show:

Initially when page loads state should dispaly the options and product shuld NOT dispaly any options. When i select any option from state then only products populate the options.


problem:

i am not able to link both. how shuld i achieve it ?/



Thanks in advance.



Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                     Business Solutions
                     Outsourcing
____________________________________________

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00007AAA    

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


[attachment "view.xhtml" deleted by Manish Suriya/MUM/TCS]

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00007AB2    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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

view.xhtml (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: drop down problem

Alessandro Vernet
Administrator
On Oct 18, 2008, at 7:15 AM, Manish Suriya wrote:

> I think the problem still exist.
>
> By changing instance,  on the first load of page product drop down  
> is disappearing and it comes when i select any state.
>
> but i what both product and state dropdowns  to be shown when page  
> first loads. state dropdown shuld have all options and prouduct  
> shuld show choose 1 only.
>
> on select of state only product option will populate.
This happens because you have:

     <xforms:bind nodeset="instance('name-instance')/option/
optionData[@type='DROPDOWN' and @name='product']"
                  relevant="instance('name-instance')/option/
optionData[@type='DROPDOWN' and @name='state']/selectedValue !='' "/>

This makes the second drop-down non-relevant (i.e. hidden), until you  
select a state in the first drop-down.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
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: Re: Re: Re: drop down problem

manish_suriya

Alex,  Thanks for the reply

Yes, its true.  when i remove this line of code.

<xforms:bind nodeset="instance('name-instance')/option/
optionData[@type='DROPDOWN' and @name='product']"
                 relevant="instance('name-instance')/option/
optionData[@type='DROPDOWN' and @name='state']/selectedValue !='' "/>


I get both state and product dropdown . But i am also getting product items/content. How should i make hidden to product dropdown items/contetnt  on first page load.



Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Alessandro Vernet <[hidden email]>

10/18/2008 11:54 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: Re: Re: drop down problem





On Oct 18, 2008, at 7:15 AM, Manish Suriya wrote:

> I think the problem still exist.
>
> By changing instance,  on the first load of page product drop down  
> is disappearing and it comes when i select any state.
>
> but i what both product and state dropdowns  to be shown when page  
> first loads. state dropdown shuld have all options and prouduct  
> shuld show choose 1 only.
>
> on select of state only product option will populate.

This happens because you have:

    <xforms:bind nodeset="instance('name-instance')/option/
optionData[@type='DROPDOWN' and @name='product']"
                 relevant="instance('name-instance')/option/
optionData[@type='DROPDOWN' and @name='state']/selectedValue !='' "/>

This makes the second drop-down non-relevant (i.e. hidden), until you  
select a state in the first drop-down.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog:
http://www.orbeon.com/blog/
Personal Blog:
http://avernet.blogspot.com/
Twitter -
http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00007ACA    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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: drop down problem

fl.schmitt(ops-users)
Manish,

> I get both state and product dropdown . But i am also getting product
> items/content. How should i make hidden to product dropdown
> items/contetnt  on first page load.

you could insert the items for the second dropdown box when the value of the
first dropdown control changes. To do this, let the itemset of the second
dropdown box reference a second instance that's initially empty. When the user
selects an item from the first dropdown, the xforms-value-changed event is
caught and a xforms:insert is triggered to copy the items from the first
instance to the second (initially empty) instance.

I've attached a modified version of your example code (removed the xforms:repeat
to make the structure clearer).

HTH
florian


--
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

view_suriya.xhtml (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: drop down problem

manish_suriya

Thanks Florian,

thanks for th "origin" concept. i was not aware of this.

But i want this thing to be achieved within the repeat tags. Beacuse  i am having many dropdowns and checkboxes and radio buttons, which is maintained in seperate xml which is dynamically generated

from drools(Jboss) in my application. Thats why I am cheking all three types within repeat tag by  as @type="DROPDOWN"/ or checkbox or radio butto. If going this way  i have to write group tags for all


such dropdowns and checkboxes.which is a cumersome. Hope what I want you understood.

Thanks again.

Manish Suriya
Mailto: [hidden email]
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Outsourcing
____________________________________________



Florian Schmitt <[hidden email]>
Sent by: Florian Schmitt <[hidden email]>

10/19/2008 08:39 PM

Please respond to
[hidden email]

To
[hidden email]
cc
Subject
[ops-users] Re: drop down problem





Manish,

> I get both state and product dropdown . But i am also getting product
> items/content. How should i make hidden to product dropdown
> items/contetnt  on first page load.

you could insert the items for the second dropdown box when the value of the
first dropdown control changes. To do this, let the itemset of the second
dropdown box reference a second instance that's initially empty. When the user
selects an item from the first dropdown, the xforms-value-changed event is
caught and a xforms:insert is triggered to copy the items from the first
instance to the second (initially empty) instance.

I've attached a modified version of your example code (removed the xforms:repeat
to make the structure clearer).

HTH
florian
[attachment "view_suriya.xhtml" deleted by Manish Suriya/MUM/TCS]
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe:
[hidden email]
For general help:
[hidden email]
OW2 mailing lists service home page:
http://www.ow2.org/wws

ForwardSourceID:NT00010F3A    
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




--
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: Re: drop down problem

fl.schmitt(ops-users)
Manish,

> But i want this thing to be achieved within the repeat tags. Beacuse  i
> am having many dropdowns and checkboxes and radio buttons, which is
> maintained in seperate xml which is dynamically generated
> from drools(Jboss) in my application. Thats why I am cheking all three
> types within repeat tag by  as @type="DROPDOWN"/ or checkbox or radio
> butto. If going this way  i have to write group tags for all
> such dropdowns and checkboxes.which is a cumersome. Hope what I want you
> understood.

hmm - i think i understand, but inside a xforms:repeat, it's not easy to
address the correct nodeset. One has to "jump" between different
'option' elements and their children - especially, one has to jump to
option elements that are not part of the repeat nodeset.

Maybe this would be a little bit easier if the structure of the instance
data could be modified. In your example, the two options (state,
product) are on the same hierarchical level, but regarding the UI, it
seems that the product is depending on the state selection - mayeb one
could model that dependency by putting the product information
_into/under_ the state element? Then, you don't have to select the state
options when repeating, and accessing the product information depending
on the state selection would be easier.

florian



--
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