Use the filter in the page designer to retrieve values from the screen
Hello everyone, Since the 23R1, I've been using the "Filter" option in the page designer to condition enumeration values. Here's an example:
I'd like to be able to condition the list with a field available in the screen (for example: Contract). I've tried this syntax but I get an error:
Do you have a solution? Thanks in advance,
Page 1 / 1
Hi @TheoB,
You have to specify the condition in the ‘Case’ field and the subset of enumeration values that should be enabled if the condition evaluates successfully in the ‘Value’ field.
Please see the documentation on filtering enumerations conditionally here:
Looking at the documentation, I tried to compare the site value of the customer order by applying this condition:
But the value "record.Contract", is absolutely not replaced. Do you have another solution?
Hi @TheoB,
In order for me to better understand what you are trying to do here, could you please let me know on which form and for which attribute you are trying to do this? And on which condition, what values of the enumeration you need to show?
For an attribute that takes values from an enumeration, what you can specify is a semicolon separated list of values, as per the documentation.
But seems you have specified the condition in the value field in the screenshot you have attached.
Hello,
So here's what I want to do:
I've created a custom logical unit that contains 2 columns: - CF_INFORMATION - CF_SITE (which contains the site of my choice)
In the header of the "Customer Order" screen, I've created a custom reference field based on the view of my custom logical unit:
What I want to do with this field: Thanks to the "CF_SITE" field, I'd like to display only the values in my custom field corresponding to the order site (by making the link in the "Contract" field of the customer order and the "Cf_Site" field of my custom logical unit).
Do you have a solution? Thank you.
Hi @Charith Epitawatta ,
I’m trying to use the Filter but is not working, my goal is to choose the Car Model based on the Car Brand chose before.
I created a Custom Entity which has two Enumerations, Car Brand and Car Model.
In the Page designer I would like to apply the filter but it’s not working as expected, can you please advise?
Ps. if I put “true”, it shows me the list of the values I selected, but of course if I select FIAT, it will propose the same values.
@Charith Epitawatta I’m adding information:
It works perfectly if the field is String. What is the syntax to use for the Enum?
Thank you!
Update to all: I found the value! you can find it here: