Question on dynamically showing buttons

In my form I have 3 buttons that will show only if a product is selected but when I unselect the product, the buttons are still showing. When it first loads the buttons don't appear, I use the same isnull() within the validations in my grid to make sure that you can't press the buttons without a row selected, that part works.

The if statement around my buttons
if(isnull(local!gridSelection.selected),{},{buttons})

Unless I'm not coding it correctly, please advise.

OriginalPostID-187724

OriginalPostID-187724

  Discussion posts and replies are publicly visible

Parents
  • @mjmallet I would like to suggest you to use rule!APN_isEmpty if the environment in which you are already working has Appian common objects. Just to let you know, isnull won't work all the times, and practitioners often use rule!APN_isBlank or rule!APN_isEmpty. I am suggesting the usage of rule!APN_isEmpty, as the null check is being made against an array.

    In addition to the above, further I would like to suggest to check for presence of values in local!gridSelection.selected by debugging its value.
Reply
  • @mjmallet I would like to suggest you to use rule!APN_isEmpty if the environment in which you are already working has Appian common objects. Just to let you know, isnull won't work all the times, and practitioners often use rule!APN_isBlank or rule!APN_isEmpty. I am suggesting the usage of rule!APN_isEmpty, as the null check is being made against an array.

    In addition to the above, further I would like to suggest to check for presence of values in local!gridSelection.selected by debugging its value.
Children
No Data