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
13 replies
Subscribers
7 subscribers
Views
6673 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
When am trying to update the editable grid , the attached code throws an error
janakik
over 9 years ago
When am trying to update the editable grid , the attached code throws an error
Expression evaluation error in rule 'rule': Cannot select without a Value
Any solutions/changes to the code?
Sample Code
OriginalPostID-158041
OriginalPostID-158041
Discussion posts and replies are publicly visible
Parents
0
sikhivahans
over 9 years ago
@janakik I guess one of the the problems could be (might become in the future) with the definition and usage of local!staffingDetails variable. local!staffingDetails is used in defined in load() and again in with(). So here we can assume that the definition of local!staffingDetails is overridden in with(). So we can conclude that the variable is in scope of with(). And again the same variable (that is in scope of with()) is being used for saving values by passing a reference of it to the rule!CSI_renderCSIStaffingDetails().
Afaik the SAIL architecture doesn't permit a variable defined in with() for usage in saveInto of a component. Documentation says 'NOTE: Do not save a component's value into a local variable defined by with(). The user's value and the variable's value are overwritten when the expression reevaluates.' (Reference: 'NOTE' Section under https://forum.appian.com/suite/help/7.10/SAIL_Design.html#Enabling_User_Interaction)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 9 years ago
@janakik I guess one of the the problems could be (might become in the future) with the definition and usage of local!staffingDetails variable. local!staffingDetails is used in defined in load() and again in with(). So here we can assume that the definition of local!staffingDetails is overridden in with(). So we can conclude that the variable is in scope of with(). And again the same variable (that is in scope of with()) is being used for saving values by passing a reference of it to the rule!CSI_renderCSIStaffingDetails().
Afaik the SAIL architecture doesn't permit a variable defined in with() for usage in saveInto of a component. Documentation says 'NOTE: Do not save a component's value into a local variable defined by with(). The user's value and the variable's value are overwritten when the expression reevaluates.' (Reference: 'NOTE' Section under https://forum.appian.com/suite/help/7.10/SAIL_Design.html#Enabling_User_Interaction)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data