Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
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.
is working on a reply...