avo icon indicating copy to clipboard operation
avo copied to clipboard

Access parent record on child actions

Open Paul-Bob opened this issue 6 months ago • 1 comments

Context

2024-08-21_12-50

When running an action on an association there is no straightforward way to access the parent record.

Workaround

Passing parent record as argument as explained in detail here https://github.com/avo-hq/avo/discussions/3159#discussioncomment-10405595

Demo commit: https://github.com/avo-hq/avo/commit/b55d4e49e7e667ceb59e561222f12e5fc1eb117f

Approach

  • Document the workaround OR
  • Implement a way to access the parent record on actions def fields and def handle methods.

Paul-Bob avatar Aug 21 '24 09:08 Paul-Bob