NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: kashiash on April 18, 2010, 10:11:01 PM

Title: how to call change mode form where PK value is stored in SessionValue queue ?
Post by: kashiash on April 18, 2010, 10:11:01 PM
i try put code like into init form routine at begining:
       if Access:WyliczenieSkladki.Fetch(Wyl:KeyKalkulacjaNrKolejny)
          ! todo przejscie do forma z bledem
           db.debugout('nie znalazlem kalkulacji nr '&p_web.GetSessionValue('PropozycjaSkladki')&' dla: ' & p_web.GetSessionValue('Kalkulacja') )
       else   
          db.debugout('pobrana sk?adka kalkulacji to: '&Wyl:PkWyliczenieSkladki & 'skladka:' &  Wyl:Skladka & ' opis: ' & Wyl:OpisUbezpieczenia)
          p_web.SetValue('Wyl:PkWyliczenieSkladki',Wyl:PkWyliczenieSkladki)
                p_web.SetSessionValue('Wyl:PkWyliczenieSkladki',Wyl:PkWyliczenieSkladki)

I observe in debugview i fetch correct value but on form i get few data from previous record, whta's wrong ?
Title: Re: how to call change mode form where PK value is stored in SessionValue queue ?
Post by: kevin plummer on April 19, 2010, 04:11:46 AM
It would be great if you could post an example app.
Title: Re: how to call change mode form where PK value is stored in SessionValue queue ?
Post by: kashiash on April 19, 2010, 11:33:24 AM
its app based on sql and its not easy to make example app, i try to port this into tps and will send here
Title: Re: how to call change mode form where PK value is stored in SessionValue queue ?
Post by: kevin plummer on April 19, 2010, 05:38:44 PM
Even better if you modify one of the examples to show what you are trying to do - I'm sure it is just maybe the embed you are using or GSV values not being cleared etc.
Title: Re: how to call change mode form where PK value is stored in SessionValue queue ?
Post by: Bruce on April 19, 2010, 10:05:30 PM
You're not supposed to load the record in InitForm. It just doesn't work like that.

So perhaps you need to describe what it is you're really trying to do?

Cheers
Bruce


Title: Re: how to call change mode form where PK value is stored in SessionValue queue ?
Post by: kashiash on April 19, 2010, 10:52:48 PM
i want to edit record in form, but i dont know PK for edited record, i know values (stored in SV queue) for second unique index and after open form i try to fetch this record using second index and allow to user to edit data