10. Mär. 2011

for english readers

Ohne das Adressbuch ist man auf dem Mac aufgeschmissen. Und das iPhone ist ein weiterer Grund das Adressbuch zu pflegen. Richtig erfolgreich waren die Verbindungen von 4D zum Adressbuch bisher nicht. Ich habe die Verbindung über den Austausch von vCards realisiert, das war die funktionierende Variante. Außerdem habe ich die Anbindung über AppleScript und über SQLite getestet. Das eine ist zu langsame, das andere kann ich auch nicht empfehlen.

Magic of Miykao

Dieser Tage hat Keisuke Miyako das AddressBook.Plugin veröffentlicht: This plugin gives access to the Address Book shared datastore from 4D.

mainWindow

Inzwischen habe ich das Plugin gegen mein Adressbuch mit mehr als 800 Einträgen getestet. Der Datenimport aus dem Adressbuch ist erfreulich schnell. Auch der Update aus der 4D-Lösung ins Adressbuch funktioniert stante pede.

Eigentlich will ich die Daten nicht importieren sondern wie externe Datenquelle verwenden. Am Ablauf-Konzept feile ich noch.

Ich habe eine kleine Anwendung erstellt. Das Hauptfenster sehen Sie hier. In einer Listbox stelle ich alle Gruppen dar und in den Gruppen die zugeordneten Personen und Organisationen*. Wird eine Person ausgewählt, werden deren Daten nachgeladen.

Suchen über mehrere Felder und Auflisten der gefundenen Karten wird nicht mit Wartezeit erkauft.

Laden Sie sich den DBZ_ABPicker für V12 und probieren Sie es aus. Rückmeldungen erwünscht.

Die Befehle sind dokumentiert und sie funktionieren auch, wie sie sollen. Bisher hat mir noch kein Befehl gefehlt. In meine Struktur einzubauen ist auch keine Kunst. Eine Komponente sollte es werden. Doch macht eine Komponente nur als Widget Sinn. Eigentlich sind es zwei Widgets: eines liefert Liste und das amdere die Detailansicht.

Ville merci an Keisuke, für diese praktische PlugIn.

* Die Personen, die keiner Gruppe zuzuordnen sind, wurden nicht vergessen.

Sie möchten den Sourcecode haben? Kein Problem! Überweisen Sie, was es Ihnen wert ist auf mein PayPal-Konto: info@mettre.de. Was ist denn üblich?

lieber auf deutsch

MacOSX without addressbook is not a good idea. And using an iPhone is another good reason to keep the addressbook up to date. All options connecting 4D and addressbook had some flaws. Via AppleScript was much to slow, via SQLite a better not gone road. The only working exchange used vCards.

Magic of Miykao

But now we've got something better. Keisuke Miyako published the AddressBook.Plugin: This plugin gives access to the Address Book shared datastore from 4D.

mainWindow

I've tested the plugin against my addressbook with some 800 cards. Importing is pretty fast. Updating the addressbook from 4D happens instantaneously. Even more impressive is not importing at all, but keeping the addressbook a an external data-source.

I've build me a small app. As shown in the screenshot, I display all the groups and below a group all group-members*. Selecting a card loads the remaining data and displays that to the right of the list. Even querying across a couple of fields and listing the found cards is fast.

You want test that yourself? Load DBZ_ABPicker for V12 and test yourself. Feedback welcome.

The commands are documented and they work as expected. I didn't miss a command yet. Integrating into my 4D-structure was not complicated. How abouts a component? A widget-component might make sense, actually two widgets: one for the list and a second one for the detail-data.

Many thanks to Keisuke for this very helpful PlugIn.

* no I've not forgotten the cards belonging to no group

You want to have the source-code? No problem! Send a descend amount of $ or € to my PayPal-account: info@mettre.de. Finding out how much?