Telegram_2024-04-22T12

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2024 > 04 > 22 >

Telegram_2024-04-22T12

Telegram link

 

2024-04-22T12:07:52

 

Hello, I am doing simple tests to learn. I pull data from SQL with Datatables. Then I try to list. I want to add a button in the listing, but I couldn't do it. Could you please share your experiences?

 

while not UserSession.qry_1.Eof do

 

begin

 

wresult := wresult + '['+

 

'\'+StringReplace(Trim(UserSession.qry_1.FieldByName('id').AsString), '\', '\\\', [rfReplaceAll])+'\, '+

 

'\'+StringReplace(Trim(UserSession.qry_1i.FieldByName('plaque').AsString), '\', '\\\', [rfReplaceAll])+'\, '+

 

'\'+StringReplace(Trim(UserSession.qry_1.FieldByName('mod').AsString), '\', '\\\', [rfReplaceAll])+'\, '+

 

'\'+StringReplace(Trim(UserSession.qry_aracListesi.FieldByName('model_year').AsString), '\', '\\\', [rfReplaceAll])+'\, '+

 

'\'+StringReplace(Trim(UserSession.qry_1.FieldByName('soul').AsString), '\', '\\\', [rfReplaceAll])+'\ '+

 

//''+

 

//'\ '+

 

//' \ '+

 

// '\ '+

 

// ' \ '+

 

'],';

 

UserSession.qry_1.Next;

 

end;

 

UserSession.qry_1.Close;

 

if wtotal <= 0 then wresult := wresult + ']}'

 

else wresult := LeftStr(Trim(wresult),Length(Trim(wresult))-1) + ']}';

 

aReply.WriteString(wresult);

 

Result:=True;

 

Where is the mistake in my code?