I am new to Fantom.
I have created a Connection.fan class to get SqlConn and to get the ResultSet(Rows). How can I call it in my .fwt class. I am getting the following error "compiler::CompilerErr: Unknown variable 'Connection'"
brianTue 17 May 2011
If you are trying to write a pod, you will need to ensure "sql" is in your dependency. And the sources which use "sql" will need to ensure "using sql".
If you are trying to make this work in the browser environment via the js/demo (which I suspect since you mention a ".fwt" extension), then that won't work. There is no JS implementation of sql APIs.
sushilsharma75Tue 17 May 2011
Thank you Brian for the prompt reply. I realy appriciate your help. My requirement is very simple in my browser window I have a textbox and a search button and table using .fwt If user click on search button it should display the result in the table from DB. Also in there should be a simple web demo application in documentation part for easy understading of Fantom web part.
brianTue 17 May 2011
@sushilsharma75
Your point is well taken. I think what you really are looking for this is an example of how to make an AJAX call and display some results. We probably don't have exactly what you are looking for, but you can take a look at the "ajax.fwt" example to see how to make an AJAX call to the server and display the results using a simple alert dialog.
sushilsharma75 Tue 17 May 2011
Hello,
brian Tue 17 May 2011
If you are trying to write a pod, you will need to ensure "sql" is in your dependency. And the sources which use "sql" will need to ensure "using sql".
If you are trying to make this work in the browser environment via the js/demo (which I suspect since you mention a ".fwt" extension), then that won't work. There is no JS implementation of sql APIs.
sushilsharma75 Tue 17 May 2011
Thank you Brian for the prompt reply. I realy appriciate your help. My requirement is very simple in my browser window I have a textbox and a search button and table using .fwt If user click on search button it should display the result in the table from DB. Also in there should be a simple web demo application in documentation part for easy understading of Fantom web part.
brian Tue 17 May 2011
@sushilsharma75
Your point is well taken. I think what you really are looking for this is an example of how to make an AJAX call and display some results. We probably don't have exactly what you are looking for, but you can take a look at the "ajax.fwt" example to see how to make an AJAX call to the server and display the results using a simple alert dialog.