<?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: How to add validation on Save action in backoffice in CRM and CX Q&amp;A</title>
    <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-add-validation-on-save-action-in-backoffice/qaa-p/12081716#M410863</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;You have to write render class for your's fields in editor area.With render class and ZK action events to able to validate the render fields.Please check OOTB password rendered.&lt;/P&gt;
&lt;P&gt;UserPasswordPanelRenderer.java&lt;/P&gt;
&lt;P&gt;Class Usage :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;         &amp;lt;editorArea:tab name="hmc.password" position="7" tooltipText="customersupport_backoffice_customer_tab_password_desc"&amp;gt;
             &amp;lt;editorArea:section name="hmc.password"&amp;gt;
                 &amp;lt;editorArea:customPanel name="userPasswordPanelRenderer" spring-bean="userPasswordPanelRenderer"/&amp;gt;
                 &amp;lt;editorArea:panel name=""&amp;gt;
                     &amp;lt;editorArea:attribute qualifier="passwordQuestion" description="hmc.text.passwordQuestion.description"/&amp;gt;
                     &amp;lt;editorArea:attribute qualifier="lastLogin" description="hmc.text.lastLogin.description"/&amp;gt;
                     &amp;lt;editorArea:attribute qualifier="loginDisabled" label="hmc.text.password.logindisabled"/&amp;gt;
                 &amp;lt;/editorArea:panel&amp;gt;
             &amp;lt;/editorArea:section&amp;gt;
         &amp;lt;/editorArea:tab&amp;gt;
         
         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For notifications use NotificationService.java
&lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 15:57:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-10-06T15:57:50Z</dc:date>
    <item>
      <title>How to add validation on Save action in backoffice</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-add-validation-on-save-action-in-backoffice/qaq-p/12081715</link>
      <description>&lt;P&gt;Like in create-wizard we can add some validation rules which make the navigation buttons unavailable if for example some fields are not filled. &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1720294-11527-capture.png" /&gt; &lt;/P&gt;
&lt;P&gt;Does anyone how to use the validation mechanism in editor area?&lt;/P&gt;
&lt;P&gt;The fields of data model are marked as mandatory and when the user don't fill them the default message appears.&lt;/P&gt;
&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1720315-11528-notification.png" /&gt; &lt;/P&gt;
&lt;P&gt;How to manage this notification?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 12:10:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-add-validation-on-save-action-in-backoffice/qaq-p/12081715</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-06T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to add validation on Save action in backoffice</title>
      <link>https://community.sap.com/t5/crm-and-cx-q-a/how-to-add-validation-on-save-action-in-backoffice/qaa-p/12081716#M410863</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;You have to write render class for your's fields in editor area.With render class and ZK action events to able to validate the render fields.Please check OOTB password rendered.&lt;/P&gt;
&lt;P&gt;UserPasswordPanelRenderer.java&lt;/P&gt;
&lt;P&gt;Class Usage :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;         &amp;lt;editorArea:tab name="hmc.password" position="7" tooltipText="customersupport_backoffice_customer_tab_password_desc"&amp;gt;
             &amp;lt;editorArea:section name="hmc.password"&amp;gt;
                 &amp;lt;editorArea:customPanel name="userPasswordPanelRenderer" spring-bean="userPasswordPanelRenderer"/&amp;gt;
                 &amp;lt;editorArea:panel name=""&amp;gt;
                     &amp;lt;editorArea:attribute qualifier="passwordQuestion" description="hmc.text.passwordQuestion.description"/&amp;gt;
                     &amp;lt;editorArea:attribute qualifier="lastLogin" description="hmc.text.lastLogin.description"/&amp;gt;
                     &amp;lt;editorArea:attribute qualifier="loginDisabled" label="hmc.text.password.logindisabled"/&amp;gt;
                 &amp;lt;/editorArea:panel&amp;gt;
             &amp;lt;/editorArea:section&amp;gt;
         &amp;lt;/editorArea:tab&amp;gt;
         
         
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For notifications use NotificationService.java
&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 15:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/crm-and-cx-q-a/how-to-add-validation-on-save-action-in-backoffice/qaa-p/12081716#M410863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-06T15:57:50Z</dc:date>
    </item>
  </channel>
</rss>

