<< Prev Question Next Question >>

Question 27/29

You have these example item types defined in myext-items.xml: What additional steps are needed to support the identification attribute?
< ?xml version="l.O" encoding="IS0-8859-1"? >
<items>
< itemtype code=" Passport" autocreate="true" generate="true" >
< deployment typecode="8995" table="passport" />
< attributes > ... </attributes>
< /itemtype >
< itemtype code="Student" extends="Customer" autocreate="true" generate="true" >
< attributes >
< attribute type="localized:Passport" qualifier="identification" >
< persistence type="property" />
< /attribute >
</attributes>
< /itemtype >
</items>
What additional steps are needed to support the identification attribute?
Define a one-to-many relation between Student and Passport using a relation tag with parameter locaIized="true".
Add a maptype tag for localized:Passport with parameters argumenttype="Language" and returntype="Passport".
Run an ant updatesystem command. A passportlp table will be generated to store the localized property values.
Define a localized Passport attribute for the Student type in myext/resources/localization/myext- locales_XY. properties.

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (29q)
Question 1: In personalization (based on SmartEdit), you want to configu...
Question 2: You need to add a new Cockpit to the Backoffice to implement...
Question 3: How is the primary key (PK) for an SAP Commerce Cloud item c...
Question 4: What Solr index operation uses the indexedProperties field o...
Question 5: Your solution has been live for a significant period of time...
Question 6: Which configuration options are available on a cache region?...
Question 7: You are creating a new SolrlndexProperty as a facet and want...
Question 8: Which of the following steps could be included in the proces...
Question 9: Which of the following relations are defined in the data mod...
Question 10: When you define an aspect in your manifest.json file, what t...
Question 11: When are consignments created for an order in the default or...
Question 12: How many category items will the following ImpEx create? $pr...
Question 13: What is the recommended way to deploy Solr in a production e...
Question 14: You need to create a CronJob for an automated task that will...
Question 15: What are the advantages of using classification attributes? ...
Question 16: You have created your products and price rows using the appr...
Question 17: When a customer places an order using the default order mana...
Question 18: What does the Cloud Portal application enable you to do? Not...
Question 19: What causes item data to be invalidated in the SAP Commerce ...
Question 20: You are creating a product with a new feature using a classi...
Question 21: Which component configurations does the ServiceLayer archite...
Question 22: Which interface would you inject into your class to allow yo...
Question 23: How can you create asynchronous events in the SAP Commerce C...
Question 24: In an extension named myext, you defined Pump, a subtype of ...
Question 25: How does Spartacus compare to the SAP Commerce Cloud Acceler...
Question 26: When using Monitoring Support in the Integration API Module,...
Question 27: You have these example item types defined in myext-items.xml...
Question 28: You need to create a new custom promotion based on customer ...
Question 29: In an Accelerator-based storefront, which of the following w...