Yes, i need to adds ALL values and use .addAllValues for it.
But my template layer file contain more values than may contain current feature class connected to this layer file.
And when i use .addAllValues to limit my layer file to current feature class they broken link between value in layer and value in feature class.
Example:
lyr.lyr have design to [ID]:1,2,3,4,5
shp.shp in current project have features with [ID]:1,3,5
after .addAllValues thay retain design, but it shuffle:
shp.shp lyr.lyr
1 1
3 2
5 3
why reason they doing this? and how to solve this problem?