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
4 replies
Subscribers
7 subscribers
Views
2209 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
I have a SAIL form with a lot of information, but not all are editable except 3
outey
over 9 years ago
I have a SAIL form with a lot of information, but not all are editable except 3 paragraph fields that are assigned to 3 different users for input such as monthly highlights. The user access this form through assigned task, and I am using the Save Changes feature. It's working correctly even if navigating to different screens such as Reports or Actions, and if returning to the same task the Save Changes is stored correctly - display what I have in the paragraph field so I do see what was there before.
If I click on Submit without making any change to the paragraph field, it will write empty value to the database for all the fields including the non-editable fields.
However, If I return to the same task and type something in such as adding a period to the existing text in the paragraph field, it will save correctly -what was there before plus the period. It is very strange. What is causing my problem? I am on 7.7
I hate to tell the user to add something to ...
OriginalPostID-143958
OriginalPostID-143958
Discussion posts and replies are publicly visible
0
outey
over 9 years ago
...the existing text in order to save correctly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike West
Certified Lead Developer
over 9 years ago
Since the user is not interacting with the field, the saveInto part of that field is never executed. Two options are: (i) populate the default values on form input acs, rather than in local variables, or (ii) on the submit button, add a new a!save() for each default value. For example:
saveInto: {
ri!buttonClicked,
a!save(ri!field1, if(isnull(ri!field1), local!field1DefaultValue, ri!field1)),
...
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
outey
over 9 years ago
Thanks for the response. I just tried that, but still the same behavior. It is very strange for me.
Saving Changes Correctly.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jayneb
over 9 years ago
Are the variables on your form mapped to actual pv!'s in the node? Check and make sure that you are calling the sail rule in the node correctly and mapping the correct pv!'s to the write to data store node. Your problem could be in how you are calling your rule as well.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel