My FNZ Studio Version

Screen-Driven Model

Latest Update: 15.02.2022 |
Recipe
2024
2023
2022.2
2022.1
11
10
9
8
7

Problem

I have an Info Table on my Screen which is being rendered with columns shown below each other (that is, in mobile/compact view). However, there are some empty cells in a couple of columns, which makes the Table look a bit odd when it's rendered this way. Is it possible to adjust how Appway deals with rendering these empty cells, especially when it comes to smaller screens?

Solution

Consider that this solution is only applicable if the Info Table uses Legacy Styles. It is not applicable if the component uses the Info Table Style Business Object (available for Appway 8.1 and higher).

When you have empty cells in an Info Table, there is indeed a visual "dissonance" between when such Tables are rendered normally, and when those Tables are rendered for display on smaller screens. This narrower mobile/compact style may also be seen when an Info Table is included in a sidebar, for example.

Info Tables rendered in tabular mode just show empty cells when the values are missing, like you'd expect. Check out the second cell in the second column in the screenshot below.

It's empty, and that's fine. However, for mobile/compact style Info Tables, showing empty cells looks a bit odd. Here's the same table:

When the table is shown like this, could the empty cell simply not be rendered, giving the table a much more cohesive look?

Yes: Fortunately, there is a way to get the mobile/compact style Info Table to look the way you want to.

Unfortunately, it's a bit cumbersome, and only works if you don't need it to switch between tabular and mobile/compact style (e.g. if your Info Table is in a sidebar, and never shown wider than that).

It relies on the fact that, when you have multiple mobile/compact style Info Tables in the same parent component, they will align header widths with each other.

What does that mean? Here's an example. Let's say you're adding an Info Table to a Screen, and rendering it mobile/compact style.

Then you add some more stuff below that Info Table, including another Info Table with longer headers.

Notice how this affects the original Info Table with short headers? Even though the headers are much shorter than those of the Info Table below it, more space between the header and the cell content has been added so that the two Info Tables look properly aligned.

We can use this behavior when solving our empty cell problem. Typically, Info Tables are designed like this, with a For Each component that prints out multiple table rows.

What we want to do instead is to print out a full Info Table in the For Each component, and then only show the header and value cells when the value isn't empty.

Let's go back to the original problem. We wanted to get rid of the header label displayed next to an empty value.

With our new approach of rendering multiple Info Tables, the rendered Screen now looks like this:

The approach described above also applies if you have multiple mobile/compact style Info Tables with completely different columns. The width adjustment feature is a generic feature; it doesn't matter that the two tables had the same headers in my example. All the mobile/compact style tables that are in a common parent are width-adjusted.
© 2026 Appway AG. All Rights Reserved