Hi All,
If you know this,would you please let me know the solution ASAP ?
In fact, I am facing to get 2 queries pattern using FindOrCreateRange of SysQuery class between standard field and custom field now.
1.Add custom field into SalesQuotationTable by extension field.
2.A custom field have many data currently.
3.Made range using SysQuery::findOrCreate method as below,
range = SysQuery::findOrCreateRange(_query.dataSourceName("SalesQuotationTable"), fieldNum(SalesQuotationTable, PrjBasicNo));
range.value(SysQuery::value(sPrjBasicNo));
4.However, As a result, I got an record on the Grid of SalesQuotationListPage form.
The Query is
SELECT
FIRSTFAST FORUPDATE *
FROM
SalesQuotationTable(SalesQuotationTable) ORDER BY SalesQuotationTable.QuotationId ASC
WHERE
((PrjBasicNo = N'12345')) AND
SalesQuotationTable.QuotationId=SalesQuotationTable.QuotationId OUTER JOIN FORUPDATE * FROM smmBusRelTable(smmBusRelTable) ON SalesQuotationTable.BusRelAccount = smmBusRelTable.BusRelAccount OUTER JOIN FORUPDATE * FROM CustTable(CustTable) ON SalesQuotationTable.CustAccount = CustTable.AccountNum OUTER JOIN FORUPDATE * FROM ProjTable(ProjTable_1) ON SalesQuotationTable.ProjIdRef = ProjTable.ProjId OUTER JOIN FORUPDATE * FROM HierarchyLinkTable(HierarchyLinkTable) ON SalesQuotationTable.TableId = HierarchyLinkTable.RefTableId AND
SalesQuotationTable.RecId = HierarchyLinkTable.RefRecId OUTER JOIN FORUPDATE * FROM Hierarchy(Hierarchy) ON HierarchyLinkTable.HierarchyId = Hierarchy.HierarchyId

Table as below,

However, In standard field, there is no problem as below,
ELECT
FIRSTFAST FORUPDATE *
FROM
SalesQuotationTable(SalesQuotationTable) ORDER BY SalesQuotationTable.QuotationId ASC
WHERE
((QuotationStatus = 1)) OUTER JOIN FORUPDATE * FROM smmBusRelTable(smmBusRelTable) ON SalesQuotationTable.BusRelAccount = smmBusRelTable.BusRelAccount OUTER JOIN FORUPDATE * FROM CustTable(CustTable) ON SalesQuotationTable.CustAccount = CustTable.AccountNum OUTER JOIN FORUPDATE * FROM ProjTable(ProjTable_1) ON SalesQuotationTable.ProjIdRef = ProjTable.ProjId OUTER JOIN FORUPDATE * FROM HierarchyLinkTable(HierarchyLinkTable) ON SalesQuotationTable.TableId = HierarchyLinkTable.RefTableId AND
SalesQuotationTable.RecId = HierarchyLinkTable.RefRecId OUTER JOIN FORUPDATE * FROM Hierarchy(Hierarchy) ON HierarchyLinkTable.HierarchyId = Hierarchy.HierarchyId


I think the difference is No.4 red line. Why is added this "AND
SalesQuotationTable.QuotationId=SalesQuotationTable.QuotationId"
I have no idea this issue so , Would you please let me know any hint or solution? Otherwise, Te Custom field can not getting multi data on the grid?
Thanks in advance.