NetTalk Central

Author Topic: Passing data from a browse to another table's form  (Read 2949 times)

jorgemir

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Email
Passing data from a browse to another table's form
« on: February 25, 2011, 04:16:39 AM »
I'm trying to use Other button to insert data from one table into a different table. Now that Other button works, I see that I can not get the p_web.GSV('Field') that contains (suposedly) the row id that Other exports to the form. Or I'm doing the wrong thing.
I use
Pro:codigo=p_web.gsv('Pro:codigo')  ! Being Pro:Codigo the key field of the browse table
if access:productos.fetch(Pro:codkey)
else
    p_web.ssv('Codigo',clip(pro:codigo))
    p_web.ssv('Descripcion',clip(pro:descripcion))
    p_web.ssv('PVP',clip(pro:pvp)
end

Now, this is coded in After Opening Files. Nothing comes from the row id and nothing is readed from the file

am I wrong?

Thanks
Jorge