Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:03:10+00:00 2026-05-30T16:03:10+00:00

On Click of a button, opens a window in which i have a form

  • 0

On Click of a button, opens a window in which i have a form panel and a grid. Within the form I have some combo boxes, text box and a submit button. On clicking the submit button it should contact the database and get the values and then populate the grid columns. For a particular job id, there will be only one set of values that we get form the database.For reading the database query I am using “Ext.data.CFQueryReader”. Now I am getting an error “Ext.data.CFQueryReader is not a constructor”.
Since I am very new to ext js I am not sure of the code flow as I have been leveraging the code which is used in other module. So there will be some gaps in my code.
Please advice me on this. Below is the code snippet I am using for this page. Please advice me if there is any easy method other than this.
I am not sure if we require pagingtoolbar here. If pagingtoolbar is not used, how can we get the values?

var filterForm = new Ext.form.FormPanel({
        title       : 'Filters',
        floatable           : false,
        id          : 'filterForm',
        items       : [
        {
            xtype       : 'combo',
            id          :'Combo1',
            fieldLabel      :'Owner',
            valueField      :'ownerValue',
            displayField    :'ownerDisplay',
            value       :'ALL' 
        },
        {
            xtype       : 'combo',
            id          :'Combo2',
            fieldLabel      :'Status',
            valueField      :'statusValue',
            displayField    :'statusDisplay',
            value       :'ALL'
        },
        {
            xtype       : 'textfield',
            fieldLabel      : 'job Search',
            width       : 200,
            id          :'searchText'       
        }
       ],
       buttons: [
        {
            text    : 'Apply Filter(s)',
            id      : 'apply',
            handler : function(){
                loadJobs();
             }
        }
       ]

    });

var filterGrid = new Ext.grid.GridPanel({
        title   : 'List',   
        id      : 'list',
        store   : listStore,

        columns: [
            {
                header      : 'JOBID',
                width       : 70,
                dataIndex   : 'jobid',
                sortable    : true
            },
            {               
                header      : 'Description',
                id      : 'description',
                dataIndex   : 'description',
            },
            {               
                header      : 'Category',
                dataIndex   : 'category',
                width       : 100
            }   
            ]
              });

function loadJobs()
{
    pagingToolBar.displayMsg = "Displaying {0} - {1} of {2}";
    listStore.baseParams.jobid = '';
    pagingToolBar.changePage(1);

}

var pagingToolBar = new Ext.PagingToolbar({
    pageSize    : 20,
    id      : 'pagingToolbar',
    store   : listStore,
    displayInfo : true,
    displayMsg  : 'Displaying jobs {0} - {1} of {2}'
});

var listStore= new Ext.data.Store({
    url         : "/list.cfc",
    method      : 'POST',
    reader      : listReader,
    baseParams  : {
        method      : 'fetchList',
        returnFormat    : 'json',
        owner       : 'ALL',
        status      : 'ALL',
        jobidSearch     : '',
        jobid       : ''
    },
    listeners   : {
        beforeload  : function(store,options){
            store.baseParams.email = Ext.getCmp('Combo1').getValue();
            store.baseParams.status = Ext.getCmp('Combo2').getValue();
            store.baseParams.idSearch =Ext.getCmp('searchText').getValue();
        }
    }
});

var listReader = new Ext.data.CFQueryReader(
    {
        id          : 'jobid',
        totalProperty   : 'TOTALROWCOUNT'
    },
    [
        {   name    : 'jobid',mapping : 'JOBID',type : 'string'},
        {   name    : 'description',mapping : 'DESCRIPTION',type : 'string'},
        {   name    : 'category',mapping    : 'CATEGORY',type :'string'}        
   ]
);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T16:03:10+00:00Added an answer on May 30, 2026 at 4:03 pm

    Have you added relative path of .js file containig code of CFQueryReader in your .html file?

    For example, I have added path of Pentaho Reader as follows

    <script type="text/javascript" src="app/PentahoReader.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a modal window which opens up a login form, then i click
I have a div which opens when I click a menu button, I am
I have form area in my view. If I click button A , I
I have a pop up window which lists images using a form and radio
I have a second window which opens when a certain staffname is searched for,
We have a Modal Window with a contact form within it. We have two
I have a form that uses jQuery Validate. You click the Submit button, form
In my WPF application, I have a main window (Branch.xaml) which has a button
I have a parent window from which i open a modal dialog on button
I want to be able to click a button and open a new form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.