jQWidgets Forums

jQuery UI Widgets Forums General Discussions jqxDataAdapter – “id” Property for source Object

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • mtbvfr
    Member

    Hi,

    Whether or not the “id” Setting is included as a Property for the “source” Object, the Resulting Dataset Object has a Name/Value pair with a Name of “uid”.

    When the “id” Setting is included and the Original Dataset has a matching Data Field, then, the data of the Original Dataset is used to populate the Value for the Name/Value pair with a Name of “uid” in the Resulting Dataset.

    When the “id” Setting is included and the Original Dataset does NOT have a matching Data Field, then, the Value for the Name/Value pair with a Name of “uid”, in the Resulting Dataset, is populated incrementally starting with 0 in the order that the Original Dataset is read.

    Also, when the “id” Setting is NOT included, then, the Value for the Name/Value pair with a Name of “uid”, in the Resulting Dataset, is populated incrementally starting with 0 in the order that the Original Dataset is read.

    Now, I would have expected that if the resulting dataset Object was to be searched based on the data of the ID field of the Original Dataset, then, you would have thought that the Original Name (e.g. “id” as in the beverages.txt file), and not “uid”, would be used for the Key parameter.

    So, for what reason has an “id” Property been specified in some of the demos when the Original Dataset does not have a matching Data Field?

    Also, whether or not the “id” Property has been specified and whether or not there is a matching Data Field in the Original Dataset, why does the Resulting Dataset use the Name of “uid”?

    Thank you, Michael.


    Peter Stoev
    Keymaster

    Hi,

    “uid” is something which is internally used in the widgets and is either auto-generated or generated by using the source object’s id parameter. It is not related to the Name/Value pair of the items.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.