Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
9 subscribers
Views
1967 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
[{"Name":"Test 1","ROW_ID":"4646"},{&quo
padmanabhanv
over 10 years ago
[{"Name":"Test 1","ROW_ID":"4646"},{"Name":"Test 2","ROW_ID":"4648"}] is the output of a executeQuery() function. Need to display this in a grid - I am not able to parse this with the json functions. We are in 7.5, hence using queryEntity is not an option....
OriginalPostID-136114
OriginalPostID-136114
Discussion posts and replies are publicly visible
0
siddharthg521
over 10 years ago
Hi, Did you tried parsing thr returned json array with extractjsonarray function ?
I have used this multiple times to parse thr json and populating the returned set in cdts and mapping them on grid.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
padmanabhanv
over 10 years ago
Ok, which plugin is this by the way? I don't see it as part of the json functions.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sandram548
over 10 years ago
Hi, I have exactly the same problem, I used extractjsonarray but I got a regular array, but I need a subset to be able to use it in the grid
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
siddharthg521
over 10 years ago
Hi, wef Appian 77, there is a new json function available OOB named - a!fromJSON that will parse given JSON and return the datasubset result (CDT like structure) and then you can use the conventional dot operator to access any field(s)
For example, in your case - =a!fromJson("[{"Name":"Test 1","ROW_ID":"4646"},{"Name":"Test 2","ROW_ID":"4648"}]") will return [Name:Test 1,ROW_ID:4646], [Name:Test 2,ROW_ID:4648] as output, and now lets say you only need ROW_ID, then you can use =a!fromJson(ri!json).ROW_ID which will give you 4646, 4648 as output.
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel