Get value of field from parent row

Hi, 

I only want to show the Add button under the related records list if the Status of the parent record is set to 'Draft'. The following is always returning false. Not sure what is wrong.

ANY(
  SELECT( TransferHeaders[Status],
    IN( [_THISROW], TransferHeaders[Related Transfers] ),
    TRUE )
) = "Draft"

Solved Solved
0 3 149
  • UX
1 ACCEPTED SOLUTION

Aurelien
Google Developer Expert
Google Developer Expert

Hi @StephenSaid 

You may want to use another path.

Here is a sample app to help you: Restrict_InlineAdd

Basically, you use a slice which is a copy of your inline table, with read-only permission.

Aurelien_6-1696794209277.png

And you create a twin-column of your [Related xxx], which will take its ref source to the slice.

Aurelien_5-1696794163981.png

Then, this is a condition to add on the show_if condition of these two columns.

Aurelien_4-1696794125121.png

 

Aurelien_3-1696794096221.png

Because of the restriction on the slice (which is read-only, hence without any add permission), the app won't display the "Add" button.

Result is here:

Aurelien_7-1696794258582.pngAurelien_8-1696794272960.png

 

 

 

View solution in original post

3 REPLIES 3

Aurelien
Google Developer Expert
Google Developer Expert

Hi @StephenSaid 

You may want to use another path.

Here is a sample app to help you: Restrict_InlineAdd

Basically, you use a slice which is a copy of your inline table, with read-only permission.

Aurelien_6-1696794209277.png

And you create a twin-column of your [Related xxx], which will take its ref source to the slice.

Aurelien_5-1696794163981.png

Then, this is a condition to add on the show_if condition of these two columns.

Aurelien_4-1696794125121.png

 

Aurelien_3-1696794096221.png

Because of the restriction on the slice (which is read-only, hence without any add permission), the app won't display the "Add" button.

Result is here:

Aurelien_7-1696794258582.pngAurelien_8-1696794272960.png

 

 

 

No way I would ever thought about this solution! Works wonderful.

Thanks

Happy to help 🙂

Top Labels in this Space