Entity initial for the new bol component created

I created a new component using component workbench. Created a model node of bol entity BuilAddress and added 3 fields to the view through configuration. Added a button using the html page. In the event handler of the button Iam trying to access the value entered in those fields using the code.

  lr_entity ?= me->typed_context->mapaddress->collection_wrapper->get_current( ).

but lr_entity is always initial. I also checked the collection wrapper,it's also initial. Please let me know if Iam missing any step.

Thanks in advance.


Helpful Answer