NetTalk Central

Author Topic: Refreshing child browse on button click  (Read 2313 times)

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Refreshing child browse on button click
« on: January 29, 2009, 12:19:10 AM »
Hi,

here is the issue. I have page constructed from parent browse and its child browse (both NetWebBrowse procs). I modified template so I can add button with p_web.CreateButton after standard First/Prev/Next/Last buttons. I need to create button which sets one session var and after that refreshes just this child browse. Basically this button should behave like switch for showing/hiding zero values in child browse. I succeded in button creation but how to do the rest :)

Any help is appreciated

thanks,
Alex

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: Refreshing child browse on button click
« Reply #1 on: January 29, 2009, 01:16:53 AM »
Hi Alex,

The correct approach is to create a NetWebform.

On this form have your button (as an "other" button), and the browse. (Button underneath the browse if you like.)

Add the browse to the "reset fields" list of the button.

Then you can add the code you want, on the server side, to the button, and the browse will be refreshed after the button is pressed.

Cheers
Bruce



alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: Refreshing child browse on button click
« Reply #2 on: January 29, 2009, 01:21:35 AM »
Hi Bruce,

but NetWebForm can't be child for parent browse, right? Are you suggesting I should put both parent and child browse on the same NetWebForm and not use Children tab (reset child browse on parent change manually and filter it instead)

thanks,
Alex