What could possibly be the use of having a default value for the id attribute (which also serves as primary key) of an entity?
Hi Nishit,
When you set entity attribute as primary key and Auto_number than no need to save any default value (and does not work in this case) but
if not set auto-number than set default value and when you not pass value from your logic it set delfult value but
Primary key is always Unique.
IF Entity attribute is other than primary key then you can set default value like-datetime column for currdatetime,
text for "Default Value",Integert for 0
Hope this will help you.
Regards
Rahul Sahu
There is Four data type Attribute for Primary Key-
1.Text
2.Integer
3.Long Integer
4.Entity Identifire
https://www.outsystems.com/forums/discussion/47095/entity-identifiers-datatype-explanation/
https://success.outsystems.com/Documentation/11/Developing_an_Application/Use_Data/Data_Modeling/Entities
Hi Rahul ,
Thanks for you reply.
But my question was: Since the id can be set as auto-numbered , what is the use of having a default value for it?
Because when it is auto-numbered , we do not need to set a value anyway?
Thanks Rahul