James
How do I pass values through a render hook?
You can add the record id in the getRenderHookScopes method of (e.g.) the ViewRecord class, so put in something like:
So then in the render hook you can access that id like:
It's nasty, and I wil be adding some more checks to this to prevent crashes etc. but the idea works.
7 replies
Access the current tenant in the importer resolveRecord() method
You can set options on the action, which are serialized in the jobs table and can be accessed via the importer $this->options, so you can set the tenant_id there:
https://discord.com/channels/883083792112300104/1179875310221660251/1235250103284138004
8 replies
ImportAction in combination with tenancy
public function resolveRecord(): ?Participant
{
$participant = Participant::firstOrNew([
'email' => $this->data['email'],
]);
$participant->trial_id = $this->options['tenant_id'];
return $participant;
}
9 replies
Any one who how to Freeze Table Column or Row
using position: sticky and left to freeze column. You also have to set the bg colour. It's not perfect with bg in dark mode unfortuantely as the header has a transparent shade rather than a fixed colour, but this looks good enough....
8 replies