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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:22:45+00:00 2026-06-05T01:22:45+00:00

In my Enyo app, I have a VirtualRepeater which produces Control s containing various

  • 0

In my Enyo app, I have a VirtualRepeater which produces Controls containing various text displays and an IntegerPicker.

I have two problems with this repeater:

1) If three rows are produced, clicking on the IntegerPicker in rows 1 and 2 brings up the drop-down picker UI over the top of the IntegerPicker in row 0.

2) I initialise each IntegerPicker with a max value using setMax(). However, if three rows are produced, the IntegerPickers in rows 0 and 1 will have the same max value as that in row 2.

It looks as if only one IntegerPicker is being created and is being used on the first row.

I tried replacing my VirtualRepeater with a Repeater, and changed my repeater row creation function to return a new instance of the item containing the IntegerPicker, instead of returning true. However this produces the error:

warning: enyo.Component.addComponent(): Duplicate component name “itemName” violates unique-name-under-owner rule, replacing existing component in the hash and continuing, but this is an error condition and should be fixed.

It seems that Repeaters need their delegates created inline, which seems quite inelegant.

This code sample illustrates the problem:

enyo.kind({
   name:"Test",
   kind:enyo.Control,
   components: [
      {
         kind: "VirtualRepeater",
         onSetupRow: "setupRow",
         components: [{
                name: "theIP", kind: "IntegerPicker", min:0
         }]
      }
   ],

   setupRow: function(inSender, inIndex) {
      if (inIndex < 3) {
         this.$.theIP.setMax(inIndex);
         return true;
      }
      return false;
   }
});

How can I create an arbitrary number of IntegerPickers in my app? Any help appreciated!

  • 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-05T01:22:48+00:00Added an answer on June 5, 2026 at 1:22 am

    What you are doing with theIP in your setupRow function is accessing a specific IntegerPicker itself, which is a child component of the Virtual Repeater. To set the max value of a given IntegerPicker corresponding to the row, give your VirtualRepeater a name attribute, like “PickerList”:

     kind: "VirtualRepeater",
     onSetupRow: "setupRow",
     name: "PickerList",
     components:[//this should be empty to begin with]
    

    Then you can access each row in the repeater like this:

    setupRow: function(inSender, pickerMax) {
    
       var newPicker = new IntegerPicker(pickerMax);
       this.$.PickerList.push(newPicker);
    

    To get a specific row in the VirtualRepeater you need to do it like this:

    this.$.PickerList[1];
    

    Here is an extended Enyo tutorial which makes use of the VirtualRepeater:
    https://developer.palm.com/content/resources/develop/extended_enyo_tutorial.html

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

Sidebar

Related Questions

I am creating an app for webOS in enyo. I have an sqllite database
I made the simple hello world NODEJS Server. I have a enyo web service
Why in component var matrix = new enyo.Control({ name:Matrix, tag: div, classes : 'strategies',
Hi I have an app that is basically a html page. I have a
I have the the repeater.js in which m getting the values on load.that is
I want to create an action bar in enyo.js.Which will be common in all
I am using HP webOS 3.0 and the Enyo framework. I have simple question
I have a repeater In which I am displaying different values.On click of each
I have a repeater In which I am displaying different values.On click of each
I have an Enyo webOS application I am developing for phones. There are several

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.