acumatica
버전 간 중요한 API 변경 사항
수색…
Acumatica 5.1 및 5.2+의 PXSelectGroupBy 및 비트 값
Acquatica Framework 5.2에서 BQL PXSelectGroupBy<>
데이터보기의 SQL 생성 방법이 변경되었습니다.
아래 섹션에서는 PXSelectGroupBy<FinYear, Aggregate<GroupBy<FinYear.finPeriods>>>.Select(graph)
의 예제를 사용하여 차이점을 보여줍니다.
Acumatica Framework 5.2 이상
SELECT Max([finyear].[year]),
Max([finyear].[startdate]),
Max([finyear].[enddate]),
[finyear].[finperiods],
-- Attention!
CONVERT (BIT, Max([finyear].[customperiods] + 0)),
--
Max([finyear].[begfinyearhist]),
Max([finyear].[periodsstartdatehist]),
Max([finyear].[noteid]),
( NULL ),
( NULL ),
( NULL ),
Max([finyear].[tstamp]),
Max([finyear].[createdbyid]),
Max([finyear].[createdbyscreenid]),
Max([finyear].[createddatetime]),
Max([finyear].[lastmodifiedbyid]),
Max([finyear].[lastmodifiedbyscreenid]),
Max([finyear].[lastmodifieddatetime])
FROM finyear FinYear
WHERE ( finyear.companyid = 2 )
GROUP BY [finyear].[finperiods]
ORDER BY Max([finyear].[year])
Acumatica Framework 5.1 및 이전 버전
SELECT Max([finyear].[year]),
Max([finyear].[startdate]),
Max([finyear].[enddate]),
[finyear].[finperiods],
-- Attention!
( NULL ),
--
Max([finyear].[begfinyearhist]),
Max([finyear].[periodsstartdatehist]),
( NULL ),
( NULL ),
( NULL ),
Max([finyear].[tstamp]),
( NULL ),
Max([finyear].[createdbyscreenid]),
Max([finyear].[createddatetime]),
( NULL ),
Max([finyear].[lastmodifiedbyscreenid]),
Max([finyear].[lastmodifieddatetime])
FROM finyear FinYear
WHERE ( finyear.companyid = 2 )
GROUP BY [finyear].[finperiods]
ORDER BY Max([finyear].[year])
설명
기본적으로 Max()
집계는 BQL 문에 명시 적으로 언급되지 않은 모든 필드에 적용됩니다.
그러나 Acumatica 5.1 및 이전 버전에서는 CreatedByID
, LastModifiedByID
및 bool
필드가 제외되었습니다. SQL로 변환 할 때이 필드는 사용자가 명시 적으로 그룹화하지 않는 한 항상 null
입니다.
버전 5.2부터 Max()
가 기본적으로 적용됩니다.
Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow