Hi all I developed this example using the language of WebFOCUS and AJAX using Table CAR. In my opinion Ajax and WebFOCUS it is great marriage and he goes to provide great easiness in the development of applications complex. This is only one example, does not use way of exhibition of the graph in production environment not to compromise the performance of the same. Download wfajax.zip I am available for any doubts. Finishing, my English is bad forgives me. Ricardo Rosário msn: rosarioricardo@yahoo.com.brThis message has been edited. Last edited by: Kerry,
Hi Ricardo, Thanks for your Ajax files. i want to know where i will use this Ajax and what's the use of using this Ajax in WebFOCUS files. is there any Performance issues. give me a clear idea about this Ajax,where i will get the Documents forthis Ajax.. i want to learn this give me a Good Sugesstion.
Thanks, Kalyan.S.This message has been edited. Last edited by: kalyanswarna,
Thanks, Kalyan.S ------------------------------------ WebFOCUS 7.1.4, Win XP SP2, Oracle8i. ------------------------------------
July 21, 2006, 12:14 AM
susannah
Ricardo, translate the words on the launch page for us, would you please? and tell us what is supposed to happen? I get nada.This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
July 21, 2006, 11:57 AM
<Tim Howard_ABCBS>
I've used ajax before to create more responsive html launch pages. For instance, I've got one screen where users can enter a group number as a parm and I'm able to populate the screen with the group name and description for confirmation purposes without reloading the page or calling another focexec to create another html page.
The main purpose of ajax is to allow you to retrieve server side information (normally xml) in javascript code and make dynamic changes to your html. Given that the java servlet is a server side call that can be setup to return xml, it is idea for using in ajax.
I created a javascript function where you pass it the app folder, the focexec to call, any parameters needed to run the focexec and the javascript function name you want to handle the return. So once I pass it the parms I need, all the javascript I need is the javascript used to update the screen with the returned xml.
I'd be glad to share it if anyones interested.
July 21, 2006, 12:28 PM
<RickW>
Tim - that sounds way cool - I'd totally be interested. THANKS!
July 24, 2006, 12:37 AM
kalyanswarna
Hi Tim,
i would like to know about this Ajax,what's the use this in WebFOCUS and where did i get the information about this .
Thanks, Kalyan.S
Thanks, Kalyan.S ------------------------------------ WebFOCUS 7.1.4, Win XP SP2, Oracle8i. ------------------------------------
July 24, 2006, 04:56 AM
venu
AJAX is Asynchronous Javascript and XML. To simplify you use javascript(/Jscript) to make a server call which returns a XMLHttpRequest object. This happens in the background.
In general one problem with AJAX is that user makes a request, but he will not know what is happening or how long it will take to return your data(Because of background processing). As developer you have to use other mechanisms to make this understandable to user. Another big danger though is with the term "Asynchronous". You need to be careful when you make AJAX requests which you expect to behave in certain sequence but may not happen that way.
But the good thing is as Tim stated you could use it in webfocus which increases your options for some critical cases.
To give an additional idea one of cases we have a heavy selection screen with lots of hierarchies. When one of the options in a hierarchy changes our requirement is to change the further options in that hierarchy(But the remaining hirerachies no data changes). It is too time consuming to reload the entire screen again running a procedure (Due to the hierarchies and data associated). So we use the AJAX to just update the current hierarchy.
July 27, 2006, 08:32 AM
Ricardo
kalyanswarna
First paradigm to be broken is see that the Webfocus can be used as a Framework of development( like ASP,PHP,etc). I use for everything and am very satisfied here. You can use the Ajax to assist in the development of filters (ex you to need to locate a customer between 3000, is impracticable the use of dropdown or List a its saida research on the part of the name as in the example webfocus+ajax). Ajax exists many possibilities of the use(report,filters,selfservices applications), one looked at in the URLs below.
For those that care, ajax has been part of WebFOCUS since 5.3 (and maybe sooner then that). If you have built a html page through layout painter with multiple drop down boxes that are chainged together ... then you have used ajax.
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
July 27, 2006, 09:59 AM
<Tim Howard_ABCBS>
You'll also notice that as of version 7, if you use the html layout painter to create your html it no longer uses forms to send your request. I would imagine they are using the XMLHttpRequest (AJAX) to run the reports and populate the IFRAME (or where ever you specify to return it to).
RickW, if you'll send me an email address I'll forward you my javascript code. I've also got some sample code I built using the CAR db.
October 18, 2006, 12:18 PM
vaayu
Hi everyone, I want to thank everyone on this, I was able to download the sample and implement it on a 200k row table and it populates my search so fast.. this is so awesome
I was trying this example to work, but it's getting problem with graph format PNG. Throws following exception 0 NUMBER OF RECORDS IN GRAPH= 3036 PLOT POINTS= 44 (FOC36276) FORMAT NOT SUPPORTED. What setting should I turned on my WebFocus to get work PNG format since PNG format never work for me. I have to always use JPEG or GIF format only.
Appericate your help if somebody knows this. Thanks.
WF 7.6.2/ OS WIN2003. DM 7.6.2
April 12, 2011, 12:41 AM
vaayu
The link doesnt work anymore.. Anyone else has it saved?