Telegram_2020-11-18T12

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2020 > 11 > 18 >

Telegram_2020-11-18T12

Telegram link

 

2020-11-18T12:01:01

 

the ' and \ don't add up.

 


 

Telegram link

 

2020-11-18T12:08:11

 

the script needs to be run at the bottom of the page, is AddtoInitProc run at the top?

 


 

Telegram link

 

2020-11-18T12:08:51

 

You don't need the script anymore

 


 

Telegram link

 

2020-11-18T12:09:01

 

The page may be refressed, but self.refresh and self.repaint do not work.

 


 

Telegram link

 

2020-11-18T12:09:27

 

every line have a click on it

 


 

Telegram link

 

2020-11-18T12:09:31

 

ok, let me try

 


 

Telegram link

 

2020-11-18T12:09:43

 

remove this

 


 

Telegram link

 

2020-11-18T12:10:36

 

In your code only the first td is clickable, in the script all cells are

 


 

Telegram link

 

2020-11-18T12:12:27

 

you need all cells, repeat onclick link in every cell

 


 

Telegram link

 

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

 


 

Telegram link

 

2020-11-18T12:16:52

 

How can I refresh the page, because when the grid is changed all data on the form is new

 


 

Telegram link

 

2020-11-18T12:17:20

 

you DON'T need to refresh the grid

 


 

Telegram link

 

2020-11-18T12:17:40

 

press F12 and look in console when you click in one line

 


 

Telegram link

 

2020-11-18T12:17:45

 

there is any error?

 


 

Telegram link

 

2020-11-18T12:21:03

 

Uncaught SyntaxError: expected expression, got '}'

 

I replaced some ' with \ did I make a mistake?

 

'' + formatdatetime('HH:MM', qBonnenDatum.AsDateTime) + ''

 


 

Telegram link

 

2020-11-18T12:22:55

 

Look at type: code \ is different ''

 


 

Telegram link

 

2020-11-18T12:23:08

 

maybe you did

 


 

Telegram link

 

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?)