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
6 replies
Subscribers
7 subscribers
Views
2379 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hello everyone, I need help to build following scenario: I have
Omkar K
over 9 years ago
Hello everyone,
I need help to build following scenario:
I have a sail interface in which there is a local variable. This local variable is calling webservicequery rule to get the response from the web service. The WS call takes around 5 seconds. Till I get the response I need to show an image with loading gif, otherwise I need to show the response. I would appreciate if I can have ideas to build this in SAIL interface.
Thank you!
Omkar
OriginalPostID-168659
OriginalPostID-168659
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 9 years ago
SAIL is built to react on user input. So the only thing you can do is to make the user click a link or button to trigger your action.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tharuh
over 9 years ago
Hi Omkar,
If the webservice query is taking time to provide the response it would be better if you handle it in the process rather than on sail interface which reduces the load on forms. In process you can have a timer which waits for 5 secs and then display the response on form.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aneeshv713
over 9 years ago
This is a typical scenario which Omkar has described. The LOADING GIF is pretty common in such cases. "SAIL being built to react on user input" --> I don't agree on this statement. With a simple JavaScript, we could do this pretty easily. This restriction is too bad and the workarounds are not user intuitive.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
I agree that it would be nice to have some programmable events in SAIL, but currently this is not supported. Maybe Appian adds such a feature to SAIL in the future.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rajivr
Certified Associate Developer
over 9 years ago
but FYI , javascript is no longer supported. And also there is no 'auto submission' feature in Appian as of now, using which you could have shown a gif image("loading...") in a form for those 5 secs and then show the output of your web-service.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
moritzw
over 9 years ago
I have a similar use case and didn't get a good answer on my question either. This is too bad as we need a good solution for this to replace one old portal app, which is using a loading image and autosubmits the form.
I think this is a pretty common use case and should find its way into one of the next Appian releases soon.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel