Dropdown with same values - InfoPath Dev
in

InfoPath Dev

Dropdown with same values

Last post 10-17-2005 11:07 PM by Coita Thierry. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-13-2005 03:34 AM

    Dropdown with same values

    What a strange thing happened to me today! In the Form file, I have a structure like this:
    <Row><A>1<\A><B>1<\B><C>Desc1<\C><Row>
    <Row><A>1<\A><B>1<\B><C>Desc2<\C><Row>
    <Row><A>1<\A><B>2<\B><C>Desc3<\C><Row>
    <Row><A>1<\A><B>3<\B><C>Desc4<\C><Row>
    <Row><A>2<\A><B>1<\B><C>Desc1<\C><Row>
    <Row><A>2<\A><B>1<\B><C>Desc2<\C><Row>
    ...
    I have a dropdown (called "DD1") that can assume values coming from "A" field and another dropdown "DD2" liked to "DD1" which has the values of "B" and display values from "C" fields. I think it's quite clear.

    I tried to chose: DD1 = 1 and rightly DD2 shows me the following values:
    Desc1(value-->1), Desc2(value-->1), Desc3(value-->2) , Desc4(value-->3)

    It happens to me that in the DD2 if I choose Desc1, after changing the focus, DD1 is mysteriously set to Desc2(value-->1)...i think becouse they have the same value and infopath cannot distinguish them.
    Anyway it's not fine that the users select an item and then another item is displayed...

    Well...it's a behaviour difficult to explain, but i hope to have been clear enough...have you some ideas to avoid it?





  • 10-13-2005 06:40 AM In reply to

    Re: Dropdown with same values

    Hi,

    If I have good understand :
    Value display
    1 Monaco
    2 Rio
    1 Marseille
    3 Santiago

    when you choose Monaco on your dropdown she goes automatically on Marseille?

    I'm right?

    If it's the case it's a "bug" of infopath! It's not really a bug because for infopath what is the difference between 1 and 1 nothing! The rules is always choose the last!

    My work around bind your dropdown for value and display to c and make a rules to set the value of b and the game is over!

    Hope this help!

    ++

    Thierry


    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 10-13-2005 07:52 AM In reply to

    Re: Dropdown with same values

    You understood good Thierry but i'm not so smart as you becouse I'm not sure to have understood your workaround :)
    Do you suggest me to use as values the display values or descriptions (Monaco,Rio,Marseille,Santiago) and add a rule to set the value of original variable with the number whose description is selected in dropdown (1 for Monaco, 2 for Rio....)?

    It's a good idea, even if I must change the schema :)
  • 10-17-2005 11:07 PM In reply to

    Re: Dropdown with same values

    Exactly! have you find how to make this?

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.