NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on December 04, 2012, 12:42:59 PM
-
I have a drop and i need refresh another field with a value selected in drop, i have this code in my: Validate::Bil3:RouteId Routine, 5 Add Server Code Here:
CASE Bil3:RouteId
OF 6 OROF 7
Bil3:ShipperId = p_web.GSV('Cus3:CustomerId')
Bil3:ShipperName=p_web.GSV('CustomerName')
END
do Refresh::Bil3:ShipperName ! Field is auto-validated
do SendMessage
This field Bil3:ShipperName is that i need to refresh after select a value in my drop
I put a message and the variable have a correct value but the screen is not refresh.
-
try this:
CASE Bil3:RouteId
OF 6 OROF 7
Bil3:ShipperId = p_web.GSV('Cus3:CustomerId')
Bil3:ShipperName=p_web.GSV('CustomerName')
END
p_web.SSV('Bil3:ShipperName',Bil3:ShipperName)
do Refresh::Bil3:ShipperName ! Field is auto-validated
do SendMessage
Regards,
Robert
-
Thanks!!!!
-
Hi,
As a matter of interest, why not just:
CASE Bil3:RouteId
OF 6 OROF 7
p_web.ssv('Bil3:ShipperId', p_web.GSV('Cus3:CustomerId') )
p_web.ssv('Bil3:ShipperName', p_web.GSV('CustomerName') )
END
do Refresh::Bil3:ShipperName ! Field is auto-validated
do SendMessage
Thanks, just wondering?
Charl
-
perfect less code...
Thanks... :)