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
17 replies
Subscribers
7 subscribers
Views
5199 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am working on a process that allows a user to enter an order using an editable
judym598
Certified Senior Developer
over 8 years ago
I am working on a process that allows a user to enter an order using an editable grid. Using the SAIL Recipes as an example, I created 2 SAIL Rules. One contains the editable grid (psh_itemRows.txt) and the other is the main expression (psh_enterOrder.txt) that calls it. In my editable grid, the user can enter multiple rows and the system calculates the suggestedPrice value based on the user-entered values for 'quantity' and 'unitPrice'. All data is saved in the CDT (which is set to 'multiple') except for the calculated value. I'd also like to display the subtotal in the psh_itemRows.txt form so the user knows how much the total is as he/she is entering line items, but haven't been able to get that to work (probably because the suggestedPrice calculation is not being saved). At the very least, I need to show the subtotal on the main form. Any suggestions? I've attached my SAIL forms.
psh_enterOrder.txt
OriginalPostID-223011
OriginalPostID-223011
Discussion posts and replies are publicly visible
Parents
0
Aaron Swerdlow-Freed
A Score Level 1
over 8 years ago
An easy way to do this would be that on the save that updates your cdt you use something like a!save(local!total, local!total + save!value). Note that this will cause issues if they click back in so you might want to use a temp holder to account for that
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Aaron Swerdlow-Freed
A Score Level 1
over 8 years ago
An easy way to do this would be that on the save that updates your cdt you use something like a!save(local!total, local!total + save!value). Note that this will cause issues if they click back in so you might want to use a temp holder to account for that
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data