Jump to content

Treelist, Sqlite3 Database'den Veri Çekme


justpl4y
 Share

Recommended Posts

Treelist ile sqlite'tan veri çekerken sadece row1'e veri girişi yapabiliyorum.
Row2, row3 vs. veri alamıyorum.
Help dosyasında her row için aralara "|" işareti konması gerektiği yazıyor. "row1 | row2 | row3" şeklinde yazdığımda işe yarıyor.
Ancak, databaseden veri çekmeye çalıştığımda. sonuc.ad | sonuc.soyad  gibi, hata veriyor.

2 Gündür uğraşıyorum hala bir sonuca varamadım.

Proje dosyası linktedir.
Database projenin içinde.

http://www.mediafire.com/?hnosechcd78uzoz

Link to comment
Share on other sites

şu şekilde yaparsan listeleyecektir:

TreeList.AddRow("Plugin1", sonuc.ad .. "|" .. sonuc.soyad .. "|" .. sonuc.tel, nil, nil, nil);

yani sonuc.kolon_ismi1 ".. | .." sonuc.kolon_ismi2 şeklinde yazacaksın

Link to comment
Share on other sites

SQLite3Cursor, err = SQLite3Connection:execute("SELECT * FROM musteri");
sonuc = SQLite3Cursor:fetch({},"a");

while sonuc do

--TreeList.AddRow("Plugin1", sonuc.ad, nil, nil, nil);
TreeList.AddRow("Plugin1", sonuc.ad.."|"..sonuc.soyad.."|"..sonuc.tel, nil, nil, nil);

 

sonuc = SQLite3Cursor:fetch(sonuc, "a");

end

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...