loadData

fun loadData(id: Any?, block: DataLoaderBuilder.() -> Unit): Map<String, Any?>?

Loads the record with id according to the mapping in block (the DSL from FormLoader.kt).

Return

Values under control paths, or an empty map when id is null (new record). null when loading failed (database error, missing record) - a dialog with the reason has already been shown, and initData should pass the null on.