__init__() missing 1 required argument: 'row'

I’m trying to link the Medicines page to a link in the Base.

I tried to add the ‘row’ to the initialization of medicines_link_click and to the openform(), but I still get an error. I also tried adding it to the top where the main initialization is, but I get the same error. I don’t know what I’m doing wrong here.

def medicines_link_click(self, **event_args):
“”“This method is called when the link is clicked”""
open_form(‘Medicines’)

https://anvil.works/build#clone:QYMBON3FCI6GPUUL=66EOLRYQSWUNC2U5BGH6GJZI

If you add an argument to the init method of a form, you must then provide that argument when you open the form, e.g. open_form('Medicines', row=whatever)

4 Likes