NetTalk Central

Author Topic: Refresh a Field??  (Read 3778 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Refresh a Field??
« 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.

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Refresh a Field??
« Reply #1 on: December 04, 2012, 01:33:36 PM »
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

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Refresh a Field??
« Reply #2 on: December 04, 2012, 02:51:16 PM »
Thanks!!!!

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Refresh a Field??
« Reply #3 on: December 10, 2012, 12:56:58 AM »
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

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Refresh a Field??
« Reply #4 on: December 10, 2012, 05:18:32 AM »
perfect less code...

Thanks... :)