NetTalk Central

Author Topic: Refreshin child browse with no relation  (Read 4738 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Refreshin child browse with no relation
« 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
Walter - SOFTVALE

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Refreshin child browse with no relation
« Reply #1 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.

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Refreshin child browse with no relation
« Reply #2 on: August 28, 2012, 04:56:53 AM »
Yes, Kevin....

thank you a lot

Walter
Walter - SOFTVALE

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Refreshin child browse with no relation
« Reply #3 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
Walter - SOFTVALE

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Refreshin child browse with no relation
« Reply #4 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]

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Refreshin child browse with no relation
« Reply #5 on: September 03, 2012, 07:03:55 AM »
thanks kevin,
Walter - SOFTVALE

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Refreshin child browse with no relation
« Reply #6 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Refreshin child browse with no relation
« Reply #7 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