<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Display Relational Attributes Field on BackOffice in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaa-p/12434255#M433033</link>
    <description>&lt;P&gt;Hi Brunato,&lt;/P&gt;&lt;P&gt;Already label is available for PointOfService in basecommercebackoffice-backoffice-config.xml&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;context type="PointOfService" component="base" merge-by="type" parent="GenericItem"&amp;gt;
        &amp;lt;y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris"&amp;gt;
            &amp;lt;y:labels&amp;gt;
                &amp;lt;y:label&amp;gt;name&amp;lt;/y:label&amp;gt;
            &amp;lt;/y:labels&amp;gt;
        &amp;lt;/y:base&amp;gt;
    &amp;lt;/context&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We have another option with cell renderer spring-bean configuration. You can check OOTB &lt;/P&gt;&lt;P&gt;&lt;EM&gt;AbstractMedia &lt;/EM&gt;&lt;EM&gt;syncStatus attribute &lt;/EM&gt;&lt;EM&gt;list view &lt;/EM&gt;configuration.&lt;/P&gt;&lt;P&gt;&amp;lt;list-view:columnqualifier=&lt;EM&gt;"syncStatus" &lt;/EM&gt;spring-bean=&lt;EM&gt;"syncStatusCellRenderer" &lt;/EM&gt;label=&lt;EM&gt;"syncstatus.column.label"&lt;/EM&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;StandardCurrencyListViewRenderer&lt;/P&gt;&lt;P&gt;&amp;lt;list-view:columnqualifier=&lt;EM&gt;"totalPrice"&lt;/EM&gt;spring-bean=&lt;EM&gt;"standardCurrencyListViewRenderer"&lt;/EM&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 04:24:48 GMT</pubDate>
    <dc:creator>former_member632827</dc:creator>
    <dc:date>2021-04-12T04:24:48Z</dc:date>
    <item>
      <title>Display Relational Attributes Field on BackOffice</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaq-p/12434254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I'm new with SAP Commerce and i have this problem: &lt;/P&gt;
  &lt;P&gt;i have the following relation:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;relation code="Cooperative2PointOfService" autocreate="true" generate="true" localized="false"&amp;gt;
    &amp;lt;sourceElement qualifier="cooperative" type="Cooperative" cardinality="one"&amp;gt;
        &amp;lt;modifiers optional="false" initial="true"/&amp;gt;
    &amp;lt;/sourceElement&amp;gt;
    &amp;lt;targetElement qualifier="pointOfService" type="PointOfService" cardinality="many"&amp;gt;
        &amp;lt;modifiers partof="true"/&amp;gt;
    &amp;lt;/targetElement&amp;gt;
&amp;lt;/relation&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;So in the backoffice-config.xml for the Cooperative's backoffice page i display the PointOfService list in this way:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;context merge-by="type" type="Cooperative" component="listview"&amp;gt;
   &amp;lt;list-view:list-view xmlns:list-view="http://www.hybris.com/cockpitng/component/listView"&amp;gt;
      &amp;lt;list-view:column qualifier="pointOfService"/&amp;gt;
   &amp;lt;/list-view:list-view&amp;gt;
&amp;lt;/context&amp;gt;
&amp;lt;context type="pointOfService" component="base"&amp;gt;
   &amp;lt;y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris"&amp;gt;
      &amp;lt;y:labels&amp;gt;
         &amp;lt;y:label&amp;gt;pointOfService&amp;lt;/y:label&amp;gt;
      &amp;lt;/y:labels&amp;gt;
   &amp;lt;/y:base&amp;gt;
&amp;lt;/context&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The problem is that in this way i display the list of the pointOfServiceModel(pk) like following screenshot:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1911637-cvg4x.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But i would like to display the attribute pointOfService.name.&lt;/P&gt;
  &lt;P&gt;I've already tried to wrtite "pointOfService.name" instead of "pointOfService" in both xml components but this does not work....&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1911638-l4vrf.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Anyone can tell me the rigth way to show pointOfService.name in the list view?&lt;/P&gt;
  &lt;P&gt;Thank you for help.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Apr 2021 11:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaq-p/12434254</guid>
      <dc:creator>former_member748269</dc:creator>
      <dc:date>2021-04-11T11:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display Relational Attributes Field on BackOffice</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaa-p/12434255#M433033</link>
      <description>&lt;P&gt;Hi Brunato,&lt;/P&gt;&lt;P&gt;Already label is available for PointOfService in basecommercebackoffice-backoffice-config.xml&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;context type="PointOfService" component="base" merge-by="type" parent="GenericItem"&amp;gt;
        &amp;lt;y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris"&amp;gt;
            &amp;lt;y:labels&amp;gt;
                &amp;lt;y:label&amp;gt;name&amp;lt;/y:label&amp;gt;
            &amp;lt;/y:labels&amp;gt;
        &amp;lt;/y:base&amp;gt;
    &amp;lt;/context&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We have another option with cell renderer spring-bean configuration. You can check OOTB &lt;/P&gt;&lt;P&gt;&lt;EM&gt;AbstractMedia &lt;/EM&gt;&lt;EM&gt;syncStatus attribute &lt;/EM&gt;&lt;EM&gt;list view &lt;/EM&gt;configuration.&lt;/P&gt;&lt;P&gt;&amp;lt;list-view:columnqualifier=&lt;EM&gt;"syncStatus" &lt;/EM&gt;spring-bean=&lt;EM&gt;"syncStatusCellRenderer" &lt;/EM&gt;label=&lt;EM&gt;"syncstatus.column.label"&lt;/EM&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;StandardCurrencyListViewRenderer&lt;/P&gt;&lt;P&gt;&amp;lt;list-view:columnqualifier=&lt;EM&gt;"totalPrice"&lt;/EM&gt;spring-bean=&lt;EM&gt;"standardCurrencyListViewRenderer"&lt;/EM&gt;/&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 04:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaa-p/12434255#M433033</guid>
      <dc:creator>former_member632827</dc:creator>
      <dc:date>2021-04-12T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display Relational Attributes Field on BackOffice</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaa-p/12434256#M433034</link>
      <description>&lt;P&gt;I had a similar problem (1:n relation between productchangelog and product) and solved it like this in our extensions' backoffice config xml:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;context merge-by="type" type="ProductChangeLog" component="base" parent="GenericItem"&amp;gt;&lt;BR /&gt;    &amp;lt;y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris"&amp;gt;&lt;BR /&gt;        &amp;lt;y:labels&amp;gt;&lt;BR /&gt;            &amp;lt;y:label&amp;gt;modifiedtime + ' - ' + @labelService.getObjectLabel(product)&amp;lt;/y:label&amp;gt;&lt;BR /&gt;        &amp;lt;/y:labels&amp;gt;&lt;BR /&gt;    &amp;lt;/y:base&amp;gt;&lt;BR /&gt;&amp;lt;/context&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jan 2022 10:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/display-relational-attributes-field-on-backoffice/qaa-p/12434256#M433034</guid>
      <dc:creator>jseidl</dc:creator>
      <dc:date>2022-01-24T10:03:54Z</dc:date>
    </item>
  </channel>
</rss>

