Cyber Monday 2024! 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
2 months ago
I prefer option C because it allows for more flexibility in customizing the logic.
upvoted 0 times
...
Jutta
2 months ago
I disagree, I believe option B is more appropriate.
upvoted 0 times
...
Maryann
2 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
1 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
2 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
2 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
2 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
3 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
3 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
2 months ago
Definitely, adding an attribute class to the column node is the way to go.
upvoted 0 times
...
Tasia
2 months ago
Yeah, creating a custom class and adding the logic in prepareDataSource method makes sense.
upvoted 0 times
...
Oretha
2 months ago
I agree, Option B seems like the best choice.
upvoted 0 times
...
...
Goldie
3 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
1 months ago
Salina: Definitely, following these steps will ensure the new column is formatted correctly in the customers grid.
upvoted 0 times
...
Bok
1 months ago
Agreed, also adding an attribute class to the column node in customer_listing.xml is important.
upvoted 0 times
...
Salina
2 months ago
Yeah, extending the Column class and adding custom logic in prepareDataSource is the best practice.
upvoted 0 times
...
Carmen
2 months ago
I think Option B is the way to go.
upvoted 0 times
...
...
Beth
3 months ago
I think option A is the best choice.
upvoted 0 times
...
Anabel
3 months ago
Option B seems to be the most comprehensive approach, covering all the necessary steps.
upvoted 0 times
Mindy
2 months ago
Agreed, it seems like the most comprehensive approach for adding custom logic to render the column.
upvoted 0 times
...
Tina
3 months ago
I think option B is the way to go, it covers all the necessary steps.
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77