Hi, there.
Is there a way to generate a unique ID in for a row based on some adjacent cells?
1. If the row is unique from any other row, it gets a unique ID. What would make it unique is if just one of the cells' values is different from another row.
2. If the end of row doesn't yet have an ID (e.g. is newly added), it will get one (button press?).
3. New rows would get added all the time. It's very unlikely that a new row would have an exact match to a previous row.
[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD]dateshipped[/TD]
[TD]datereceived[/TD]
[TD]palletname[/TD]
[TD]itemname[/TD]
[TD]uniqueID[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/1/2017[/TD]
[TD]12/1/2018[/TD]
[TD]CITRUS[/TD]
[TD]ORANGE[/TD]
[TD]aba124[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/1/2017[/TD]
[TD]12/1/2018[/TD]
[TD]CITRUS[/TD]
[TD]LIME[/TD]
[TD]ggh392[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/1/2018[/TD]
[TD]4/1/2018[/TD]
[TD]VEGGIES[/TD]
[TD]CUCUMBER[/TD]
[TD]hhf356[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/1/2018[/TD]
[TD]4/1/2018[/TD]
[TD]VEGGIES[/TD]
[TD]LIME[/TD]
[TD](generate)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I looked through the "random" function but have no idea of how to apply it here. Any ideas?
Thank you.
Is there a way to generate a unique ID in for a row based on some adjacent cells?
1. If the row is unique from any other row, it gets a unique ID. What would make it unique is if just one of the cells' values is different from another row.
2. If the end of row doesn't yet have an ID (e.g. is newly added), it will get one (button press?).
3. New rows would get added all the time. It's very unlikely that a new row would have an exact match to a previous row.
[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD]dateshipped[/TD]
[TD]datereceived[/TD]
[TD]palletname[/TD]
[TD]itemname[/TD]
[TD]uniqueID[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/1/2017[/TD]
[TD]12/1/2018[/TD]
[TD]CITRUS[/TD]
[TD]ORANGE[/TD]
[TD]aba124[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12/1/2017[/TD]
[TD]12/1/2018[/TD]
[TD]CITRUS[/TD]
[TD]LIME[/TD]
[TD]ggh392[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/1/2018[/TD]
[TD]4/1/2018[/TD]
[TD]VEGGIES[/TD]
[TD]CUCUMBER[/TD]
[TD]hhf356[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2/1/2018[/TD]
[TD]4/1/2018[/TD]
[TD]VEGGIES[/TD]
[TD]LIME[/TD]
[TD](generate)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I looked through the "random" function but have no idea of how to apply it here. Any ideas?
Thank you.