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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:51:50+00:00 2026-06-15T10:51:50+00:00

There is another issue when I try to set the preselected (or any) value

  • 0

There is another issue when I try to set the preselected (or any) value of my store-fed dijit/form/Select widget.

The markup code is:

<div data-dojo-type="dijit/form/Select" jsId="editOptionsDialog_select" id="editOptionsDialog_select"></div>

and the js:

function editOptionsDialog_fetchData(cId, fieldName, vId) {
        var store;
        var def;
        var return_def = new Deferred();

        store = new degreeStore();
        def = store.getJsonData();

        def.then(function(data) {
            store.data = data.items;
            editOptionsDialog_select.setStore(new ObjectStore({
                objectStore : store
            }));

            editOptionsDialog_select.value = vId;

            editOptionsDialog_select.startup();
            editOptionsDialog_select.set('value', 5);

            console.info(editOptionsDialog_select);
            // here, firebug still shows value = 1
            return_def.resolve();
        });

        return return_def;
    }

thx in advance

Greetings

  • 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-15T10:51:51+00:00Added an answer on June 15, 2026 at 10:51 am

    Finally found a solution to the problem:

    Since the selection-element DOES NOT support numerical indexes, the indexes had to be casted to strings. With that, a editOptionsDialog_select.set(‘value’, vId.toString()) has finally worked!

    Be sure to feed your store by casted numerical ids or then textual-keys by default -> (String)id where id is an integer.

    Greetings

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

Sidebar

Related Questions

Is there another way to do this Query ? $query = SELECT * FROM
Is there another way to find out the status of services on AppEngine other
Is there another Timer object that can be used in Silverlight except for the
Is there another way to connect to a MySQL database with what came included
Is there another way to load MSHTML documents without use Application.ProcessMessages? To load a
Is there another way to run a regular JS function with parameters passed than
Isn't there another way of using global variables in a Java stlye manner in
I'm familiar with: Convert.ToInt32(texthere); But is there another cleaner way to do it? I
I am currently using YUI datatable, but it is buggy: http://developer.yahoo.com/yui/datatable/ Is there another
There is another possibly related question on this but it didn't have answers and

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.