<?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: SAP C4C - How to trigger absl script when a row is selected in AdvancedListPane? in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599212#M13101</link>
    <description>&lt;P&gt;Hi Suchita,&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your quick and detailed answer.&lt;BR /&gt;I will try this and let you know if it worked.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Akash&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 05:15:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-04-12T05:15:57Z</dc:date>
    <item>
      <title>SAP C4C - How to trigger absl script when a row is selected in AdvancedListPane?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaq-p/599210</link>
      <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;&lt;BR /&gt;I need to develop a scenario where I need to hide some UI elements (Not in the Preview pane of ALP) whenever there is a specific text in "first column" of the selected row in ALP.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;What I have tried: &lt;/STRONG&gt;&lt;BR /&gt;Created an action that triggers using Event Handler on "OnValueChange" of the first column's data element which acts as deciding parameter. &lt;BR /&gt;Inside the custom action, I have made an indicator true or false depending on the value of first columns selected value.&lt;BR /&gt;Then in UI designer, under properties(of the element I need to hide), I selected Visible as Advanced and under Calculation Rule, wrote code to check the indicators data element I set earlier in the script to toggle the elements visibility true or false.&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;The Problem with my approach :&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;The script does not trigger when a new row is selected in ALP.&lt;BR /&gt;&lt;BR /&gt;I don't get why the script is not getting triggered even if I have an event handler set that triggers my custom action. Please help me if I am missing something obvious here.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Akash&lt;BR /&gt; &lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 06:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaq-p/599210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-04-11T06:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAP C4C - How to trigger absl script when a row is selected in AdvancedListPane?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599211#M13100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Since the trigger for the script is on value change of first column's data. it will trigger only when data in first column changes.&lt;/P&gt;
  &lt;P&gt;I do not get why it would trigger on the row selection as it is not set up for row selection.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;If you need an event triggered on a row's selection then&lt;/P&gt;
  &lt;P&gt;1) Make sure you maintain list type as singleselect in ALP properties&lt;/P&gt;
  &lt;P&gt;2) Go to Data Model -&amp;gt;Select the ALP DataList -&amp;gt; Select @HasLeadSelection field -&amp;gt; On properties tab, call eventhandler1 for OnValueChanged event&lt;/P&gt;
  &lt;P&gt;When user selects a row -&amp;gt; @HasLeadSelection get the row id of the selected row. As any other row is selected, the row id changes and therefore OnValueChange event triggers.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Create eventhandler1 in the controller where you use 1) Assign operation and assign the selected row's any column's data to a custom field/other field in Root or data list &amp;amp; then 2) Use "BOAction" operation &amp;amp; assign to your action.&lt;/P&gt;
  &lt;P&gt;In the action you use the logic based on the data from selected row's column of interest that was assigned to a customer/other field in Assign operation&lt;/P&gt;
  &lt;P&gt;This will make sure that you always get the value of interest from selected row in your eventhandler.&lt;/P&gt;
  &lt;P&gt;Please mark the Answer if this solves your problem.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;
  &lt;P&gt;Suchita&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599211#M13100</guid>
      <dc:creator>Suchita92</dc:creator>
      <dc:date>2018-04-11T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAP C4C - How to trigger absl script when a row is selected in AdvancedListPane?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599212#M13101</link>
      <description>&lt;P&gt;Hi Suchita,&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your quick and detailed answer.&lt;BR /&gt;I will try this and let you know if it worked.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Akash&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 05:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599212#M13101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-04-12T05:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAP C4C - How to trigger absl script when a row is selected in AdvancedListPane?</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599213#M13102</link>
      <description>&lt;P&gt;No problem. It will surely work if you follow the path suggested. I have done it several times &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Feel free to revert if you get any issue . Good Luck&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Suchita&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 05:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/sap-c4c-how-to-trigger-absl-script-when-a-row-is-selected-in/qaa-p/599213#M13102</guid>
      <dc:creator>Suchita92</dc:creator>
      <dc:date>2018-04-12T05:43:44Z</dc:date>
    </item>
  </channel>
</rss>

