title: In ExtJS, How can I list multiple returns from JSON data in a field set?
body: <p>Ok, I am semi-new to ExtJS, and I am building a program that has "inputs" that are listed in a grid, and in my DB these inputs can be linked to "symptoms". </p>
  
  <p>I am trying to create a function that will take in the id of the input and grab all of the symptoms from the database that are linked to that symptom, and list them in a field set. </p>
  
  <p>It works fine when I click on an input that is only linked to one symptom, but if the input is linked to more than one symptom, then the error says.. "invalid property id"</p>
  
  <p>This is what I have for my function.</p>
  
  <pre><code>function listSymptoms(inputID){
      Ext.Ajax.request({
          url: "../../inc/project4.php?list=symptoms",
          reader: new (Ext.data.JsonReader)({
              root: "symptoms",
              inputid: "id"
          }),
          params: {
              inputid: inputID
          },
          method: "POST",
          success: function (f, a){
              var jsonData = Ext.util.JSON.decode(f.responseText);
              symptomsFieldSet.body.update(jsonData.data.name);
          },
          failure: function (f,a){
              Ext.Msg.alert('There was a problem opening your message.');
          }
      });
  }
  </code></pre>
  
  <p>I have the inputID for the function being passed in when the user clicks on one of the inputs that are held inside the grid.</p>
  
  <p>I believe that my problem has something to do with this line..</p>
  
  <pre><code>  symptomsFieldSet.body.update(jsonData.data.name);
  </code></pre>
  
  <p>I am just stumped on how to handle this. Do I need to create a data store like I have for grids? Or is there an easier way to do this?</p>
  
  <p>ANY help is appreciated! thanks in advance.</p>