EXT JS

EXT JS

Hi, i created a grid panel with a check box in each row and i retrieved data from database and set the value for grid panel. i set a value for check box also but when i read the value of the check box it displays null. how to set the value for the check box from mysql in extjs grid. below is my coding.

code:

<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import = "java.sql.*"%> Details

    <%
                        try {
                            Class.forName("com.mysql.jdbc.Driver");
                            Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/BankDb", "root", "ims");
                            Statement stmt = con.createStatement();
                            String query = "select AccountNumber,AccountNumber,Fullname,AccountType,MobileNumber,Email from details";
                            ResultSet rs = stmt.executeQuery(query);
                            int i;
                            String gridData = "";
                            rs.last();
                            int numrows = rs.getRow();
                            rs.first();
                            rs.beforeFirst();

                            for (i = 0; i <= numrows; i++)
                                {
                                 while (rs.next()) 
                                  {
                                    if (gridData.equals("")) 
                                    {
                                        gridData = "['" + rs.getString(1) + "','" + rs.getString(2) + "','" + rs.getString(3) + "','" + rs.getString(4) + "','" + rs.getString(5) + "','"+rs.getString(6)+"']";
                                    } 
                                    else 
                                    {
                                        gridData += ",['" + rs.getString(1) + "','" + rs.getString(2) + "','" + rs.getString(3) + "','" + rs.getString(4) + "','" + rs.getString(5) + "','"+rs.getString(6)+"']";
                                    }
                                 }
                                }


                           %>

<% con.close(); } catch (Exception e) { out.print(e); } %>

View Answers









