Hi,
I have a DS XML with a field with valueXpath attribute. It looks like this
<field name="tag" valueXpath="tags/tagNames"/>
Following is a sample json data I get from backend
[{
affectedRows: 0,
data: [{
tags: [{
tagName: "tag1"
},{
tagName: "tag2"
}
],
lastName: "lastName",
updatedBy: null,
roles: [4],
updatedDate: new Date(946684800000),
userName: "myusername",
firstName: "SJ",
companyId: "cid",
createdDate: new Date(946684800000),
createdBy: null,
phone: "unknown",
email: "random@blah.com",
status: "open"
}]
}]
valueXpath specified gives me only the first tagName ie tag1. How do i get an array of all tagNames? I want something like ["tag1","tag2"]
I have tried all different xpath combinations
- tags[*].tagName
- tags//tagName
- tags[*]/tagName
- tags[*]//tagName
In all instances I either get 1 or 0 but never all.
There is a similar thread from long time ago https://forums.smartclient.com/forum...marked-as-true
that is exactly describes my issue.
Is this still a problem?
Thanks.
I have a DS XML with a field with valueXpath attribute. It looks like this
<field name="tag" valueXpath="tags/tagNames"/>
Following is a sample json data I get from backend
[{
affectedRows: 0,
data: [{
tags: [{
tagName: "tag1"
},{
tagName: "tag2"
}
],
lastName: "lastName",
updatedBy: null,
roles: [4],
updatedDate: new Date(946684800000),
userName: "myusername",
firstName: "SJ",
companyId: "cid",
createdDate: new Date(946684800000),
createdBy: null,
phone: "unknown",
email: "random@blah.com",
status: "open"
}]
}]
valueXpath specified gives me only the first tagName ie tag1. How do i get an array of all tagNames? I want something like ["tag1","tag2"]
I have tried all different xpath combinations
- tags[*].tagName
- tags//tagName
- tags[*]/tagName
- tags[*]//tagName
In all instances I either get 1 or 0 but never all.
There is a similar thread from long time ago https://forums.smartclient.com/forum...marked-as-true
that is exactly describes my issue.
Is this still a problem?
Thanks.
Comment