Skip to Content
Author's profile photo Bejoy Jacob K

Introduction to SAP Hybris Cloud for Customer Rule Editor

This video gives an introduction to the New Rule Editor in SAP Hybris Cloud for Customer. This is a Beta Feature developed in 1608, to get this in your test tenant please raise a ticket.

Model Rule Editor Highlights:


  • Key User can define rules to change property of fields, sections, facets, action buttons.
  • Rule conditions shall be defined based on the available fields in the UI model.
  • Rules are executed only on client and not on server.
  • Since it is a client side logic so user has to write the logic on each screen.
  • Rules run online and offline as well.
  • Rules are applied on Master Layout.

Watch Using Model Rule Editor to create custom rules in SAP Hybris Cloud for Customer to see how to achieve an example business case

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Michael Kremser
      Michael Kremser

      Hi Bejoy,

      i don't understand the custom rule.

      I would like to set the property of a street name to uppercase. The "code" is:

      TOUPPER(Root.CurrentDefaultAddress.StreetName)

      The preview shows me the value in uppercase but in the end nothing changed.

      The description of the uppercase function says: "This function should convert to uppercase".

      Is that not possible or a bug in SAP C4C?

      Regards,
      Mike

      Author's profile photo Bejoy Jacob K
      Bejoy Jacob K
      Blog Post Author

      Hi Michael,
      Sorry for the later reply.

      The property you can change are Read-only, Mandatory, Visible. The functions like TOUPPER() is used to convert the value string to upper case and comparison.  The functions will not effect the value of the fields.

      Regards,
      Bejoy

       

      Author's profile photo Mark Carvalho
      Mark Carvalho

      HI Bejoy,

      What would you recommend for cases where we want to make the State field mandatory for multiple countries.  For example, the US, Canada, United Kingdom needs to have the state fields mandatory, but none others.  I've been able to write the  following for just one country and it works fine. but I've struggled with using 'OR' along with this.

       

      IF( Root.CurrentDefaultAddress.CountryCode =="US", ISBLANK( Root.CurrentDefaultAddress.RegionCode ) false)

       

      Regards,

      Mark