Delayed reaction with `fieldtype` statement


#1

If, in the data sheet, I execute this code from the Action menu …

addfield "Leader"
field Leader         // or field "Leader"
fieldtype "integer"

… and then open the Properties panel for that new field, it is shown as a Text field. If I then click in another field and return to the “Leader” field (with the Properties panel still open), it displays as an integer field.

I find this confusing.


#2

I’ve created a bug report.

It’s actually not necessary to click in another field. Simply clicking on the “Leader” field will update the display of the properties panel.