hi all, is there a way to prevent a grid from showing a default empty row

hi all,
is there a way to prevent a grid from showing a default empty row ?
i did some test.
this will occur when the grid includes a true/false column or dropdown column(these fields are all not required).

however if you set null as default value to true/false field, sometimes the default empty row disappears.
accturally i have two models. grids in the two models both only have text and true/false columns. but one grid does not show default empty row, and the other still shows the empty row. the value of the true/false column is false.

i hope i make the question clear.

thanks in advance.

fyi, i'm using appian6.71....

OriginalPostID-79864

OriginalPostID-79864

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    I have faced a similar issue where the data for the Grid was a rule which returns a data subset. I was facing a empty row is being displayed even if there is no data. The data in the data subset is literally null() and it does not have any value. The Grid is showing a empty row is because of the total count it received form the data subset. In my case the totalCount returned was 1. So, the grid displayed a row as the totalCount received from the rule was 1. So, the conclusion is whenever a grid shows a empty value even if there is no default value then the issue is with the totalCount.

  • 0
    Certified Associate Developer
    in reply to AKASH T

    Exactly, I am experiencing this problem.

    The source of my grid is a dataSubset. The parameter data is empty (it is a dictionary of 0 items {}), but the totalCount is > 0 (because if it is 0 it displays the error " A null parameter has been passed."). 

    An empty row is displayed, but I would really like to have no rows at all and just the emptyGridMessage displayed.


    Did you manage to find the way? I can only think that I should have 2 different grids, and display one or another depending if the data is null or not...

Reply
  • 0
    Certified Associate Developer
    in reply to AKASH T

    Exactly, I am experiencing this problem.

    The source of my grid is a dataSubset. The parameter data is empty (it is a dictionary of 0 items {}), but the totalCount is > 0 (because if it is 0 it displays the error " A null parameter has been passed."). 

    An empty row is displayed, but I would really like to have no rows at all and just the emptyGridMessage displayed.


    Did you manage to find the way? I can only think that I should have 2 different grids, and display one or another depending if the data is null or not...

Children
No Data