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
15 replies
Subscribers
4 subscribers
Views
12777 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
Execute Procedure and Display Data on Tempo Report
Sowrabha Rajashekar
over 7 years ago
Hi All,
I have a requirement that I need to insert data through a stored procedure and display the result- set on the report on a button click. I cannot be using executestoredprocedure function as it doesn't support for insert/update statements. So , I was trying to do with a!startprocess - And the process model runs the execute stored procedure smart service or using web-api with a!start-process. I'm getting results, but the problem is that a!start process will only start the process asynchronously and will not wait till the process gets completed. So I'm worried on the credibility of the output of that process. It would be very helpful if someone can suggest a solution for this.
OriginalPostID-266159
Discussion posts and replies are publicly visible
Parents
0
venkateshamu
A Score Level 2
over 7 years ago
@sowrabha, AFAIK In this case there is no direct process but i think recursive functionality may be achieves your goal.
create one expression (exp1) rule which checks whether the data is inserted in database or not and returns boolean value.
and call this exp1 rule in other exp rule (recursive expression exp2) using if() function.
exp2: if(
rule!exp1(),
"display your data",
rule!exp2()
)
finally call this exp2 from your report.
it's my assumption only i am not sure whether it is work or not. let me know is it worked or not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
venkateshamu
A Score Level 2
over 7 years ago
@sowrabha, AFAIK In this case there is no direct process but i think recursive functionality may be achieves your goal.
create one expression (exp1) rule which checks whether the data is inserted in database or not and returns boolean value.
and call this exp1 rule in other exp rule (recursive expression exp2) using if() function.
exp2: if(
rule!exp1(),
"display your data",
rule!exp2()
)
finally call this exp2 from your report.
it's my assumption only i am not sure whether it is work or not. let me know is it worked or not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data