NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto on May 20, 2020, 12:42:30 PM

Title: Browse EIP file drop server code problem
Post by: Alberto on May 20, 2020, 12:42:30 PM
Ive twiked example 21 adding a drop EIP column to the Customers Browse to get the Shipper.
I need to use the data selected in the drop in the server code and its always blanked
Ive tryed using
p_web.AddLog(SHI:ShipperCode&' '&SHI:Shipper)
p_web.AddLog(p_web.gsv('SHI:ShipperCode')&' '&p_web.gsv('SHI:Shipper'))
and all is blanked
Even if you add the fields in the view tab.
Example 21 attached.

Please I need to solve this ASAP
Thanks

Title: Re: Browse EIP file drop server code problem
Post by: Bruce on May 20, 2020, 10:03:16 PM

>> p_web.AddLog(SHI:ShipperCode&' '&SHI:Shipper)
>> p_web.AddLog(p_web.gsv('SHI:ShipperCode')&' '&p_web.gsv('SHI:Shipper'))

Given that the browse is on Customers, so CUS:ShipperCode is the value being updated,
there's no point in logging the values in SHI

The drop itself seems to work from what I can tell here

cheers
Bruce
Title: Re: Browse EIP file drop server code problem
Post by: Alberto on May 21, 2020, 01:47:27 AM
Bruce, I just add those lines to see if I have this values,
I need to Log the change of the shipper in another file and then I need this values in the "server code" embed, and those values are blanked.

I need to log a field from the Shippers that is not the value nor the description of the drop, so Ive added it in the drop view, but no shippers field values are present in the server code embed.

Now thinking, I can reget the shippers record using the Customer field, but as I recall it works ok in a Drom on a form.
Title: Re: Browse EIP file drop server code problem
Post by: Bruce on May 23, 2020, 12:37:55 AM
>> Bruce, I just add those lines to see if I have this values,

well I guess the answer then is "no you don't".
What you do have is  CUS:ShipperCode

Cheers
Bruce
Title: Re: Browse EIP file drop server code problem
Post by: Alberto on May 23, 2020, 05:37:09 AM
Ok, but then what is the use of view fields?