Saturday, May 10, 2014

I worked more than one day on the following problem:

  • Manuell Adresse erstellen: wenn man eine Stadt im insert window eingibt, wird das Fenster beendet. Das ist nicht richtig, aber technisch noch wieder eine Herausforderung. Bisher funktionieren active fields so, dass sie sozusagen automatisch im Hintergrund auf den Speichern-Button klickten. Dadurch sind sie in Insert Windows nicht anwendbar. Beim Erstellen einer Adresse ist das aber nötig. Ich denke an eine neue Aktion “validate”: ähnlich wie Speichern, aber auf dem Server dann ohne das letzte save().

The bad news: Lino still cannot handle active fields in an insert window.

The good news: I simply removed the zip_code field from the insert window of ml.addresses.Addresses, and this might be a surprisingly good workaround, probably even a better solution than what I believed to be the only solution.

The zip_code and city fields are still active, but Lino now takes care to make them active only in a detail window and not in an insert window.

ml.countries.CountryCity defines the behaviour of synchonizing zip_code and city (where appropriate).