When creating the objects do this from a microflow and make sure to set the association between the 2, then open a page displaying a dataview of object 1 and nested in this data view a dataview with object 2 via association.
Do make sure that in the nested dataview the association is not shown in a field on the page as this will be cleared when the objects aren’t committed yet (at least this was the case in versions 7&8).
Then the user enters the data for both objects in the various fields and presses the save button on the other dataview and this should commit both entity 1 and 2 and keep the association in place.
Hope this is clear and solves your challenge.