NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on August 27, 2012, 01:08:55 PM

Title: Refreshin child browse with no relation
Post by: walter.dasilva on August 27, 2012, 01:08:55 PM
Hi,

I have a browse with a child. Child is filtered using values from parent, but those values are not key´s components. inspecting code i could see all key´s components are passed to session but other browse fields not. i´ve tried to set others field to session but i can´t get those values.

is there some trick here?

thanks
Title: Re: Refreshin child browse with no relation
Post by: kevin plummer on August 27, 2012, 03:45:34 PM
yes, you need to do a get on the record based on the parent key to bring back the entire record. Then just assign whatever field you need for your child filter to the session Q.
Title: Re: Refreshin child browse with no relation
Post by: walter.dasilva on August 28, 2012, 04:56:53 AM
Yes, Kevin....

thank you a lot

Walter
Title: Re: Refreshin child browse with no relation
Post by: walter.dasilva on August 29, 2012, 11:44:33 AM
Hi Kevin,

it´s working fine, i couldn´t find the embed to init those value for the first time browse is open.
Do you know something?

thanks
Title: Re: Refreshin child browse with no relation
Post by: kevin plummer on August 29, 2012, 03:45:18 PM
I just stick it here and it "seems" to work. I add the Fetch as well as loc:FilterWas. Add a trace at the end of your code if you think it's not working.

  ! Start of "Browse Filter"
  ! [Priority 5000]
Title: Re: Refreshin child browse with no relation
Post by: walter.dasilva on September 03, 2012, 07:03:55 AM
thanks kevin,
Title: Re: Refreshin child browse with no relation
Post by: charl99 on September 17, 2012, 03:39:00 AM
Hi,

  ! Start of "Browse Filter"
  ! [Priority 5000]

Will this code only execute the 1st time the Browse is opened? 

Thanks
Charl
Title: Re: Refreshin child browse with no relation
Post by: Bruce on September 17, 2012, 10:21:17 PM
anywhere in the GenerateBrowse routine would be the right place. The generateBrowse is only called when the browse itself is being constructed, so it's not called excessively there.

cheers
Bruce