I do not want to teach me how to "create pdf", i need some advise, if is possible or not...
In form I watching host values, for now I add group with couple of fields:
Watched GROUP,PRE(ww)
heartbeat STRING(255)
Pressure_1 STRING(255)
Pressure_2 STRING(255)
O_level STRING(255)
N_level STRING(255)
X_level_a STRING(255)
X_level_b STRING(255)
Y_level_a STRING(255)
Y_level_b STRING(255)
END
In form, in generateform, after <form> embed:
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:heartbeat') , 'ww:heartbeat')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:Pressure_1') , 'ww:Pressure_1')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:Pressure_2') , 'ww:Pressure_2')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:O_level') , 'ww:O_level')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:N_level') , 'ww:N_level')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:X_level_a') , 'ww:X_level_a')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:X_level_b') , 'ww:X_level_b')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:Y_level_a') , 'ww:Y_level_a')
p_web.ntWatch(loc:formname,'hostvalue', '#' & p_web.nocolon('ww:Y_level_b') , 'ww:Y_level_b')
Those host values is already populated on the form, all works well.
Now, when on server side, the value Heartbeat is changed, or any other values, I "pushed" it to all clients:
s_Web.SHV('ww:heartbeat',Heartbeat,0)
s_Web.SHV('ww:Pressure_1',Pressure_1,0)
s_Web.SHV('ww:Pressure_2',Pressure_2,0).... and so on...
ok, the clients see the new values...
And now, when client(s) got the changed values... I need to start AlarmIt() procedure, for example, or simply on site do:
loc:alert = 'The value of ....'&p_web.ghv('ww:heartbeat')&', is changed...!'
do SendMessage
This is the part I cannot accomplish, I need to "trap" host value changes...