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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:23:55+00:00 2026-05-24T02:23:55+00:00

I have a database structure that is based on EAV model. Each objects has

  • 0

I have a database structure that is based on EAV model. Each objects has different kind of metafields with different names.

How could I create a Model in Sencha Touch that will be dynamic?

Thanks.

Regards,

Shafqat

  • 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-24T02:23:55+00:00Added an answer on May 24, 2026 at 2:23 am

    There’s nothing preventing you from creating the Models at run time.

    function processEAV(attributes, types){
    
       var modelDef = {
          fields:[]
       }
    
       for(var i = 0, len = attributes.length; i < len; i++){
          modelDef.fields.push({name:attributes[i], type: types[i]});
       }
    
       Ext.regModel('NewModel', modelDef);
    
    }
    

    You can add all the additional properties that are needed like validations and associations.

    This obviously isn’t that great as you’ll be doing it every time it is loaded. It may be better to, on the server, output the model definitions whenever they change and just include them into your mobile html document.

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

Sidebar

Related Questions

I have a database structure that has a Person table which contains fields such
I have a few classes, such as those that outline database table structure or
I have the option of writing two different formats for a database structure: Article
I have a document based on a xml structure that I have stored in
I currently have a Generic method that reads an Value from the database based
I have a document structure JobData that stores time based data starting from time
I have products in my database (MySQL). I have my prices based on different
I'm putting together a database structure that can hold data for courses. Each course
I have a MySQL database which has 10 tables in it. The database structure
I have a Database that contains data about articles , structures and manufacturers .

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.