NetTalk Central

Author Topic: Changing button state  (Read 2861 times)

Gordon Holfelder

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
    • Email
Changing button state
« on: October 07, 2010, 02:18:26 PM »
Is it possible to change the state of the buttons in a browse based on the highlighted row? Is this done on the client or server side.

I'd like to enable/disable the change and delete buttons depending on a value in the browse row.

Thanks in advance,
Gordon

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Changing button state
« Reply #1 on: October 07, 2010, 02:58:40 PM »
Add a condition to the buttons on the template. something like p_web.GSV('HideInsert') = 'Y'

In the embed that detects a user clicked something in the browse, grab the record and do your validation and update the SSV. You may need to refresh the browse to update the state of the buttons.

If the buttons are in the browse the approach is slightly different as you want to do the validation as each row loads.

HTH's

Kevin