Related Tutorials/Questions & Answers:
EXT JS
EXT JS   i want to create a grid in extjs to display data from mysql and if i want to edit the data i must update through extjs only and must update in mysql database. please help me with sample code. thank you
EXT JS
hello world program. EXT JS  Hi, i need to do extjs coding. but i don't know even hello world program. please teach me with step be step procedure...://www.roseindia.net/ajax/ext/ext-form.shtml
Advertisements
EXT JS
EXT JS  Hi, how to start coding Extjs with netbeans. Please help me doing that with steps and sample coding
EXT JS
EXT JS  Hi, in my grid i have added check box in extjs for each row i want to edit the value of a particular row by getting the value of check box relevant to the row. how to get the value of the check box. help me dong
EXT JS
EXT JS  Hi, how to redirect from one extjs page to jsp page. i have a grid in extjs and in that grid i have a check box and i set the unique value for each checkbox. when i choose a check box and click the edit button it should
EXT JS
EXT JS  Hi, i created a grid panel with a check box in each row and i retrieved data from database and set the value for grid panel. i set a value for check box also but when i read the value of the check box it displays null
Ext Js form example.
; In this simplified application and easy to learn Ext Js Tutorial I will show you how to develop a form in Ext Js framework. The Ext Js form will take...; framework in shortest possible time.ADS_TO_REPLACE_1 Ext JS provides UI elements
Ext
Ext       Ext Js  form example In this simplified application and easy to learn Ext Js Tutorial I will show you how to develop a form in Ext Js framework. The Ext Js form
Version of com.ext-ext>mybatis-ext dependency
List of Version of com.ext-ext>mybatis-ext dependency
ModuleNotFoundError: No module named 'ext'
ModuleNotFoundError: No module named 'ext'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ext' How to remove the ModuleNotFoundError: No module named 'ext' error
ModuleNotFoundError: No module named 'ext'
ModuleNotFoundError: No module named 'ext'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'ext' How to remove the ModuleNotFoundError: No module named 'ext' error
Artifacts of com.ext-ext
List of Artifacts of com.ext-ext maven depenency
Maven Repository/Dependency: com.ext-ext | mybatis-ext
Maven Repository/Dependency of Group ID com.ext-ext and Artifact ID mybatis-ext. Latest version of com.ext-ext:mybatis-ext dependencies. # Version Release Date You can read more
xls to js using javascript
xls to js using javascript  ![how can we convert a xls file in js file using javascript][1
Lightbox JS
Lightbox JS/font>       Lightbox JS is a simple, unobtrusive script used to overlay images on the current page. It`s a snap to setup and works on all modern browsers. Read full
ModuleNotFoundError: No module named 'js'
ModuleNotFoundError: No module named 'js'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'js' How to remove the ModuleNotFoundError: No module named 'js' error
ModuleNotFoundError: No module named 'js'
ModuleNotFoundError: No module named 'js'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'js' How to remove the ModuleNotFoundError: No module named 'js' error
Maven Dependency mybatis-ext >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.ext-ext >> mybatis-ext version0.0.1 in your project
Maven Dependency mybatis-ext >> 0.0.2
You should include the dependency code given in this page to add Maven Dependency of com.ext-ext >> mybatis-ext version0.0.2 in your project
Maven Dependency mybatis-ext >> 0.0.3
You should include the dependency code given in this page to add Maven Dependency of com.ext-ext >> mybatis-ext version0.0.3 in your project
Maven Dependency mybatis-ext >> 0.0.4
You should include the dependency code given in this page to add Maven Dependency of com.ext-ext >> mybatis-ext version0.0.4 in your project
Version of batik>batik-ext dependency
List of Version of batik>batik-ext dependency
Version of jfree>jfreereport-ext dependency
List of Version of jfree>jfreereport-ext dependency
Version of com.intersult>jsf-ext dependency
List of Version of com.intersult>jsf-ext dependency
Version of com.jfinal>jfinal-ext dependency
List of Version of com.jfinal>jfinal-ext dependency
Version of rhino>js dependency
List of Version of rhino>js dependency
ModuleNotFoundError: No module named 'argparse-ext'
ModuleNotFoundError: No module named 'argparse-ext'  Hi, My Python... 'argparse-ext' How to remove the ModuleNotFoundError: No module named 'argparse-ext' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'argparse-ext'
ModuleNotFoundError: No module named 'argparse-ext'  Hi, My Python... 'argparse-ext' How to remove the ModuleNotFoundError: No module named 'argparse-ext' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'dacite-ext'
ModuleNotFoundError: No module named 'dacite-ext'  Hi, My Python... 'dacite-ext' How to remove the ModuleNotFoundError: No module named 'dacite-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'drf-ext'
ModuleNotFoundError: No module named 'drf-ext'  Hi, My Python...-ext' How to remove the ModuleNotFoundError: No module named 'drf-ext... to install padas library. You can install drf-ext python with following command
ModuleNotFoundError: No module named 'emp-ext'
ModuleNotFoundError: No module named 'emp-ext'  Hi, My Python...-ext' How to remove the ModuleNotFoundError: No module named 'emp-ext... to install padas library. You can install emp-ext python with following command
ModuleNotFoundError: No module named 'Flask-Ext'
ModuleNotFoundError: No module named 'Flask-Ext'  Hi, My Python... 'Flask-Ext' How to remove the ModuleNotFoundError: No module named 'Flask-Ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'foliantcontrib.utils.preprocessor-ext'
ModuleNotFoundError: No module named 'foliantcontrib.utils.preprocessor-ext...: ModuleNotFoundError: No module named 'foliantcontrib.utils.preprocessor-ext' How...;foliantcontrib.utils.preprocessor-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'foliantcontrib.utils.preprocessor-ext'
ModuleNotFoundError: No module named 'foliantcontrib.utils.preprocessor-ext...: ModuleNotFoundError: No module named 'foliantcontrib.utils.preprocessor-ext' How...;foliantcontrib.utils.preprocessor-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'invenio-ext'
ModuleNotFoundError: No module named 'invenio-ext'  Hi, My Python... 'invenio-ext' How to remove the ModuleNotFoundError: No module named 'invenio-ext' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'limix-ext'
ModuleNotFoundError: No module named 'limix-ext'  Hi, My Python... 'limix-ext' How to remove the ModuleNotFoundError: No module named 'limix-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'limix-ext'
ModuleNotFoundError: No module named 'limix-ext'  Hi, My Python... 'limix-ext' How to remove the ModuleNotFoundError: No module named 'limix-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'log-ext'
ModuleNotFoundError: No module named 'log-ext'  Hi, My Python...-ext' How to remove the ModuleNotFoundError: No module named 'log-ext... to install padas library. You can install log-ext python with following command
ModuleNotFoundError: No module named 'logging-ext'
ModuleNotFoundError: No module named 'logging-ext'  Hi, My Python... 'logging-ext' How to remove the ModuleNotFoundError: No module named 'logging-ext' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'midas-ext'
ModuleNotFoundError: No module named 'midas-ext'  Hi, My Python... 'midas-ext' How to remove the ModuleNotFoundError: No module named 'midas-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'moto-ext'
ModuleNotFoundError: No module named 'moto-ext'  Hi, My Python... 'moto-ext' How to remove the ModuleNotFoundError: No module named 'moto-ext... to install padas library. You can install moto-ext python with following
ModuleNotFoundError: No module named 'moto-ext'
ModuleNotFoundError: No module named 'moto-ext'  Hi, My Python... 'moto-ext' How to remove the ModuleNotFoundError: No module named 'moto-ext... to install padas library. You can install moto-ext python with following
ModuleNotFoundError: No module named 'msgpack-ext'
ModuleNotFoundError: No module named 'msgpack-ext'  Hi, My Python... 'msgpack-ext' How to remove the ModuleNotFoundError: No module named 'msgpack-ext' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'numpy-ext'
ModuleNotFoundError: No module named 'numpy-ext'  Hi, My Python... 'numpy-ext' How to remove the ModuleNotFoundError: No module named 'numpy-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'odoo8-addon-l10n-lu-ext'
ModuleNotFoundError: No module named 'odoo8-addon-l10n-lu-ext'  Hi...: No module named 'odoo8-addon-l10n-lu-ext' How to remove the ModuleNotFoundError: No module named 'odoo8-addon-l10n-lu-ext' error? Thanks   
ModuleNotFoundError: No module named 'oop-ext'
ModuleNotFoundError: No module named 'oop-ext'  Hi, My Python...-ext' How to remove the ModuleNotFoundError: No module named 'oop-ext... to install padas library. You can install oop-ext python with following command
ModuleNotFoundError: No module named 'pandas-ext'
ModuleNotFoundError: No module named 'pandas-ext'  Hi, My Python... 'pandas-ext' How to remove the ModuleNotFoundError: No module named 'pandas-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'plpy-ext'
ModuleNotFoundError: No module named 'plpy-ext'  Hi, My Python... 'plpy-ext' How to remove the ModuleNotFoundError: No module named 'plpy-ext... to install padas library. You can install plpy-ext python with following
ModuleNotFoundError: No module named 'proxy-ext'
ModuleNotFoundError: No module named 'proxy-ext'  Hi, My Python... 'proxy-ext' How to remove the ModuleNotFoundError: No module named 'proxy-ext' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'PyAstronomy-ext'
ModuleNotFoundError: No module named 'PyAstronomy-ext'  Hi, My... named 'PyAstronomy-ext' How to remove the ModuleNotFoundError: No module named 'PyAstronomy-ext' error? Thanks   Hi, In your python

Ads