If I want to use an XPage as subform, and I use the IncludePage control, I don't know how to define a datasource or bind fields to the single datasource of the main XPage.
It's easy to have the embedded Xpage have its own separate datasource and then write to fields on a separate document, but how do I simply save the value of fields to the current document when I take an action/click the submit button? (i.e. I'm not using multiple datasources)
This is the code on the Main xpage:
<xp:include pageName="/P1.xsp" id="include2">
</xp:include>
On the P1 xpage I just don't know how to define the datasource the same (document1).