【发布时间】:2020-03-23 14:02:17
【问题描述】:
我需要使用 BQL 从数据库中返回记录。我试过这样写 BQL 查询
TaxZone zone = PXSelectJoin<TaxZone, InnerJoin<LocationExtAddress, On<TaxZone.taxZoneID, Equal<LocationExtAddress.cTaxZoneID>>, InnerJoin<Customer, On<Customer.bAccountID, Equal<LocationExtAddress.bAccountID>>, Where<Customer.bAccountID, Equal<Current<Customer.BAccountID>>>;
我得到错误
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1525: Invalid expression term '<'
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1525: Invalid expression term ','
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1525: Invalid expression term ','
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1525: Invalid expression term ','
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1525: Invalid expression term ','
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(387): error CS1002: ; expected
我也尝试过像这样使用一个 DAC
Customer cust = PXSelect<Customer, Where<Customer.bAccountID, Equal<Current<Customer.bAccountID>>>;
我仍然收到错误
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1525: Invalid expression term '<'
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1525: Invalid expression term ','
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1002: ; expected
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1525: Invalid expression term '>'
\App_RuntimeCode\SOOrderEntry.cs(383): error CS1002: ; expected
Compiler time, in seconds: 21.1134712
非常感谢您对这个问题的任何帮助,因为我已经阅读了文档,这是支持编写的格式
【问题讨论】:
标签: acumatica