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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:19:31+00:00 2026-06-14T07:19:31+00:00

I get metadata as string like {Input:{‘A’:’System.Int32′,’B’:’System.Int32′}, Output:System.Int32} I am using knockout.js and could

  • 0

I get metadata as string like “{Input:{‘A’:’System.Int32′,’B’:’System.Int32′}, Output:System.Int32}”

I am using knockout.js and could use json.parse also. But are there any easy way to generate a inputform that let the user submit data for properties of input. (would it be better to change the metadata to be a list of properties?

  • 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-14T07:19:32+00:00Added an answer on June 14, 2026 at 7:19 am

    I used this to generate the array of properties.

    self.input = ko.observableArray([]);
    if (data.MetaData) {
      //  alert(data.MetaData);
        var d = JSON.parse(data.MetaData).Input;
        for (var prop in d) {
            self.input.push({name:ko.observable(prop),type:d[prop],value:ko.observable('')});
        }
    }
    

    and View:

        <ul data-bind="foreach:test().input">
            <li >
                <label data-bind="text:name, uniqueFor: name"></label>
                <input placeholder="value" data-bind="value:value, uniqueId: name"/>
            </li>
        </ul>
    

    and bindings:

    ko.bindingHandlers.uniqueId = {
        init: function (element, valueAccessor) {
            var value = valueAccessor();
            value.id = value.id || ko.bindingHandlers.uniqueId.prefix + (++ko.bindingHandlers.uniqueId.counter);
    
            element.id = value.id;
        },
        counter: 0,
        prefix: "unique"
    };
    
    ko.bindingHandlers.uniqueFor = {
        init: function (element, valueAccessor) {
            var value = valueAccessor();
            value.id = value.id || ko.bindingHandlers.uniqueId.prefix + (++ko.bindingHandlers.uniqueId.counter);
    
            element.setAttribute("for", value.id);
        }
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to get table metadata for all table columns. Like type string(varchar2)/int/float/datetime and
I get geoTiff metadata with GeoTiffIIOMetadataAdapter class: String filename = pathToMyTiffFile; FileImageInputStream f =
Having a really aggravating problem using Managed Metadata in SP2010 where I can get
I use the Exiv2 command line tool on Linux to edit image metadata like
I would like to get the metadata from an image file in my local
Is there a way to get metadata for the Oracle built-in aggeregate and other
I get the followinng Xresponse after parsing the XML document: <DIDL-Lite xmlns=urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/ xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:upnp=urn:schemas-upnp-org:metadata-1-0/upnp/
Created a custom validation attribute and I would like to get it to work
I have a set of tables that look like: workflows = Table('workflows', Base.metadata, Column('id',
I would like to ask for an advice regarding xts subclass. I am using

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.