Manish, I would try to follow some of the online courses on Mendix. See the website. Create a microflow where you retrieve the dataobject first (or create a new one) and then open the form. You can pass the object to this form.
Or on this form use a microflow as datasource where you do the same (retrieve or create the object you want to show).
Regards,
Ronald