Adobe
9A0-182 · Question #81
You have a List control that is populated with product XML data. The product data includes the name and price of the product. You want the name and the price values to appear concatenated in the…
The correct answer is A. Create a custom ItemRenderer to display the data B. Use the labelFunction property of the List control. See the full explanation below for the reasoning.
Question
You have a List control that is populated with product XML data. The product data includes the name and price of the product. You want the name and the price values to appear concatenated in the label field of the List. You do NOT want to affect the underlying data. The name and price values are separate nodes in the XML. Which two approaches could be used to achieve the desired result (Choose two)?
Options
- ACreate a custom ItemRenderer to display the data
- BUse the labelFunction property of the List control
- CBind the dataProvider property of the List to an E4X statement with the XML
- DSpecify "{name} {price}" in the labelField property of the List control
- ECreate a custom style for the List control to display the data
How the community answered
(51 responses)- A80% (41)
- C12% (6)
- D2% (1)
- E6% (3)
Community Discussion
No community discussion yet for this question.