Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler Auslesen MYSQL #17

Open
Pillowg1rl opened this issue May 20, 2020 · 2 comments
Open

Fehler Auslesen MYSQL #17

Pillowg1rl opened this issue May 20, 2020 · 2 comments

Comments

@Pillowg1rl
Copy link

Hi. Der Fehler mit dem auslesen der MYSQL ist wieder aufgetreten. ich versuche das ganze mal so gut es geht zu rekonstruieren:
ListHelpKategorie1 := leya.listrows("HelpKategorien") (Meine letzte Scriptzeile)

062: query := "?action=list_rows&table=" table
063: Return,this._queryJSON(query)
162: response := this._URLDownloadToVar(this.server a "&key=" this.key)
182: obj := ComObjCreate("WinHttp.WinHttpRequest.5.1")
183: obj.Option(4) := 0x0100 + 0x0200 + 0x1000 + 0x2000
184: obj.Open("GET", url)
185: obj.Send() (6.95)

GnYWvj9myn
SciTE_aM8Dp1hCZS
Zwischen den beiden Fehlermeldungen kam keine neue Script-Zeile hinzu.

Wenn man beide Meldnungen mit "Ja" bestätigt, bekommt man eine leere (in diesem Fall) DDL und im Debug: <!--response="{"data":null,"error":0,"affectedRows":0}"-->
Sobald man das Fenster neu öffnet und quasi den MYSQL Befehl nochmal ausführt, bekommt man das gewünschte Ergebnis.

@kevgk
Copy link
Owner

kevgk commented May 21, 2020

Evtl. Race Condition. Hört sich an als würdest du probieren die Daten der DB zu verwenden, bevor die API sie holen konnte. Code der Abfrage und den Teil der GUI posten, in dem die DDL "befüllt" wird.

@Pillowg1rl
Copy link
Author

Pillowg1rl commented May 21, 2020

ListHelpKategorie1 := leya.listrows("HelpKategorien") ; Reads out of MYSQL
loopLHK := ListHelpKategorie1.affectedRows+1
Loop, % LoopLHK
ListHelpKategorie .= ListHelpKategorie1.Data[A_Index-1] . "|"

open_help:
Gui, 23:Font, S12 Arial
Gui, 23:Add, DropDownList, x22 y29 w270 gListFuellen vDropbox_Auswahl Choose%ChooseDDL% , %ListHelpKategorie%
Gui, 23:Add, ListBox, x22 y69 w270 h550 g vlistboxhelp,
Gui, 23:Add, Button, x42 y639 w100 h30 , Mehr Hilfe
Gui, 23:Add, Button, x172 y639 w100 h30 , Beenden
Gui, 23:Add, Edit, x302 y28 w680 h585 +ReadOnly ,

Gui, 23:Show, w996 h700, Help
return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants