Hello, in this video I will talk about another feature. So then the This feature will be called list of values which are lists of values which are what does it mean? It means you can switch between list of values in one attribute you can define multiple lists of value over one attribute. And you can change or switch between this list to value depending on some condition at runtime. For example, in the employee table, there is this value of department. In the department ID we define this to value of departments.
So in the department ID you can define multiple lists to value each list of value returning specific departments. And depending on the MVP salary, you will decide which list of the department you want to pick, for example is the salary greeters and 5000. I need to get this specific departments if so salary List send 5000 I need to get another list offset department. Let's have a look on this to that you will have an idea what actually list values which are for example here here I create a list of very over the department, this is a bill we table this is a department you can see here some list of value of the department. So, if the salary is greater than 5000 for example, it is 6000 you will find here that these two values change it it gets more than what it was it is it taught me IT department Public Relations at so all this departments okay.
So if the salary is less than 5000 the list of value now we change it. So now the department resale value will be changing depending on the condition which is the salary is greater than or less than 5000. This is called List of value switcher. So, to implement this we have to create all view objects, which will be used to filter this list to value or we will create a view criteria we will create all lists to value offers this specific attribute in our case over the department ID in the employee view object. So, we will define two lists to value over the department ID in the view object and when it comes to salary, we will pick one of this list okay. Then I will create a transit attribute which will be used as a list of values which are this transit attribute we will use it as a switcher, which will decide which lists to value or should take.
Then we will configure this transit attribute to return the list of value names depending on the specific condition. So in our situation, this time Want to attribute will return the list of value you need depending on the salary value. And I will show you negativity you how we can implement this. Step number five will sit auto submit and the dependency in the view object attribute. Of course, there are a dependency now between the transient attribute and the bottom interest of value, and they're all dependency between the salary as a transit attribute and I will show you how we would define this. The last step is sitter or submit on the bus trigger in the GCF beach, because now when once you change the salary, here once you change the salary, this this value will be changed.
So there are a Basha trigger between salary and the department ID. This is the step number six it would submit at the bush trigger is a JSF page. This is a list of Value switcher legacy video, we will go step by step and implement this digital value switcher. So see you next video