Hello, in this video I will continue talk about view object view object is a second component of ATF business component. I will talk about in the future material record material is one of the most important feature is a view object. And the I think you will use it a lot while developing ADF application view criteria used for three situations. First one is to filter domain data. As I showed you in previous video that you can define multiple vehicle material, each of you correctly has its own condition. And from the application module you can select which view criteria you want.
In that case it will filter the data based on the view current area condition. The second feature is to create a searchable beach if you want to create searchable page it is see how we can use view criteria to create a searchable beach so in that if you have a page here and you want to create a search page so let's delete here bunnies tab so they have multiple tabs is a bitch okay by the tab okay. So we can say search can add this as a first step now we talk about the search to create a searchable beach from the view object is that a control you will find here name criteria, you will find all the criteria appears here default one is all query for attribute. Let us try to see what is all quotable attribute you can just create drag here query if query when was table it will create a query panel and the table after the query button So, let us see how it will work so, and how the vehicle interior can be used as a search page.
So, let's run and see this is all codable attribute. So, if you find here in the search tab, you will find here sec search and this is a table if you can say for example, maybe manager 200 and press Search you will get search so, this is a search okay you search by what you search with words entity Name Manager location why you search was this because I say it is all core attribute. Okay, so in case, you want to search only by department ID and department name. So what you can do, I can create a view criteria here for searching. So I can see here view criteria search one, and I need to search by department ID to be equal. And I need to department ID, maybe it was with name maybe contain.
That's all so we have a few criteria for search. So now I will refresh the control. I find it here. They weren't meant for search. So I will remove this and I will use my view criteria for search query with table. Okay, okay.
Okay, so let's now run the search, you will find only department on the ID name, because it created from a view criteria. You can do some more things like if you go here for the Vickery materia, hint you can say, query automatically I need to see the current moment automatically comes a result. And I don't want to see this kind of thing as you can show much and I don't want this you can remove this. You can show written in advance mode, or in in the basic mode, okay, you can see I'm basic mode, whatever you want here, once mode. So you can make some change like this, or you go to magically and they show Okay, remove it. So let's now run it again.
Search Here you'll find it is running automatically and the match in your remote. So, you have now you quarter you can control the search page. This one usage of the view criteria The last one is used for list of value. But before list of value I will talk about the other type of view objects in I will talk about this overly. So, next video I will talk about the other type of the view object. See you next video.