Wenn ich eine Mitglieder-Liste per "Auswertung Mitgliedsdaten" ausgeben möchte, wie funktioniert dann die Zusatzfelder-Filterfunktion?
Ich hatte ein Zusatzfeld Mitgliedsschaftstatus angelegt, in dem entweder "aktiv" oder "beendet" steht.
Wenn ich im Zusatzfelder-Bedingungen Dialog nun entweder "aktiv" oder "beendet" eintrage und auf "starten" drücke, bricht er mit folgendem Log ab:
Code: Alles auswählen
error while executing sql statement
org.h2.jdbc.JdbcSQLException: Feld "A.FELDDEFINTION" nicht gefunden
Column "A.FELDDEFINTION" not found; SQL statement:
select distinct mitglied.* from mitglied join zusatzfelder a on a.mitglied = mitglied.id and a.FELD = ? and a.felddefintion = ? where adresstyp = 1 ORDER BY name, vorname [42122-145]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.expression.ExpressionColumn.optimize(ExpressionColumn.java:126)
at org.h2.expression.Comparison.optimize(Comparison.java:154)
at org.h2.expression.ConditionAndOr.optimize(ConditionAndOr.java:127)
at org.h2.expression.ConditionAndOr.optimize(ConditionAndOr.java:127)
at org.h2.command.dml.Select.prepare(Select.java:776)
at org.h2.command.Parser.prepare(Parser.java:201)
at org.h2.command.Parser.prepareCommand(Parser.java:213)
at org.h2.engine.Session.prepareLocal(Session.java:423)
at org.h2.engine.Session.prepareCommand(Session.java:373)
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1056)
at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:71)
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:233)
at de.willuhn.datasource.db.DBServiceImpl.execute(DBServiceImpl.java:446)
at de.jost_net.JVerein.Queries.MitgliedQuery.get(MitgliedQuery.java:476)
at de.jost_net.JVerein.Queries.MitgliedQuery.get(MitgliedQuery.java:126)
at de.jost_net.JVerein.gui.control.MitgliedControl.starteAuswertung(MitgliedControl.java:2750)
at de.jost_net.JVerein.gui.control.MitgliedControl.access$25(MitgliedControl.java:2746)
at de.jost_net.JVerein.gui.control.MitgliedControl$25.handleAction(MitgliedControl.java:2164)
at de.willuhn.jameica.gui.parts.Button$1$1.run(Button.java:152)
at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source)
at de.willuhn.jameica.gui.GUI$5.run(GUI.java:787)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
at de.willuhn.jameica.gui.GUI.startSync(GUI.java:783)
at de.willuhn.jameica.gui.parts.Button$1.widgetSelected(Button.java:146)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at de.willuhn.jameica.gui.GUI.loop(GUI.java:804)
at de.willuhn.jameica.gui.GUI.init(GUI.java:293)
at de.willuhn.jameica.system.Application.init(Application.java:143)
at de.willuhn.jameica.system.Application.newInstance(Application.java:85)
at de.willuhn.jameica.Main.main(Main.java:78)