Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Possible to change minoccurs and maxoccurs in a AX schema?

$
0
0

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


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>