jasonkneen / nl.fokkezb.form

[UNMAINTAINED] Alloy TableView Form Widget
http://form.fokkezb.nl/docs/
43 stars 15 forks source link

Picker and Select issues #11

Closed adamkearsley closed 9 years ago

adamkearsley commented 9 years ago

PICKER

When adding a picker (as per test app)

{
        name: 'date',
        label: 'Picker type (date)',
        type: 'picker',
        picker: {
          type: Ti.UI.PICKER_TYPE_DATE,
          valueFormat: 'DD-MM-YYYY'
        },
        value: '04-07-2014'
}

i get error

[ERROR] :  Script Error {
[ERROR] :      column = 24;
[ERROR] :      line = 24;
[ERROR] :      message = "undefined is not an object (evaluating '$.pickerRow.add')";
[ERROR] :      stack = "focus\nonTableSingletap";
[ERROR] :  }

the $.pickerRow object doesn't appear to be reference anywhere? Its not in the view picker.xml view and one isn't passed to it.

SELECT

When adding a select (as per test app)

{
      name: 'cities',
      label: 'Select type (obj)',
      type: 'select',
      options: {
        'ams': 'Amsterdam',
        'nyc': 'New York City',
        'lnd': 'London'
      },
      value: 'nyc'
}

i get no errors, a select is shown with a title and a cancel but no options?

adamkearsley commented 9 years ago

Created a PR https://github.com/FokkeZB/nl.fokkezb.form/pull/12

FokkeZB commented 9 years ago

Fixed by #12