How calculate sequential values based on group field?

المشرف العام

Administrator
طاقم الإدارة
I calculate sequential values in field [ORDER_ID] What need change in script to calculate sequential values based on group field [GROUP_ID]. I select values manually and use autoincrement () in Field Calculator.

Parser: Python Expression: autoIncrement()Pre-Logic Script Code:

rec=0def autoIncrement(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = pStart else: rec = rec + pInterval return rec



أكثر...
 
أعلى