Hello all,
I have a question regarding minOccurs and maxOccurs in XSD schemas generated by AX 2012 R2. By default, all element nodes (not values) are always considered to use minOccurs = 0 and maxOccurs = "unbounded", I have created a sample query (designed for a outbound document) to illustrate this.
This query based on CustTable has two sub data sources, CustTrans and CustGroupInfo. CustTrans is set to FetchMode = 1:n/JoinMode = OuterJoin and CustGroupInfo is set to FetchMode = 1:1/JoinMode = InnerJoin.
When I view the schema, both CustTrans and CustGroupInfo are set to minOccurs = 0 and maxOccurs = unbounded.
The "most" logic thing here would be that CustGroupInfo is set to minOccurs = 1 and maxOccurs = 1.
Is it possible to override this behaviour from the query in the document classes and set minOccurs and maxOccurs manually?
Kind regards,
Tobias