Forum Discussion
Astr0x
16 years agoOccasional Contributor
Hi Mc Donald,
I was thinking I get my records from the data source and it will only return me 1 record. Thus, if I want to get all my records I have to use datasource loop. So at this point, how XQuery expression can come into play to give me what I want.
Or how should I do it using Datagen step.
In short, I am quite puzzle how to use all the retrieve employee records from the datasource.
Such that in request XML,
In the Company element body, I could do a loop to each employee record and add conditions to display each employee details based on the requirement.
//record 1
employeename1 value
==> invoke conditions to display what element and value is required
//record 2
employeename2 value
==> invoke conditions to display what element and value is required
//record 3
employeename2 value
==> invoke conditions to display what element and value is required
Also, what if we use XSLT instead? will it be feasible?
Please guide and advise.
Thanks.
I was thinking I get my records from the data source and it will only return me 1 record. Thus, if I want to get all my records I have to use datasource loop. So at this point, how XQuery expression can come into play to give me what I want.
Or how should I do it using Datagen step.
In short, I am quite puzzle how to use all the retrieve employee records from the datasource.
Such that in request XML,
In the Company element body, I could do a loop to each employee record and add conditions to display each employee details based on the requirement.
//record 1
==> invoke conditions to display what element and value is required
//record 2
==> invoke conditions to display what element and value is required
//record 3
==> invoke conditions to display what element and value is required
Also, what if we use XSLT instead? will it be feasible?
Please guide and advise.
Thanks.