<?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>topic Re: Quick hacks: Displaying fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/quick-hacks-displaying-fields/m-p/13892808#M2038987</link>
    <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_cat_face:"&gt;😺&lt;/span&gt;&lt;/P&gt;&lt;P&gt;P.S.: Never thought of you as lazy, but good to know&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 14:28:37 GMT</pubDate>
    <dc:creator>Dan_Wroblewski</dc:creator>
    <dc:date>2024-10-08T14:28:37Z</dc:date>
    <item>
      <title>Quick hacks: Displaying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quick-hacks-displaying-fields/m-p/13890486#M2038986</link>
      <description>&lt;P&gt;Like most developers, I'm very lazy and want to do things the neat, quick and cool way whenever I can. Today's quick hack is showing you how I very quickly display the fields of a data resource, whether it be on a list or on a detail page.&lt;/P&gt;&lt;P&gt;This hack is specifically for those text or number type fields that you don't want to style in any specific way, but want to just show with a label and the content below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Example of fields with label and value" style="width: 999px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/176162iA27E11ECF4A3A2FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-10-07 at 10.58.25.png" alt="Example of fields with label and value" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Example of fields with label and value&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Whenever I need to do this, I take the Object I want to display and do a nifty formula using MAP, KEYS and LOOKUP. The following example is done in a situation like above when the Object I want to display is repeated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;MAP(KEYS(repeated.current), {key: item, value: LOOKUP(repeated.current, item)})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't want all of the fields displayed (or want to display some fields in a different way), you can omit those fields using OMIT_KEYS formula, e.g.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;MAP(KEYS(OMIT_KEYS(repeated.current, ["id", "image"])), {key: item, value: LOOKUP(repeated.current, item)})&lt;/LI-CODE&gt;&lt;P&gt;In addition, you could of course for example style the field names (e.g. capitalizing with CAPITALIZE).&lt;/P&gt;&lt;P&gt;Hope this helps or gives you ideas for how to use formulas in your apps!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 08:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quick-hacks-displaying-fields/m-p/13890486#M2038986</guid>
      <dc:creator>merituulimelkko75</dc:creator>
      <dc:date>2024-10-07T08:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Quick hacks: Displaying fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quick-hacks-displaying-fields/m-p/13892808#M2038987</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_cat_face:"&gt;😺&lt;/span&gt;&lt;/P&gt;&lt;P&gt;P.S.: Never thought of you as lazy, but good to know&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 14:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quick-hacks-displaying-fields/m-p/13892808#M2038987</guid>
      <dc:creator>Dan_Wroblewski</dc:creator>
      <dc:date>2024-10-08T14:28:37Z</dc:date>
    </item>
  </channel>
</rss>

