Team System Developer Center > Visual Studio Team System Forums > Team Foundation Server – Power Tools & Add-ons > Load information in a field depending on what I choose in other field
Ask a questionAsk a question
 

AnswerLoad information in a field depending on what I choose in other field

  • Friday, November 06, 2009 10:06 PMcandytellez Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello everyone,

    I have a WIT and in this WIT I need to programm a dropdown box 'A' that contains certain key words, when I select a word in the dropdown box 'A' the dropdown box 'B' will be load with information just the word I selected in dropdown box 'A', but if select a different word in the dropdown box 'A' dropdown box 'B' will be load with different information. 

    E.I.:    Dropdown box 'A' contains the following information: administration, development and support
              If I select in 'A' Development, 'B'  will be loaded with: Visual Studio, SQL Server, Oracle
    but,
             If I select in 'A' Support, 'B'  will be loaded with: Perfect Tracker, VMWare, Microsoft Office

    I really apreciate if you know where I can find information or documentation that guides me  to do that. I have the Process Template Editor but eventhough I have been making tests to get this done I have not be able to achive it.

    Thank you very much for any help you can give me.
            

Answers

  • Monday, November 09, 2009 10:00 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    If there is not many options in A and the information will not change, you can just use WHEN and COPY rule in B.


    <FieldDefinition type="String" name="B" refname="Demo.B">
      <WHEN field="Demo.A" value="Development">
        <COPY from="value" value="Visual Studio, SQL Server, Oracle " />
      </WHEN>
     <WHEN field="Demo.A" value="Support">
        <COPY from="value" value="Perfect Tracker, VMWare, Microsoft Office" />
      </WHEN>

    </FieldDefinition>

    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
    • Marked As Answer bycandytellez Friday, November 13, 2009 12:45 AM
    •  

All Replies

  • Monday, November 09, 2009 10:00 AMRuiz YiModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi,

    If there is not many options in A and the information will not change, you can just use WHEN and COPY rule in B.


    <FieldDefinition type="String" name="B" refname="Demo.B">
      <WHEN field="Demo.A" value="Development">
        <COPY from="value" value="Visual Studio, SQL Server, Oracle " />
      </WHEN>
     <WHEN field="Demo.A" value="Support">
        <COPY from="value" value="Perfect Tracker, VMWare, Microsoft Office" />
      </WHEN>

    </FieldDefinition>

    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Sincerely, Ruiz Yi
    • Marked As Answer bycandytellez Friday, November 13, 2009 12:45 AM
    •