[FIXED] Event links not made when copy/pasting between projects

Right, imagine you have a form in project A that reacts to the “Show” event.
Copy/Paste this form (first the design, then the code behind) into a new project (project B).

The Show event handler will not automatically be attached to the corresponding method in the code.

Ok, so let’s reattach it (by clicking the button next to the Show event in the form definition in project B). This correctly jumps to the copied code and appears to associate the code to the event.

Except it doesn’t. Nothing happens when you run the project. You have to modify the event handler code somehow (doesn’t matter what you do) to get Anvil to recognise the association.

I think that last bit is a bug for sure, but I also think it would be nice to have the event link copied too.

Hi David,

Regarding the form_show not firing - that is a bug. I have to modify form_show to get it to be registered. Moving to Bug Reports.

1 Like

Nice catch! A fix to this bug will go live in a few days.

1 Like