Skip to main content
Solved

Copying columns also copies the "identity" value


Tom van Druten
Warrior
Forum|alt.badge.img+6
When I copy columns in the SF it also copies the value of "Identity". I cannot imagine a situation where you want to have two columns with the same name with "identity" = 1 on different tables / views.

In what situation would you want this to be possible?

Best answer by Jeroen van den Belt

You want this to be possible because the GUI/Indicium must be signalled that the concerning field in the view is an auto numbering field. It needs this information so that after adding a record, it can retrieve the correct value in the right way.

You can do this by setting the identity checkbox for the corresponding column in the view, which in this case is already done since you were copying the column.
View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

2 replies

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
You want this to be possible because the GUI/Indicium must be signalled that the concerning field in the view is an auto numbering field. It needs this information so that after adding a record, it can retrieve the correct value in the right way.

You can do this by setting the identity checkbox for the corresponding column in the view, which in this case is already done since you were copying the column.

Forum|alt.badge.img+4
I don't see why having two identity columns with the same name in different tables is necessarily strange. You could argue that whenever this situation occurs, the developer is using poor naming conventions, but that's just an opinion and there might be situations in which it is actually the best solution. There is nothing inherently wrong with naming all of your identity columns "id" and I bet there are projects out there for which this is the case.

In general it is good design to keep things simple and obvious and not make exceptions based on assumptions about a user's intent. If we were to do something about this, I would suggest a transparant solution such as adding a "Include identity" checkbox to the "Copy column" task. If you think that's a good idea, you can submit it.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings