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
9 replies
Subscribers
6 subscribers
Views
3697 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi, I use the smart node "Query database". Someone has try t
Victor Bouchery
A Score Level 2
over 9 years ago
Hi,
I use the smart node "Query database".
Someone has try to use a "data inupt" to specify a field's name on my SQL query?
I have some identical requests on differents fields, and for now i use several "query database" nodes.
Thanks in advance.
OriginalPostID-175285
OriginalPostID-175285
Discussion posts and replies are publicly visible
0
Chris
over 9 years ago
I don't believe you will be able to dynamically define the selection fields with the Query Database node. You can either pull back all columns you would need in each query, or run multiple Query DB nodes as you are now. Another alternative would be to use the Execute Stored Procedure node - create a procedure in SQL that allows you to send column name as an input, for use in a dynamic query there.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Victor Bouchery
A Score Level 2
over 9 years ago
Ok, thank you for your feed back.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
any particular reason you can't use a!queryEntity?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anshuk170
over 9 years ago
Try using a!queryEntity function to achieve what you are looking for.You can create rule inputs for the coloumns that you want to fetch.Query Db smartservice also degrades the performance of the application.As a best practice try using a!queryEntity functon.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Victor Bouchery
A Score Level 2
over 9 years ago
I can't use QueryEntity because i need to request several tables with 1..n relationship. It will be implemented as nested mulitiples in Appian, but it's not recomanded due to performance issues and a!QueryEntity does not support request on nested multiple field.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anshuk170
over 9 years ago
If you want to fetch datas from multiple tables you can create view and fetch the same using a!QueryEntity function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
fabienb
A Score Level 1
over 9 years ago
Hi Victor, you could also use a stored proceudure to achieve this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Victor Bouchery
A Score Level 2
over 9 years ago
Hi Fabien, yes i could do that but with this solution a part of the business rules isn't stored in Appian. Thanks anyway
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
abhinavg
over 9 years ago
@victorb what design / solution approach you followed to implement the above usecase. If you can share your thoughts ...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel