Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page refresh
#4
I generate the list like this:

if SQLQuery1.RecordCount > 0 then
Begin
Repeat
VValue:=VValue+'<tr>'+
'<td>'+SQLQuery1.FieldByName('CoilNumber').AsString+'</td>'+
'<td>'+SQLQuery1.FieldByName('Act_Width').AsString+'</td>'+
'<td>'+SQLQuery1.FieldByName('Act_Length').AsString+'</td>'+
'<td>'+SQLQuery1.FieldByName('Act_gauge').AsString+'</td>'+
'<td>'+'<button type="button" class="btn btn-outline-primary" onclick="return getMeetingID('+#39+SQLQuery1.FieldByName('CoilNumber').AsString+#39+','+
')">Open</button>'+SLineBreak+'</td>'+
'</tr>';

SQLQuery1.Next;
Until SQLQuery1.Eof;

The javascript event pushes some paramters into delphi components and then does a button click event cll to action some delphi code.
Reply


Messages In This Thread
Page refresh - by rburton - 05-25-2024, 10:21 PM
RE: Page refresh - by Comograma - 05-27-2024, 09:43 AM
RE: Page refresh - by Alexandre Machado - 06-04-2024, 06:46 AM
RE: Page refresh - by rburton - 06-11-2024, 09:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)