4 Replies Latest reply on Feb 17, 2021 9:22 PM by user 9052

    Need help on Creating List

    user 9052 Seasoned Veteran

      Hi All, I need help on creating as List when output of DAS have single records vs Multiple Record

      Currently I am using an Xquery  as below to create a List

       

      for $row in $output.dataAccessResponse/row

      return

      <Appt>

      <ApptEffDate>{$row/ApptEffDate/text()}</ApptEffDate>

      <AptExpDate>{$row/AptExpDate/text()}</AptExpDate>

      </Appt>

       

      The Output of above XQuery when we have more than 1 record from DAS is below

       

       

      But when we have single Record from DAS, the Output as below(this is not created as List)

       

       

      I would greatly appreciate if you provide on how my xquery need to Modified so that output return as List even though when there is single row.