N
Nick Monsour
Hi all,
I am trying to use an Expression Box to retrieve data from and SQL
database for reference by the user. I currently have the expression box
working however it only returns the first line from the database table
and I would like it to return all. My expression is:
LONG VERSION:
concat(xdXDocument:GetDOM("company_department_xref")/dfs:myFields/dfs:dataFields/d:company_department_xref/d:hr_Department/@department_name[../../@company_id
=
xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:hr_Department/d:company_department_xref/@company_id],
xdXDocument:GetDOM("company_department_xref")/dfs:myFields/dfs:dataFields/d:company_department_xref/d:hr_Department/@department_num[../../@company_id
=
xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:hr_Department/d:company_department_xref/@company_id])
SHORT VERSION:
concat(@department_name[@company_id = @company_id],
@department_num[@company_id = @company_id])
Can anyone please help i have been trying for days to either fix this
or do a work around and nothing is working well.
THank you,
Nick
I am trying to use an Expression Box to retrieve data from and SQL
database for reference by the user. I currently have the expression box
working however it only returns the first line from the database table
and I would like it to return all. My expression is:
LONG VERSION:
concat(xdXDocument:GetDOM("company_department_xref")/dfs:myFields/dfs:dataFields/d:company_department_xref/d:hr_Department/@department_name[../../@company_id
=
xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:hr_Department/d:company_department_xref/@company_id],
xdXDocument:GetDOM("company_department_xref")/dfs:myFields/dfs:dataFields/d:company_department_xref/d:hr_Department/@department_num[../../@company_id
=
xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/d:hr_Department/d:company_department_xref/@company_id])
SHORT VERSION:
concat(@department_name[@company_id = @company_id],
@department_num[@company_id = @company_id])
Can anyone please help i have been trying for days to either fix this
or do a work around and nothing is working well.
THank you,
Nick