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 5954531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:59:04+00:00 2026-05-22T17:59:04+00:00

I store combobox withe few data like this : var materialstore = Ext.create(‘Ext.data.Store’,{ //fields

  • 0

I store combobox withe few data like this :

var materialstore = Ext.create('Ext.data.Store',{

            //fields : [ 'id','data'],
            model :'Combox',
            data : [ 
            { "id" : "12270",
            "data" : "Basic Monthly Support Contract"}
             , 
            { "id" : "12261",
            "data" : "Business Analysis Hour"}
             ,
            { "id" : "12264",
            "data" : "Project/Consulting (Base System)"}

To updating my row , i need to do traitment to retieve id .
i make function to do this, but when data field has an character like ‘(‘ or ‘)’ , my function doesn’t works !

In my function, i found valid store and i take id corresponding with data field

var store = Ext.getStore(eval(c));
                                    var index = store.findRecord('data',value);
                                    if ( index != null ) {
                                        var rg = new RegExp(value,'gi');
                                        tab = tab.replace(rg,index.get('id'));
                                    }

But when i have ‘)’ in data field , the function don’t return id but data field also than it works for other data ! Exist an extra character or other ?

  • 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-22T17:59:05+00:00Added an answer on May 22, 2026 at 5:59 pm

    You might need to use the escape character codes for the left paren “(” and right paren “)”

    See this ASCII Reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using gtk.combo_box_new_text() to make combobox list, this uses a gtk.ListStore to store only
I have a wpf app with a combobox like this <ComboBox name=cmbBx1> <ComboBoxItem Name=Jan>January</ComboBoxItem>
I have an ExtJS combobox with a remote data store behind it. In all
With ExtJs 3.1 My Ext.form.ComboBox is built with a store in which some values
I store serialized data in the registry. I want to use a foreach loop
I store objects of a custom data type in QStandardListItems. I recover these objects
How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs?
The ComboBox Items collection is an ObjectCollection, so of course you can store anything
I am using ExtJS 3.4 . I have a structure with data for combobox
I want to populate the combobox dynamically based on the data I received from

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.