Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthieu Nelmes 102 posts 385 karma points
    Sep 23, 2015 @ 12:29
    Matthieu Nelmes
    0

    Populating a Unique ID for each grid row

    I'm after suggestions or ideas for populating a unique(or auto-incremented) value for each grid row added.

    This way I have an easy way to reference back to the row as I'm looking at creating relationships between grid rows and other docTypes.

  • Matthieu Nelmes 102 posts 385 karma points
    Sep 23, 2015 @ 14:41
    Matthieu Nelmes
    100

    Ok, I've done it by adding a Guid to each row.

    Then I Hooked into the ContentService_Publishing event and check for whenever the property is edited.

    For each row, it checks to see if a Guid already exists (editing and existing row) or if no Guid exists (a new row has been added).

    I then re-save the data as a Json Object.

    The only thing I'm now unsure of is how to hide the Guid from the end user as it's of no interest to them.

Please Sign in or register to post replies

Write your reply to:

Draft