AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Openligadb.de

Ein Thema von MATASTYLE · begonnen am 22. Jul 2010 · letzter Beitrag vom 10. Dez 2013
Antwort Antwort
sintronic86

Registriert seit: 7. Dez 2009
Ort: Barsinghausen
90 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

AW: Openligadb.de

  Alt 10. Dez 2013, 14:13
Hallo Neutral General,

der Einwand ist gut und ich denke, da werde ich es auch noch hinbewegen.
Aber ich habe den Fehler bereits gefunden.

Und zwar liegt es an ein paar bestimmten Werten im "Goal":

Delphi-Quellcode:
Goal = class(TRemotable)
  private
    FgoalID: Integer;
    FgoalMachID: Integer;
    FgoalScoreTeam1: Integer;
    FgoalScoreTeam2: Integer;
    FgoalMatchMinute: Integer;
    FgoalGetterID: Integer;
    FgoalGetterName: string;
    FgoalGetterName_Specified: boolean;
// FgoalPenalty: Boolean;
// FgoalOwnGoal: Boolean;
// FgoalOvertime: Boolean;
    FgoalComment: string;
    FgoalComment_Specified: boolean;
    procedure SetgoalGetterName(Index: Integer; const Astring: string);
    function goalGetterName_Specified(Index: Integer): boolean;
    procedure SetgoalComment(Index: Integer; const Astring: string);
    function goalComment_Specified(Index: Integer): boolean;
  published
    property goalID: Integer read FgoalID write FgoalID;
    property goalMachID: Integer Index (IS_NLBL) read FgoalMachID write FgoalMachID;
    property goalScoreTeam1: Integer Index (IS_NLBL) read FgoalScoreTeam1 write FgoalScoreTeam1;
    property goalScoreTeam2: Integer Index (IS_NLBL) read FgoalScoreTeam2 write FgoalScoreTeam2;
    property goalMatchMinute: Integer Index (IS_NLBL) read FgoalMatchMinute write FgoalMatchMinute;
    property goalGetterID: Integer read FgoalGetterID write FgoalGetterID;
    property goalGetterName: string Index (IS_OPTN) read FgoalGetterName write SetgoalGetterName stored goalGetterName_Specified;
// property goalPenalty: Boolean Index (IS_NLBL) read FgoalPenalty write FgoalPenalty;
// property goalOwnGoal: Boolean Index (IS_NLBL) read FgoalOwnGoal write FgoalOwnGoal;
// property goalOvertime: Boolean Index (IS_NLBL) read FgoalOvertime write FgoalOvertime;
    property goalComment: string Index (IS_OPTN) read FgoalComment write SetgoalComment stored goalComment_Specified;
  end;
Ich habe den Code wie oben beschrieben angepasst und nun funktioniert es.
Allerdings habe ich keine Ahnung warum das so ist.


Aber ich habe jetzt andere Probleme. Ich habe das Programm jetzt soweit, dass es die Daten per "SportsdataSoap" aus dem Netz zieht und ich es in eine SQLite-Datenbank schreibe. Allerdings möchte ich nun meine Clientdatasets abfragen, bevor ich die Daten reinschreibe, ob diese bereits vorhanden sind. Aber ich bekomme bei beispielsweise folgendem Aufruf

Result := ClientDataSet_Result.Locate('ResultMatchID;ResultTypeID', VarArrayOf([AResultMatchID, AResultTypeID]), [loCaseInsensitive]) folgende Fehlermeldung:

"Exception EDatabaseError in Modul Oddset_2.exe bei 00719ACF.
Der Typ von Feld 'ResultMatchID' wird nicht unterstützt."



Die Felder in meiner SQLite-Datenbank sind alle im Integer-Format angelegt.
Vielleicht hat ja einer eine Anregung für mich!!!
Björn
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:01 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz