on 2007 Jan 19 6:11 AM
Hi all,
I would like to get BLS transaction execution details like how much time it has took and transaction final info. into the javascript.Is there any method available for finding it in javascript..............?
Request clarification before answering.
Hi Ravi,
There are two things you can do for this. You can get the time stamp in log. Which is tedious task to get that one. You can not get the transaction execution info from the BLS editor to Xacute query.
But for your problem i can give one solution.
1. Create two time stamp variables in Java Script.
2.Take the current time into one variable before the template execution.(i.e hopefully at the start of the function)
3. Next take current time at the end of the execution of transaction in second variable.
4. Calculate the difference between the two variables.
I hope this explanation gives you some idea.
Thanks,
Rajesh.
PS : Please awrad points if answer is useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
Thanks for the answer i thought of doing it the same way but the time which is shown in BLS and the time found out from javascript is varying thts why i posted. Is there anyway for finding out the exact transaction time in BLS as u hav mentioned the other way as to finding time stamp in log.Can u explain tht method elaborately......?
Hi Rajesh,
I have tried another way i used datenow variable in BLS at the start of the transaction and at the end of the transaction and tried to find the difference between the two variables.luckily, it is showing difference with which the transaction is taking and is also close to transaction time but with little difference in mS which is manageable.
Hi Ravi,
I think this is also same case, but executing things in transaction cause more delay than javascript because, transaction is running on server and script is running on the browser. Thats why i gave you that solution. Anyway good to hear that you got solution.
Please close the thread if you solve your problem.
Thanks,
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.