|
<< Click to Display Table of Contents >> Navigation: Telegram > 2020 > 11 > 18 > Telegram_2020-11-18T12 |
2020-11-18T12:01:01
the ' and \ don't add up.
2020-11-18T12:08:11
the script needs to be run at the bottom of the page, is AddtoInitProc run at the top?
2020-11-18T12:08:51
You don't need the script anymore
2020-11-18T12:09:01
The page may be refressed, but self.refresh and self.repaint do not work.
2020-11-18T12:09:27
every line have a click on it
2020-11-18T12:09:31
ok, let me try
2020-11-18T12:09:43
remove this
2020-11-18T12:10:36
In your code only the first td is clickable, in the script all cells are
2020-11-18T12:12:27
you need all cells, repeat onclick link in every cell
2020-11-18T12:15:52
I think I misunderstand you.
in create:
RegisterCallBack('ReadRow',
procedure(aParams: TStrings)
begin
trystrtoint(aParams.ValueFromIndex[1], WerkRijNummer)
end);
When I click I don't enter this function
2020-11-18T12:16:52
How can I refresh the page, because when the grid is changed all data on the form is new
2020-11-18T12:17:20
you DON'T need to refresh the grid
2020-11-18T12:17:40
press F12 and look in console when you click in one line
2020-11-18T12:17:45
there is any error?
2020-11-18T12:21:03
Uncaught SyntaxError: expected expression, got '}'
I replaced some ' with \ did I make a mistake?
'' + formatdatetime('HH:MM', qBonnenDatum.AsDateTime) + ''
2020-11-18T12:22:55
Look at type: code \ is different ''
2020-11-18T12:23:08
maybe you did
2020-11-18T12:56:27
Do I make a mistake?
The part of the script where 'Selected' is remove and added at the right place is the main part. (Change the backgroundcolor)
The sub part is (ReadRow) retrieving the link with the row no
So don't you think I need (like Chad said) to submit the script seperatly? Maybe with AddToInitProc? (how?)