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

The Archive Base Latest Questions

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

WORKING DEMO I’m facing the following problem: I have an json array: self.customExportFileArray =

  • 0

WORKING DEMO

I’m facing the following problem:
I have an json array:

self.customExportFileArray = ko.observableArray([
      {
        "IncludeInExportConversionTypesSelectList" :
          [
            {
              "ConversionGroupID" : 1,
              "Title" : "Quote Start - Auto"
            },
            {
              "ConversionGroupID" : 2,
              "Title" : "Quote Finish - Auto"
            },
            {
              "ConversionGroupID" : 5,
              "Title" : "Sales Data"
            }
          ],
        "ChooseFromConversionTypesSelectList" : [],
        "FileName" : "Template1",
        "FileFormat" : "Excel",
        "FilterSettings" : true,
        "ComparisonMetrics" : false
      },
      {
        "IncludeInExportConversionTypesSelectList":
          [
            {
              "ConversionGroupID" : 1,
              "Title" : "Quote Start - Auto"
            },
            {
              "ConversionGroupID" : 5,
              "Title" : "Sales Data"
            }
          ],
        "ChooseFromConversionTypesSelectList":
          [
            {
              "ConversionGroupID" : 2,
              "Title" : "Quote Finish - Auto"
            }
          ],
        "FileName" : "Template2",
        "FileFormat" : "CSV",
        "FilterSettings" : false,
        "ComparisonMetrics" : true
      }
    ]);
}

And I have some HTML Code which contains one dropdown, text box, few radio-buttons and Two List controls. So, the point is: Dropdown should contain as many Items as customExportFileArray array’s length, and Item name (optionsText) should be FileName property from array. (Looks like it work now). Next, If change the Item from dropdown, let’s say Template1 File Name textbox should be filled by FileName property from array (Template1), Excel radiobutton should be checked, Keep filter settings should be checked, Compatison Metrics should be unchecked and ‘Conversion Types to Choose From’ should contain a list of IncludeInExportConversionTypesSelectList array (Text = Title)


But if to see in my HTML Code I’m doing something wrong, but don’t know what exactly. It doesn’t load specific data by changing Item from dropdown, but I thought that I’m doing all in a right way.
Additional question: How to save changes for specific Item array (I mean, for example you changed the name, or changed checked radiobutton).

Any help would be highly appreciated.

Thanks in advance.

WORKING DEMO

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

    You need to be binding the value of the drop down to an observable property called something like ‘SelectedTemplate’ to store the selected value, then binding the changeable fields to the selected object:

    <select data-bind="options: customExportFileArray, optionsText: function(item) { return item.FileName }, value: selectedTemplate">
    
    <input type="text" data-bind="value: selectedTemplate().FileName"/>
    
    self.selectedTemplate = ko.observable();
    self.customExportFileArray = ko.observableArray([
          {
           ....
    

    I have modified your jsfiddle as follows: http://jsfiddle.net/ptmwr/11/

    As you can see, the values binding of the drop down now points at this new property, and I had to change the way the optionstext binds to work with the object as a value.

    EDIT:

    Also you are trying to bind a boolean to RadioButton’s checked property, which they are not really designed for. If you want to bind to a boolean property then you should use checkbox control instead as this is either on or off.

    Hope this helps!

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

Sidebar

Related Questions

I'm working with a demo of two sortable jquery lists... but have a problem
Working demo here: http://jsfiddle.net/8Q4Lf/3/ I am retrieving an array on json and storing it
I have a very simple demo working that uses Webkit transforms and transitions for
HI, I have a flash application (working demo here ) which I'm using to
Problem in brief I have got a piece of working two dimensional scrolling code.
I have download the source from https://github.com/ResultsDirect/LinkedIn-iPhone . Demo working fine, and try to
I have been working on a demo project all day and everything went just
I am unable to make angularjs views work. They have a working demo at
I'm working through the Demo: Binding Data with the SqlDataSource of this pluralsight video
I was working on a demo method and found something strange(at least to me

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.