Key with today()

Hello,

 

I want to create a reliable key and any columns can do date.

I want to do it by concatenate the date and the time of NOW() but it say that :

"The key column 'ID' of table 'Installation' is not a legal key because it contains an AppFormula whose value may change over time. We chose a new key for 'Installation'."

I try to take the day by "date(today())" but it's don't work and i think i'm wrong by this way.

My code is : concatenate(today(),[Ville],[Nom client],[Appareils],[Table])

Do you have any idea to resolve that?

it's possible to create a line which will registered the date when we enter a new line ?

Thanks you to read

Solved Solved
0 6 135
2 ACCEPTED SOLUTIONS

Your original expression is fine, it's just that you need to use it in Initial Value instead of App Formula. Which is mostly explained by the error message "is not a legal key because it contains an AppFormula whose value may change over time"

Read here to further understand the difference:

https://help.appsheet.com/en/articles/961507-app-formulas-and-initial-values

 

I recommend using UNIQUEID() for a key value.

https://help.appsheet.com/en/articles/1023086-what-is-a-key

View solution in original post

  1. Add a new real column to the sheet
  2. Manually fill in unique values for all existing rows (I use the formula =DEC2HEX(RANDBETWEEN(0, 999999999), 8 ) , then copy and paste values only)
  3. Regenerate Structure on the Table in the app editor
  4. Set UNIQUEID() as Initial Value

View solution in original post

6 REPLIES 6

Your original expression is fine, it's just that you need to use it in Initial Value instead of App Formula. Which is mostly explained by the error message "is not a legal key because it contains an AppFormula whose value may change over time"

Read here to further understand the difference:

https://help.appsheet.com/en/articles/961507-app-formulas-and-initial-values

 

I recommend using UNIQUEID() for a key value.

https://help.appsheet.com/en/articles/1023086-what-is-a-key

I have the same error when i try to use uniqueid and i can't modify the type of the column ...

this is because it's a virtual column?


this is because it's a virtual column?


Yes.

Do you know if it's possible to create a column which will do that in excel ? or do something to resolve this problem...?

  1. Add a new real column to the sheet
  2. Manually fill in unique values for all existing rows (I use the formula =DEC2HEX(RANDBETWEEN(0, 999999999), 8 ) , then copy and paste values only)
  3. Regenerate Structure on the Table in the app editor
  4. Set UNIQUEID() as Initial Value

Merci merci merci ! ๐Ÿ˜„ i understand now 

Top Labels in this Space