Populate data by default into a grid

I am using a!queryEntity() to bring data from the database. I am populating a grid with that data. I have a search filter on top of my grid which will alter the grid depending on what is typed. This would also mean that I am a!queryFilter() within my a!queryEntity(). I want all the data to be populated by default in my grid. In the attached code, you will see that I have an if condition. If the search parameter is null, I want to display all of the data (that is the part I am missing). Any ideas how would I accomplish this?

queryEntity.txt

OriginalPostID-190320

OriginalPostID-190320

  Discussion posts and replies are publicly visible

Parents
  • @erickp *attached. Apologies for the typo.

    One more suggestion I would like to add here is, if possible, please make use of rule!APN_isBlank() instead of isnull. Just in case, if you aren't aware of rule!APN_isBlank(), please find attached the image. isnull might not work all the times, especially when you are working with a local variable in the SAIL interface.
Reply
  • @erickp *attached. Apologies for the typo.

    One more suggestion I would like to add here is, if possible, please make use of rule!APN_isBlank() instead of isnull. Just in case, if you aren't aware of rule!APN_isBlank(), please find attached the image. isnull might not work all the times, especially when you are working with a local variable in the SAIL interface.
Children
No Data