Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use SAP C4C rule editor to dynamically control whether a button is displayed on UI

Shulou Source: shulou.com Published: 2022-05-31 15:02:30 10月02日 Update

This article introduces the knowledge about "how to use SAP C4C rule editor to dynamically control whether a button is displayed on UI". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Suppose I want to control the dynamic display of this Trigger Delivery button based on the outbound delivery field of Sales Order:

First, Adapt- > Edit Master Layout enters Key user adjustment mode:

Mouse over the button and click this small wrench:

Click the Rule hyperlink

Go to the Rule editor:

Create a new rule named zoutbound_delivery:

Click IF in Functions:

The template for this Rule automatically appears in the Code area:

IF (logical_expression, value_if_true, value_if_false)

Next we just need to edit the conditional expression in turn, and then the value of the entire expression when the conditional expression is true and false.

Because my judgment condition is to detect whether the Outbound Delivery field has a value, select Outbound Delivery from the left Field Names, click, and the name of this field automatically appears in the middle conditional expression:

Finally, the following figure is completed:

Point Apply:

This is the end of the content of "how to use SAP C4C rule editor to dynamically control whether a button is displayed on UI". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Buttons conditions expressions dynamics controls fields next content more knowledge practicality learning regions names dilemmas facts situations wrenches articles cases Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi Huawei vpn Redmi