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
8 replies
Subscribers
10 subscribers
Views
8276 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How to save local!variable inside a with to Rule Input. Any advise on this will
jegadeeswaran
over 9 years ago
How to save local!variable inside a with to Rule Input. Any advise on this will be helpful.
OriginalPostID-180655
OriginalPostID-180655
Discussion posts and replies are publicly visible
Top Replies
Tim
over 9 years ago
+1
Certified Lead Developer
You can do this from any SAIL component with a!save() function so a button on link field: a!save(ri!myRuleInput, local!myLocalVar)
0
Tim
Certified Lead Developer
over 9 years ago
You can do this from any SAIL component with a!save() function so a button on link field:
a!save(ri!myRuleInput, local!myLocalVar)
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sparshs
over 9 years ago
you can use a!save function for this. Here with this function you can set the value of local variable as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jegadeeswaran
over 9 years ago
is there any way to save without a!save function. Used case is Load or with value should be stored in rule input in rule during initialization.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@jegadeeswarand I don't think that's possible because I believe that a!save is the only way as suggested. An other possibility could be initialising the rule inputs with the values with acp or pv. If possible I would like to suggest you to elaborate the usecase if possible so that the practitioners could come up with alternatives if possible.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
*If possible I would like to suggest you to elaborate the usecase so that the practitioners could come up with alternatives.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 9 years ago
Sorry but it doesn't make much sense, there is no benefit in updating the ri! value at initialisation as it can't be accessed until the form is submitted. At some point the form has to be submitted so a!save() is there to achieve this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kdimitrov
over 9 years ago
As per Tim's explanation above, there's limited benefit in saving a local variable to a rule input before the final submission of the form. The local variable should be used for computation / display purposes and then saved with a!save on form submission, etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
Default values for AC variables can be set in the data input tab on the user input task.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel