Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 8 Question 34 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 34
Topic #: 8
[All AD0-E716 Questions]

An Adobe Commerce developer successfully added a new column to the customers grid. This column needs the data to be formatted before showing its content in the grid.

According to best practices, how would the developer add the custom logic to render the column?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Bong
10 months ago
I prefer option C because it allows for more flexibility in customizing the logic.
upvoted 0 times
...
Jutta
10 months ago
I disagree, I believe option B is more appropriate.
upvoted 0 times
...
Maryann
10 months ago
You know, this reminds me of the time I had to format a column that displayed customers' credit card numbers. Talk about a headache!
upvoted 0 times
Phillip
9 months ago
Oh wow, dealing with credit card numbers must have been challenging. It's important to handle sensitive data like that carefully.
upvoted 0 times
...
Lezlie
10 months ago
C) Override the Magento\\Customer\\Ui\\Component\\DataProvider Class using a preference. Override the getData() method and add the custom logic per row.
upvoted 0 times
...
Gennie
10 months ago
A) Create an after plugin for Magento\\Ui\\Component\\Listing\\Columns\\Column::prepareColumn(). Add the custom logic within the afterPrepareColumn method.
upvoted 0 times
...
Terina
10 months ago
B) Create a custom class extending Magento\\Ui\\Component\\Listing\\Columns\\Column. Add the custom logic within the prepareDataSource method. Add an attribute class to the column node within the module's customer_listing.xml.
upvoted 0 times
...
...
Kerry
10 months ago
Option B looks good, but I wonder if there's a way to do it without creating a custom class. Hmm, something to look into.
upvoted 0 times
...
Johnna
11 months ago
Haha, I bet the developer who wrote this question has dealt with their fair share of customer grids! Option B it is.
upvoted 0 times
Chan
10 months ago
Definitely, adding an attribute class to the column node is the way to go.
upvoted 0 times
...
Tasia
10 months ago
Yeah, creating a custom class and adding the logic in prepareDataSource method makes sense.
upvoted 0 times
...
Oretha
10 months ago
I agree, Option B seems like the best choice.
upvoted 0 times
...
...
Goldie
11 months ago
I agree with Anabel, the steps outlined in Option B align with best practices for extending the UI components.
upvoted 0 times
Isaiah
9 months ago
Salina: Definitely, following these steps will ensure the new column is formatted correctly in the customers grid.
upvoted 0 times
...
Bok
9 months ago
Agreed, also adding an attribute class to the column node in customer_listing.xml is important.
upvoted 0 times
...
Salina
10 months ago
Yeah, extending the Column class and adding custom logic in prepareDataSource is the best practice.
upvoted 0 times
...
Carmen
10 months ago
I think Option B is the way to go.
upvoted 0 times
...
...
Beth
11 months ago
I think option A is the best choice.
upvoted 0 times
...
Anabel
11 months ago
Option B seems to be the most comprehensive approach, covering all the necessary steps.
upvoted 0 times
Mindy
10 months ago
Agreed, it seems like the most comprehensive approach for adding custom logic to render the column.
upvoted 0 times
...
Tina
11 months ago
I think option B is the way to go, it covers all the necessary steps.
upvoted 0 times
...
...

Save Cancel