NetTalk Central

Author Topic: User Clicks on Tab  (Read 3264 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
User Clicks on Tab
« on: February 24, 2009, 04:12:11 AM »
Hi All,

Is there any way to detect if a user clicks on a Tab and then run some server side code and reset a browse?

I have a browse in the 2nd Tab and need to dynamically populate it based on what is selected in a browse in the first tab but only want to do this if they choose to click on the 2nd Tab as it involves populating data in a temp table.

Cheers,

Kevin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: User Clicks on Tab
« Reply #1 on: February 24, 2009, 07:32:43 AM »
Hi Kevin,

As long as you're using the Xp-Tabs, yes there is.
If you watch the server log you'll see a packet comes in called "setsessionvalue"
when you click on the tab.

So in the web handler you'll need to trap this happening (in _sendfile) and make an appropriate call
to the appropriate browse. That's the tricky bit 'cause you need to get it just right. but if you watch what
gets called when it updates "normally" you should have enough to make the correct call.

Cheers
Bruce