static void TestingService(Args _args)
{
PurchPurchReqService customerService; // Customer Service class
CustCustomer customer; // Customer Document object
PurchPurchReq customerRead; // Customer Document object
CustCustomer_CustTable custTable; // CustTable data object
CustCustomer_CustTable custTableRead; // CustTable data object
AifEntityKeyList entityKeyList; // Entity key list
AifEntityKeyList entityKeyListFind; // Entity key list
AifQueryCriteria queryCriteria;
AifCriteriaElement criteriaElement;
AccountNum accountNum;
// Create the service instance
customerService = PurchPurchReqService::construct();
queryCriteria = new AifQueryCriteria();
criteriaElement = AifCriteriaElement::newCriteriaElement('VendPurchOrderJour', 'PurchId', AifCriteriaOperator::Equal, 'US1PO0000440');
queryCriteria.addCriteriaElement(criteriaElement);
entityKeyListFind = customerService.findKeys(queryCriteria);
// Read Customer using returned entity key
customerRead = customerService.read(entityKeyListFind);
info(customerRead.serialize());
//custTableRead = customerRead.parmCustTable().get_Item(0);
//info(strfmt("Read customer: Account Number: %1, Name: %2.", custTableRead.parmAccountNum(), custTableRead.parmName()));
}
{
PurchPurchReqService customerService; // Customer Service class
CustCustomer customer; // Customer Document object
PurchPurchReq customerRead; // Customer Document object
CustCustomer_CustTable custTable; // CustTable data object
CustCustomer_CustTable custTableRead; // CustTable data object
AifEntityKeyList entityKeyList; // Entity key list
AifEntityKeyList entityKeyListFind; // Entity key list
AifQueryCriteria queryCriteria;
AifCriteriaElement criteriaElement;
AccountNum accountNum;
// Create the service instance
customerService = PurchPurchReqService::construct();
queryCriteria = new AifQueryCriteria();
criteriaElement = AifCriteriaElement::newCriteriaElement('VendPurchOrderJour', 'PurchId', AifCriteriaOperator::Equal, 'US1PO0000440');
queryCriteria.addCriteriaElement(criteriaElement);
entityKeyListFind = customerService.findKeys(queryCriteria);
// Read Customer using returned entity key
customerRead = customerService.read(entityKeyListFind);
info(customerRead.serialize());
//custTableRead = customerRead.parmCustTable().get_Item(0);
//info(strfmt("Read customer: Account Number: %1, Name: %2.", custTableRead.parmAccountNum(), custTableRead.parmName()));
}
No comments:
Post a Comment