Can I have multiple inline views for a detail...

Anke_H
New Member

Can I have multiple inline views for a detail table and control which one to use based on a value in the parent row? For instance, the parent table has a [sortBy] column with the name of the column to sort by and to display in the inline view.

I was not able to figure out how I can a) use variables in โ€œSort byโ€ and โ€œColumn orderโ€ of the inline view b) control which inline view to use based on a parent value in โ€œShow_ifโ€

Thanks, Anke

1 3 1,388
3 REPLIES 3

You can have a different view based the inline table (detail table) and set that viewโ€™s position to Ref, then the inline view will show that Ref view which could have a custom Sort Order or Column Order, but you cannot variably change Column Order or Sort By, however in table view tap/click on column header will change the sort by too.

Regarding Show_if, you can use CONTEXT(โ€œViewโ€) function to check what the current parent viewโ€™s name is.

Check out this article: http://help.appsheet.com/expressions/expression-types/other-expressions

Anke_H
New Member

@RezaRaoofi Thanks for getting back to me Reza. I already have a custom view with the Context(โ€œViewโ€) condition but the problem is I need multiple different inline tables, each showing a different child column depending on a value in the parent record. So I was hoping for a way to either access the parentโ€™s record value in the inline tableโ€™s show_if condition or somehow pass in some other value to use it for the show_if condition. Having slept over this a night, I think I need to create different slices for each of the columns which then have different names with different views associated to them. Iโ€™ll try that approach today.

Well, it was not clear to me whether you were asking how to make more than one inline view, or you already had multiple inline views, and you were wondering how to show/hide them.

Regarding how to make them, like you mentioned in your previous comment, yes, you need a Slice based on the same detail table for each additional inline view, and then use REF_ROWS() function in a Virtual Column referring to that slice.

As for showing/hiding them; you can have different views for parent table, and check that viewโ€™s name in the Virtual Columnโ€™s Show_if using CONTEXT(โ€œViewโ€) function.

Top Labels in this Space