Hello Team,
I am considering sending the following suggestion to support, and I would appreciate your feedback before I do.
Currently, each field has a property called "name". Based on this property, fields are referenced in code using field(name).
For example, let’s assume I created a field with the name "FieldName", and I have already written code for a JavaScript field using this reference. Later, I realize that "FieldName" is no longer the best name and I would like to rename it to "FieldNameNew".
At that point, I am forced to search through all of my code and replace every instance of:
field("FieldName")
with:
field("FieldNameNew")
My suggestion would be to rename the current "name" property to "id", and introduce a new property called "name".
All code references would then use the stable "id" value (which means no changes would be required for existing code), while the field would be displayed in the UI using the "name" property if it is not null, otherwise it would fall back to the "id".
This would also make it easier to avoid writing code with field names in Greek or other display-oriented labels.
What is your opinion?
Thank you,
George
--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/8ebc323a-965e-426a-8278-76c34f406153n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/1fef6e07-10c3-40b7-bf01-81ee54f0fe2fn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/98743a58-c161-466f-ad20-2e233ba2f09cn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/4e9c7e98-3bdc-4572-b5f7-240dabb1cf71n%40googlegroups.com.