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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T01:12:49+00:00 2026-06-14T01:12:49+00:00

I just create my component, based in ‘Ext.form.field.Trigger’ with this config params: config: {

  • 0

I just create my component, based in ‘Ext.form.field.Trigger’ with this config params:

config: {
    selectedId: 0,
    selectedRecord: null,
    searchControl: '',
    displayField: '',
    autoSearch: true
},

How can I bind the “selectedId” variable to be send to server as the value of a field of this kind ?

For example:

I have a field in my table: brand_id.

I have in my form, my custom control that needs to send the id of a brand record (just like combobox). This id is in the “selectedId” variable.

  • 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-06-14T01:12:50+00:00Added an answer on June 14, 2026 at 1:12 am

    You will need to override the getValue() method of the custom triggerfield component that you built. Depending on the way the submit method is called, the predefined methods on the form use the getValue() orgetRawValue()` methods during submission.

    If you read the getValue() doc for the triggerfield, you’ll see the following documentation:

    Returns the current data value of the field. The type of value
    returned is particular to the type of the particular field (e.g. a
    Date object for Ext.form.field.Date), as the result of calling
    rawToValue on the field’s processed String value. To return the raw
    String value, see getRawValue.

    So override the getValue() method and return whatever you want sent to the server. By default the getValue() will return the underlying html input field’s value property.

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

Sidebar

Related Questions

I just create a new repo https://github.com/tolbard/ember-moving . In this repo I extend the
I know that there is a component for this but based on what i
How would one create a custom MXML component in flex which is based on
I just create a Global Variable in Ms. Dynamic Nav 2009 R2 and I
i just create reading file feature. In general, what kind PHP class that usually
I just create a simple UITableView in the UIViewController . .h #import <UIKit/UIKit.h> @interface
my co-worker has just create a new branch in the git repository which we
I have just create a large table with more than 30 rows of data,
I am trying to just create a basic layout, but i am having trouble
I wonder whether I can use knitr markdown to just create a report on

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.