NetTalk Central

Author Topic: Retrive Value from Browse??  (Read 2986 times)

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Retrive Value from Browse??
« on: January 25, 2014, 06:31:48 AM »
i know that with primary key i have a value in session variable, but how i can retrieve any other value in the browse without re-get to the database to obtain the value..

thanks..

look my new project www.crimpr.net:88 pure nettalk the style is pure css, the learning curve for css is very difficult

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Retrive Value from Browse??
« Reply #1 on: January 25, 2014, 09:01:52 PM »
You can cache the record values in the session queue yourself if you like, but nettalk is only storing the primary key field.
Cheers
Bruce

osquiabro

  • Hero Member
  • *****
  • Posts: 687
    • View Profile
    • Email
Re: Retrive Value from Browse??
« Reply #2 on: January 26, 2014, 07:29:47 AM »
i write this code in TakeEvent -1 Before RowClicked :

    p_web._LoadRecord(CatastroCasos,Cat:PK_Casos)
    p_web.FileToSessionQueue(CatastroCasos)
    p_web.SetSessionValue('Cat:NumeroCatastro',Cat:NumeroCatastro)

 the variable is filled but i don't if is a correct Embedded for this..
   

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Retrive Value from Browse??
« Reply #3 on: January 26, 2014, 09:29:50 PM »
you should do this code in the procedure where you use the session value. For example if you have a button on the browse which then does something to the record, you should load the record there. If you are just displaying fields on the screen on the "onclick" then you can do it in the RowClicked event.

cheers
Bruce