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
7 subscribers
Views
2147 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hi I have a view from which i am fetching data using query rule and i have
shivakanthr
over 8 years ago
Hi
I have a view from which i am fetching data using query rule and i have three rows in that view with request id =30
when i am fetching data using query rule i am getting only one row that is first row instead of three rows.
What is the issue.
Thanks inadvance
OriginalPostID-171393
OriginalPostID-171393
Discussion posts and replies are publicly visible
0
Tim
Certified Lead Developer
over 8 years ago
This is expected behaviour. If your requestId field is annotated as your @Id column in your XSD definition you will only get unique values. You will need to add an extra column to your view which holds a unique value for each row.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
If you're using MySQL you might consider adding a column to the view that uses the UUID() function to generate a unique reference for each row.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 8 years ago
And for MS SQL, you can use this in your SELECT as the first column to create a unique ID called 'Row':
SELECT TOP (100) PERCENT ROW_NUMBER() OVER (ORDER BY <any_populated_column_in_your_view>) AS Row
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 8 years ago
^ also note this column would be defined as 'bigint' in your XSD.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel