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
10 replies
Subscribers
8 subscribers
Views
4671 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, I have been experiencing an issue where I am trying to save the v
varnikam
over 8 years ago
Hi,
I have been experiencing an issue where I am trying to save the values that are calculated automatically in an inline editable grid but they are not being saved in a variable. I've tried using all the functions to save those values but they're not getting saved anywhere.
for example, If I calculate amount through quantity*price then quantity and price are getting saved but not the Amount.
a!textField(
label: "amount " & ri!index,
align: "RIGHT",
readOnly: true,
value: if(or(isnull(ri!items[ri!index].qty), isnull(ri!items[ri!index].unitPrice)), null,
dollar(tointeger(ri!items[ri!index].qty) * todecimal(ri!items[ri!index].unitPrice))),
saveInto: ri!items[ri!index].amount
)
So Can anyone help me saving auto-populated values in a grid?
Thanks,
Varnika
OriginalPostID-209066
OriginalPostID-209066
Discussion posts and replies are publicly visible
Parents
0
vineeta6579
over 8 years ago
you can calculate amount from saveInto of quantity and price. something like below
a!save(ri!items[ri!index].amount, if(or(isnull(ri!items[ri!index].quantity),
isnull(ri!items[ri!index].price )),{},(ri!items[ri!index].quantity*ri!items[ri!index].price)))
instead of putting, if condition on value attribute of Amount field
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
vineeta6579
over 8 years ago
you can calculate amount from saveInto of quantity and price. something like below
a!save(ri!items[ri!index].amount, if(or(isnull(ri!items[ri!index].quantity),
isnull(ri!items[ri!index].price )),{},(ri!items[ri!index].quantity*ri!items[ri!index].price)))
instead of putting, if condition on value attribute of Amount field
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data