Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SpecialValues - more info on this?

    taking a look at specialValues for the first time and I'm not able to get it to work.

    Browser: Chrome (latest version)
    SmartClient LGPL: Version v10.0p_2014-10-06/LGPL Development Only (2014-10-06)

    I'm not seeing the special values in our dropdown at all. However, if I select an item and then unselect it, I'm seeing the "None" in the combobox item. I'm using a build from Oct 6th - I'll try to update and see if it starts working.

    I've also noticed some inconsistencies with the documentation / examples around this new feature I wanted to bring to your attention:

    If I look at the showcase example here:
    http://www.smartclient.com/#specialValuesNewSample

    This seems to contradict the documentation shown here:
    http://www.smartclient.com/docs/10.0/a/b/c/go.html#classAttr..PickList.emptyStoredValue

    If you look at the defaultValue for the constant, it is "emptyValue" but the code example shows "EmptyValue"

    Furthermore, I'm not able to find a central place that has all the possible constants / values that may be provided in the specialValues map. Is there a list of these somewhere? Specifically "All" and "None".

    Finally, is there a way to have a specialValue also call a function that we write? I'm assuming no since it must be provided as a valueMap.

    #2
    Hi!
    Some responses inline:
    I'm not seeing the special values in our dropdown at all. However, if I select an item and then unselect it, I'm seeing the "None" in the combobox item. I'm using a build from Oct 6th - I'll try to update and see if it starts working.
    We'll need a way to reproduce this problem if it persists for you, as this works fine in the samples.
    I've also noticed some inconsistencies with the documentation / examples around this new feature I wanted to bring to your attention:

    If I look at the showcase example here:
    http://www.smartclient.com/#specialValuesNewSample

    This seems to contradict the documentation shown here:
    http://www.smartclient.com/docs/10.0/a/b/c/go.html#classAttr..PickList.emptyStoredValue

    If you look at the defaultValue for the constant, it is "emptyValue" but the code example shows "EmptyValue"
    This is indeed a bug in the sample. We'll fix it.

    Furthermore, I'm not able to find a central place that has all the possible constants / values that may be provided in the specialValues map. Is there a list of these somewhere? Specifically "All" and "None".
    There are no other possible constants representing All or None or anything else.

    Finally, is there a way to have a specialValue also call a function that we write? I'm assuming no since it must be provided as a valueMap.
    We don't currently have a function to generate special values at runtime. If this is something you really need it might be something we could prioritize as a feature sponsorship. Let us know if you'd be interested and we'll determine how much work it would be.

    Regards
    Isomorphic Software

    Comment


      #3
      I guess what I was asking is what are the other built-in constants such as "**emptyValue**"?

      How do I do "select all"? What is the String value / constant for that?

      I understand that the other values in the example are arbitrary (-1 for example).

      Comment


        #4
        There are no other built-in constants for specialValues. There is no constant for "select all".

        Comment

        Working...
        X