diff --git a/DIST/XLSReport_mx8_6.1.6.mpk b/DIST/XLSReport_mx8_6.1.6.mpk new file mode 100644 index 0000000..6ae08ae Binary files /dev/null and b/DIST/XLSReport_mx8_6.1.6.mpk differ diff --git a/javasource/xlsreport/report/DataOQL.java b/javasource/xlsreport/report/DataOQL.java index a7bed6b..09343ee 100644 --- a/javasource/xlsreport/report/DataOQL.java +++ b/javasource/xlsreport/report/DataOQL.java @@ -11,6 +11,7 @@ import com.mendix.systemwideinterfaces.connectionbus.data.IDataTable; import com.mendix.systemwideinterfaces.connectionbus.requests.types.IOQLTextGetRequest; import com.mendix.systemwideinterfaces.core.IContext; +import com.mendix.systemwideinterfaces.core.IMendixIdentifier; import com.mendix.systemwideinterfaces.core.IMendixObject; import mxmodelreflection.proxies.MxObjectMember; import mxmodelreflection.proxies.MxObjectType; @@ -113,14 +114,23 @@ private String createOQLQuery(MxSheet mxSheet, IMendixObject inputObject, List fullPath = new ArrayList(); + while (nPath != null) + { + switch (nPath.getRetrieveType()) + { + case Attribute: + fullPath.add(nPath.getMxXPath_MxObjectMember().getAttributeName()); + break; + + case Reference: + fullPath.add(nPath.getMxXPath_MxObjectReference().getCompleteName()); + fullPath.add(nPath.getMxXPath_MxObjectType().getCompleteName()); + break; + } + nPath = nPath.getMxXPath_ParentMxXPath(); + } + return String.join("/", fullPath); + } + public long getStyleGuid() { return styleGuid;