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
10 replies
Subscribers
10 subscribers
Views
4025 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
I have created an Expression based record called Employee. In the record source
vbhardwaj
Certified Senior Developer
over 9 years ago
I have created an Expression based record called Employee. In the record source expression rule, I have configured search by lastname and id. But when i click on any of the record it always shows the details of first record only on the summary view. Also the search is not working. Have attached the record rule.
load(
rule!test_EmployeeRecSource(rsp!query)
)
test_EmployeeRecSource.txt
OriginalPostID-162982
OriginalPostID-162982
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 9 years ago
Have you tried looking at the service-backed record tutorial in the link below? Although it's for a webservice-based record, the parsing of the query etc is the same as for your requirement.
forum.appian.com/.../Service-Backed_Record_Tutorial.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vbhardwaj
Certified Senior Developer
over 9 years ago
yes gone thru the tutorial. Actually the requirement is for Webservice base d records, but i was trying by hardcoding data in expression rules as I don't have the WebService available rightnow.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
Your code doesn't match what is suggested in the tutorial; is there a reason that you've gone with a different method of parsing the rsp!query object?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vbhardwaj
Certified Senior Developer
over 9 years ago
I was refering to
forum.appian.com/.../Records_Tutorial.html
as I am working on version 7.9
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
The 7.10 tutorial is much more comprehensive and suggests a much nice method of implementation - and it applies to 7.9 as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vbhardwaj
Certified Senior Developer
over 9 years ago
ok. I will go thu the 7.10 tutorial. BTW do you find any problem in the code attached.
Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
I'd guess it's because you've put "rp!Emp_id" instead of "rp!id".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vbhardwaj
Certified Senior Developer
over 9 years ago
Emp_id is the pk in the CDT.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 9 years ago
Of course, apologies. In that case, try removing the reference to local!pagingInfo on this line: rule!test_getEmployeeById(local!requestedId,local!pagingInfo). If that doesn't work, you'll need to construct the datasubset manually so that you can explicitly set the identifiers attribute, as that may not be set correctly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vbhardwaj
Certified Senior Developer
over 9 years ago
Hi philb,
I have used the same method mentioned in 7.10 link to extract the rsp!query object. It works fine now. Thanks for your help.
Thanks,
Vikrant.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel