When am trying to update the editable grid , the attached code throws an error

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
  • @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)
Reply
  • @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)
Children
No Data