How do I pass params from ctx.openView

in runJS, you can open a view programmatically via ctx.openView.
and let’s say that I have a JsAction button in the action column of my table.

// JsAction code that opens the view
const record = ctx.record; // this is the param that needs to be passed from this code
const popupUid = ctx.model.uid + '-1'; // popupUid should be stable and better bound to ctx.model.uid
await ctx.openView(popupUid, {
  mode: 'drawer',
  title: ctx.t('Sample drawer'),
  size: 'large',
});

and in the view, I will add a JS block, to capture the ctx.record that was passed

ctx.message.success(JSON.stringify(ctx.record)); // ctx.record will be null

Hello, I didn’t understand your question. Please provide more detailed examples.

in runJS, you can open a view programmatically via ctx.openView.
and let’s say that I have a JsAction button in the action column of my table.

// JsAction code that opens the view
const record = ctx.record; // this is the param that needs to be passed from this code
const popupUid = ctx.model.uid + '-1'; // popupUid should be stable and better bound to ctx.model.uid
await ctx.openView(popupUid, {
  mode: 'drawer',
  title: ctx.t('Sample drawer'),
  size: 'large',
});

and in the view, I will add a JS block, to capture the ctx.record that was passed

ctx.message.success(JSON.stringify(ctx.record)); // ctx.record will be null