NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on January 25, 2014, 06:31:48 AM

Title: Retrive Value from Browse??
Post by: osquiabro 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
Title: Re: Retrive Value from Browse??
Post by: Bruce 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
Title: Re: Retrive Value from Browse??
Post by: osquiabro 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..
   
Title: Re: Retrive Value from Browse??
Post by: Bruce 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