JavaScript Part 5

Advanced Oracle ADF 12c Course View|JavaScript in ADF Application
9 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€60.04
List Price:  €85.78
You save:  €25.73
£52.20
List Price:  £74.57
You save:  £22.37
CA$96.57
List Price:  CA$137.96
You save:  CA$41.39
A$107.16
List Price:  A$153.09
You save:  A$45.93
S$90.17
List Price:  S$128.82
You save:  S$38.65
HK$546.07
List Price:  HK$780.13
You save:  HK$234.06
CHF 56.24
List Price:  CHF 80.34
You save:  CHF 24.10
NOK kr701.61
List Price:  NOK kr1,002.34
You save:  NOK kr300.73
DKK kr448.11
List Price:  DKK kr640.19
You save:  DKK kr192.07
NZ$119.34
List Price:  NZ$170.50
You save:  NZ$51.15
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,512.87
List Price:  ৳12,161.77
You save:  ৳3,648.89
₹6,162.88
List Price:  ₹8,804.49
You save:  ₹2,641.61
RM295.88
List Price:  RM422.70
You save:  RM126.82
₦107,536.13
List Price:  ₦153,629.63
You save:  ₦46,093.50
₨19,804.90
List Price:  ₨28,293.93
You save:  ₨8,489.02
฿2,263.93
List Price:  ฿3,234.32
You save:  ฿970.39
₺2,880.27
List Price:  ₺4,114.84
You save:  ₺1,234.57
B$382.90
List Price:  B$547.02
You save:  B$164.12
R1,233.84
List Price:  R1,762.70
You save:  R528.86
Лв117.53
List Price:  Лв167.91
You save:  Лв50.37
₩97,257.52
List Price:  ₩138,945.27
You save:  ₩41,687.75
₪235.73
List Price:  ₪336.77
You save:  ₪101.04
₱4,010.39
List Price:  ₱5,729.37
You save:  ₱1,718.98
¥10,397.50
List Price:  ¥14,854.21
You save:  ¥4,456.71
MX$1,309.19
List Price:  MX$1,870.35
You save:  MX$561.16
QR255.01
List Price:  QR364.32
You save:  QR109.30
P943.39
List Price:  P1,347.77
You save:  P404.37
KSh9,039.20
List Price:  KSh12,913.70
You save:  KSh3,874.50
E£3,401.11
List Price:  E£4,858.94
You save:  E£1,457.82
ብር9,999.68
List Price:  ብር14,285.86
You save:  ብር4,286.18
Kz63,827.73
List Price:  Kz91,186.39
You save:  Kz27,358.65
CLP$68,145.06
List Price:  CLP$97,354.26
You save:  CLP$29,209.20
CN¥499.08
List Price:  CN¥713
You save:  CN¥213.92
RD$4,408.74
List Price:  RD$6,298.47
You save:  RD$1,889.73
DA9,093.35
List Price:  DA12,991.06
You save:  DA3,897.70
FJ$158.28
List Price:  FJ$226.12
You save:  FJ$67.84
Q536.40
List Price:  Q766.32
You save:  Q229.91
GY$14,634.99
List Price:  GY$20,908.02
You save:  GY$6,273.03
ISK kr8,623.46
List Price:  ISK kr12,319.76
You save:  ISK kr3,696.30
DH633.06
List Price:  DH904.41
You save:  DH271.35
L1,154.10
List Price:  L1,648.78
You save:  L494.68
ден3,701.61
List Price:  ден5,288.25
You save:  ден1,586.63
MOP$562.68
List Price:  MOP$803.86
You save:  MOP$241.18
N$1,239.98
List Price:  N$1,771.48
You save:  N$531.49
C$2,575.56
List Price:  C$3,679.53
You save:  C$1,103.97
रु9,878.18
List Price:  रु14,112.30
You save:  रु4,234.11
S/247.37
List Price:  S/353.41
You save:  S/106.03
K293.47
List Price:  K419.26
You save:  K125.79
SAR262.62
List Price:  SAR375.19
You save:  SAR112.57
ZK1,658.21
List Price:  ZK2,368.97
You save:  ZK710.76
L304.89
List Price:  L435.57
You save:  L130.68
Kč1,468.04
List Price:  Kč2,097.30
You save:  Kč629.25
Ft23,641.10
List Price:  Ft33,774.46
You save:  Ft10,133.35
SEK kr660.62
List Price:  SEK kr943.78
You save:  SEK kr283.16
ARS$95,148.96
List Price:  ARS$135,932.91
You save:  ARS$40,783.95
Bs483.58
List Price:  Bs690.86
You save:  Bs207.28
COP$280,654.43
List Price:  COP$400,952.08
You save:  COP$120,297.65
₡35,381.84
List Price:  ₡50,547.65
You save:  ₡15,165.81
L1,844.66
List Price:  L2,635.35
You save:  L790.68
₲505,480.47
List Price:  ₲722,145.91
You save:  ₲216,665.44
$U2,801.15
List Price:  $U4,001.81
You save:  $U1,200.66
zł255.30
List Price:  zł364.73
You save:  zł109.43
Already have an account? Log In

