Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Verified Answer
+1
person also asked this
people also asked this
Replies
22 replies
Subscribers
7 subscribers
Views
8427 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
with() declarations refresh on any user action regardless of connection
marky
over 8 years ago
Hello:
I have noticed that anything declared in a with will get refreshed on any action the user takes on an interface, even if the with is unrelated to the action (such as a summary section at the top of the screen and a comments text box at the bottom, with no connection between the two).
Is this expected behavior for Appian?
It seems like with declared variables/rules/components should only refresh if one of the input variables changes.
If you see in the attached interface, changing the value in the textbox is refreshing the with variable, even though they are not related.
OriginalPostID-251823
example_interface.txt
Discussion posts and replies are publicly visible
Top Replies
marky
over 8 years ago
+1
I already know how to refactor the code, so thank you for the suggestions. The problem is that I doubt more than 10% of Appian developers actually understand the way with() scope works. So I ask which…
Parents
0
marky
over 8 years ago
Well i don't agree with Josh, Carlos, or Ashvin at all. Not using with() and instead using only saveInto makes the code many, many times more complex and increases the number of defects tremendously. If you have a SAIL form with 30 variables and 50 components, its nearly impossible to keep track of what components should update which variables using just the saveInto. This is just a generalization, but 30 variables/50 components is not a far stretch from most of the code I have seen others create. Not using with() is not a practical, good, or maintainable way to develop code. And what Josh mentioned makes no logical sense. Why would you have something get updated on every single interaction done on the screen, rather than only on actions related to that variable? Sounds like you need to re-think your implementation so that it is maintainable and logical, and regardless of whether with() is changed, you should change your approach to how you design SAIL forms.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
marky
over 8 years ago
Well i don't agree with Josh, Carlos, or Ashvin at all. Not using with() and instead using only saveInto makes the code many, many times more complex and increases the number of defects tremendously. If you have a SAIL form with 30 variables and 50 components, its nearly impossible to keep track of what components should update which variables using just the saveInto. This is just a generalization, but 30 variables/50 components is not a far stretch from most of the code I have seen others create. Not using with() is not a practical, good, or maintainable way to develop code. And what Josh mentioned makes no logical sense. Why would you have something get updated on every single interaction done on the screen, rather than only on actions related to that variable? Sounds like you need to re-think your implementation so that it is maintainable and logical, and regardless of whether with() is changed, you should change your approach to how you design SAIL forms.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data