Announcement

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

    Convenience method ValuesManager.getValuesAsRecord() missing

    Hi Isomorphic,

    I'm using current 5.1p and noticed that DynamicForm.getValuesAsRecord() is not available on ValuesManager.
    Could you add it? Low priority, as one can do the conversion in code.

    Best regards
    Blama

    #2
    Hi Isomorphic,

    I changed my code again, so I do not need the method anymore.
    If you are not going to add it, would this be the correct way to do it oneselfs?
    Code:
            Record r = new Record();
            @SuppressWarnings("unchecked")
            Map<String, Object> map = valuesManager.getValues();
            for (Map.Entry<String, Object> entry : map.entrySet())
                r.setAttribute(entry.getKey(), entry.getValue());
    Best regards
    Blama

    Comment


      #3
      Sorry, this request was lost in the shuffle. We do plan to add the mentioned convenience method, and the code you've shown is basically how it will work, yes.

      Comment


        #4
        Hi Isomorphic,

        everything fine here. The thread is only hours old.

        Best regards
        Blama

        Comment

        Working...
        X