Transcript

Hello. In this video I will continue talking about JavaScript. In this video, I will show you two things for anything related to the input data. So as you can know, user can enter the input date manually like this, or he can bake it from the calendar like this. Sometimes, maybe it's a customer say no, I don't want the user to enter it manually, the user has to check it pick it from their calendar, I do want to enter make it enter manually. So to do this is this simply you can create function here.

Function to invoke it and take the event and simply say event dogs, cats Okay, and you can use that line listener. So it's a date here and you can just say disable the input date. Disable in the date, disable input date and you can draw it. So type will be key press. Let's try to test this and see. Okay now I am here.

This is type in think It isn't live anything. Now I'm pressing on the keyboard now. But it didn't write anything. You have to make it from here. To try to write it not you can remove it, you can delete it, but you can try it. So now I disabled the user to be manually enter the date, and the user has to pick the date from the date picker.

This is one of the example how you can disable manually enter the date for the date in which date I will choose the other example which is and I do it frequencies is embodied. I really use it to be honest, but for Zen coming one is a very important one you need to know which is if Zabbix. Sometimes you want to invoke a missile it wants to the user enters a beach or wants a beach is loaded. Even everything is loaded and everything is ready Want to execute some code. So, how you can do this in the document itself here I will add the client listener is a document client listener and I will message maybe can call pitch loot once the page is loaded and I select the type here called load so what does it mean? It means once a page or a document is loaded and ready, it will call a function called beach load.

So let us write a function here called load bitch. Okay, so it's a straight to load page. Okay, this is a function called load page. And this function will be called once the document is loaded, because it's a type load. But actually, I need to execute some code in the back beam. So what I need to do I need to call a function in xebec been from the JavaScript.

So how I can do this here in a document, I add a client to this Okay, so the client listener will call Mr. Cole load page wants that if document is loaded. But I need this function loop bitch to call a method in the back pain. To do this you have to add with glide It is not something call server listener. So inside the document, and says if a document I will add it if server this, this is server list okay. The type of server listener will I can call it cold server now, any name you can call it any name server called server okay this is called server and this type is called server and the method is a backbeat should be here. So, here I will create a method is a is a backbeat beach note okay.

So, here I create method in the backbeat core pitch route, this is this method will be invoked from silver listener of type cold cold server so, I will copy this code server and I need to call this server inside the JavaScript which is called from the client list which is nude beach. So it says go to the beach here. You will find here at here's the cool search anymore They're silver listener type. So again, inside a document, I add two things, client listener to call JavaScript. Plus I add a silver listener to call back when Massoud forms a JavaScript function. Client listener you already know.

Once is a bitch the document is loaded it will call load bitch. But inside would bitch I need to call a method is a back pain. So I will call it if custom event to queue and I will give the source Zin I will give a type of ad server listener. So you have to add server listener within client listener with a type called server which is this. And this is a parameter I don't want to send in the browser. I will talk about this parameter later.

And this is a write 14. So this is How you can call a function in a big beam in from our JavaScript method. So, let us know try to write here any code. Of course, once you be inside a backbone, you can do whatever you want you can call Norwich surface you can code SQL statement from the database you can do anything you want, because you are now in the backbeat. So here I will write page is loaded. I saw I use this a lot of times before so I just want to execute some code once a bitch is loaded, and every object is now ready to be used in the back beat.

I need to execute some code. So I add server client listen on server recent insight incite a document relentless Maroon, be of type load In Zulu, bitch, JavaScript function, I will call a server listener type and civilization type boy into a specific function in the backbeat. So now once if I run this, this application, I will expect it bij is loaded will be printed in the look once the beach is loaded so let's just now try to run and see. Okay so the BG now is loaded surfer look in the console, you will find yield which is loaded is printed, it was clear it was refresh the whole pitch again which is loaded so the which is loaded only will happen once the page is loaded. So, if you have any other action to do, if you have bought and want to work if you are working as a business itself, this will not be printed visual will not be rented big is loaded, this big load will call once the whole front page is refreshed.

So if the user get out from the page and interrupt which again, this page loaded will be invoked. So this is how you can call a function in the back been from a JavaScript function, how we can call this and I give you an example, owns a beach float. I will go for another example, calling the backbone function for JavaScript, but I need to send some parameters. So, see you next tivity

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.