MB6-894 · Question #30
You are writing a method to update the Customer reference field on a Sales order table record. You begin by writing the following code: class ExampleClass { /// <summary> /// Update the Customer…
The correct answer is C. salesTable = SalesTable::find(_salesId, true); salesTable.CustomerRef = _customerRef. See the full explanation below for the reasoning.
Question
You are writing a method to update the Customer reference field on a Sales order table record. You begin by writing the following code:
class ExampleClass { /// <summary> /// Update the Customer reference field on the Sales orders table. /// </summary> /// <param name = "_salesId"> /// Sales order to update /// </param> /// <param name = "_customerRef"> /// Updated Customer reference value /// </param> public static void updateSalesTableCustomerReference(SalesId _salesId, CustRef _customerRef) { SalesTable salesTable; } } Which statement will complete the method?
Options
- AsalesTable = SalesTable::find(_salesId);
- Bupdate_recordset salesTable
- CsalesTable = SalesTable::find(_salesId, true); salesTable.CustomerRef = _customerRef;
- Dupdate_recordset salesTable
How the community answered
(33 responses)- A15% (5)
- B9% (3)
- C70% (23)
- D6% (2)
Community Discussion
No community discussion yet for this question.