Microsoft
MB6-894 · Question #52
You are working in a model that extends the Application Suite model, and you want to modify the insert method on the SalesLine table using X++ logic. The code looks like the following…
The correct answer is D. Create a new class, and add a method that is a pre-event handler for the. See the full explanation below for the reasoning.
Question
You are working in a model that extends the Application Suite model, and you want to modify the insert method on the SalesLine table using X++ logic. The code looks like the following:
... salesLineType.inserted(); ... The salesLineTYpe.inserted() method appears as follows:
public void inserted() { } You need to create a class to run code prior to running the salesLineType.inserted() method in the SalesLineType.insert() method. What should you do?
Options
- ACreate a new class and extend the onlineserted event.
- BCreate a new class that extends the SalesLineType class. Overwrite the inserted method on your
- CCustomize the SalesLine table. Overwrite the insert() method and add your code immediately
- DCreate a new class, and add a method that is a pre-event handler for the
How the community answered
(45 responses)- A4% (2)
- B2% (1)
- C11% (5)
- D82% (37)
Community Discussion
No community discussion yet for this question.