This project is read-only.

slam.config :: ID versus Name Attribute

Apr 5, 2009 at 3:54 PM
For Lists and Content Types Attributes we can currently choose the "Name" and  "ID" of a List.
Are "Name" and "ID" exclusive in a sense that we are supposed to use just one of the two ?
When yes: Will the current and future versions of SLAM come back with an error when both are used ?
When not: What is the precedence resp. which one will be taken first: ID or Name ?
Is there special meaning on having them both ?

I am currently building an XSD on this (I will share with you once its finished) - so for me it is quite important to become precise on those details.
Kind regards
Apr 6, 2009 at 12:41 AM
Using both will not cause a problem but the ID will be preferred (but it will also try to match on the Name if the ID matching fails). 

From comments:
//Selection precedence follows:
//If ID is present and a valid, Get type that matches ID
//If no type matches ID, Get type that has TableName matching the typeName
//Finally, if nothing yet has been selected get the first node that has Name matching the