Hello, last video I show you how you can expose one of the built in existing operations of your object as a soup surface. In this video, I need to write my own method and I need to expose this method as as to web surface. So, let us now try to write my own method. So, I will open the application module and I will go to Java from Java here, I will generated application module inbuilt class and I will press OK OK, so, the class is generated here, I will open it then I will write my own function here. So, let us try to write a simple function like I need to send the department ID and returns the department name. Of course, you can write whatever EU any business you want any function you want.
So, I will write public string get custom the custom missile tip name and I will send into your deep dive right now, the Good Witch or you will return the department ID from zacky which is a workman interest in the workmen name from the department ID. So, I will defined he here a key key equal new key off your object and I will send you here it already okay so I have here the view object so I will get the view object dot find by key okay this is what's your no real bro okay I need to find by key and I will send it the key you only one And I will get the first one from Zara so it will return row here Oracle she will grow then I will return to get a tribute to bar mean name okay and I will just cost it to drink okay so now all you find here, this function offices mess with my own method and I need to expose this as a sub surface that any any other system can call this and can return the department name from the department ID.
So, I will open that application module here is the surface you can edit this surface okay you'll find here the built in operation and you will find here the custom methods. So, you will find your custom methods here I will just shutter this to be listed to the application module. Then I will press apply and release okay. Okay, so now we will find Here you have custom missiles is appear here. So, let us now try to run this and just test it now for in terms as to UI application after that we can call it from other EDF application to show you how we can call super surface from other ADF application. So, let's just right click and run the surface okay.
So after we run the application Let us now try to test it in the to you all application so I will create a new one this custom method and I will put the wisdom URL Okay. So, you will find all built in operation loss you will find here get the custom Deepti name this is my custom operational method which I created. So, let us try to test it and if it is run successfully we can I will show you how you can test it in your how to call it from any other application. So, let's run now it return the correct department name Okay. So now it is it is working fine is a custom method which we have created here. So, next video I will show you how you can call dismissals from other ADF application.
So, see you next video