Please create a read only slice called say “RO_Child_Slice” on the child table.
Please create a reverse reference virtual column in the parent table called say [Related Child_Table_RO] with an expression something like REF_ROWS(“RO_Child_Slice”, “UID”)
Now in the new reverse reference column in the parent table [Related Child_Table_RO] , please add a show_If condition of [Status] = “Closed”
Edit: In the existing reverse reference column in the parent table that must be having a name something like [Related Child_Tables] , please add a show_If condition of [Status] = “Open”
Essentially the app shows related child records from a read_write table or read only slice based on the [Status] column.
Hi Suvrutt.. thank you for the detailed inputs and the Edit.. finally got it to work, as follows -
created a ready only slice of the child table. (in case anyone else is wondering, the slice does not require any filter condition; it’s simply a copy of the existing table, albeit read only)
added one more virtual ref_row column to the parent table, referring to the slice.
set the show if of the original virtual ref_row column to [Status]<>“Closed”.
set the show if of the new virtual ref_row column to [Status]=“Closed”.
For the child table (Add & Updates permitted), the system automatically generated Detail, Form & Inline views (which I could tweak). Similarly for other slices made from the parent table, D, F & I views were auto generated. Strangely, for the Read Only slice of the child table, no views were auto-generated. Therefore, I created Inline & Detail reference views, which I could tweak to match D, F & I views of the child table.
Conclusion - Inline views of “not-closed” parent rows look exactly like those of “closed” rows.