W
|
WilliamBDevClub member 12/17/2018 |
You could use this: ctrlH2.setValue(ctrlH1.getValue() + (1 * 60 * 60 * 1000));
|
G
|
georgweber author 12/17/2018 |
You could use this: ctrlH2.setValue(ctrlH1.getValue() + (1 * 60 * 60 * 1000));
|
G
|
georgweber author 12/17/2018 |
Thank you for answer, but does´t work the code now look like this: var ctrlH1 = Runner.getControl(pageid, 'H1'); var ctrlH2 = Runner.getControl(pageid, 'H2'); function func() { ctrlH2.setValue(ctrlH1.getValue() + (1 60 60 * 1000)); }; ctrlH1.on('change', func); and de result is 08:003600000 |
W
|
WilliamBDevClub member 12/17/2018 |
|
G
|
georgweber author 12/20/2018 |
Sorry my bad. Try this.
|
W
|
WilliamBDevClub member 12/20/2018 |
Sorry my friend. Do not work. The result is "NaN"
|
A
|
ayctech 12/27/2018 |
a solution could be add by sql, create a new column in your select, for example h3, add an hour to h3 and assign that value to h2. |