Lately I have observed some weird behavior in one of my grid used in a tempo act

Lately I have observed some weird behavior in one of my grid used in a tempo action. I have added a small logic to make enable the submit button only if at least one of the record in grid is checked and the text box is entered. But even if the check boxes are selected and text-box is filled with valid inputs the submit button is still inactive. Moreover this behavior is not consistent. I have even confirmed that when we try to select the same record/s and enter same value in the text box as previous when it was not working, at some other time, then the system allows to do it. I am not able to find the reason for this kind of behavior. Posting the code for the same below for reference. Are there any suggestions for this?

ICAMS_SLOT_INTERFACE.txt

OriginalPostID-198466

OriginalPostID-198466

  Discussion posts and replies are publicly visible

Parents
  • Hi Sailesh, The problem with expression or(if(count(local!selectedModules)=0, true, false), isnull(ri!fid)) that you are using to disable the button. As per my experience count returns even if the passed value is null. So the expression should be like
    or(isnull(local!selectedModules),count(local!selectedModules)>1, isnull(ri!fid))
    This will enable button when exactly one record is selected.
Reply
  • Hi Sailesh, The problem with expression or(if(count(local!selectedModules)=0, true, false), isnull(ri!fid)) that you are using to disable the button. As per my experience count returns even if the passed value is null. So the expression should be like
    or(isnull(local!selectedModules),count(local!selectedModules)>1, isnull(ri!fid))
    This will enable button when exactly one record is selected.
Children
No Data