NetTalk Central

Author Topic: Feature request to disable standard buttons  (Read 3310 times)

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Feature request to disable standard buttons
« on: May 26, 2013, 10:49:22 AM »
I'm requesting a template option to disable standard buttons.The code for it is already in the WebServer call (ie CreateStdButton...) and I can override the template-generated code to add a local variable to flag it, but it would be nice to have an option for disabling it in the template.

Thanks,

Mark

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Feature request to disable standard buttons
« Reply #1 on: May 26, 2013, 09:54:24 PM »
which buttons specifically mark - and under what sort of conditions would you disable, or enable them?

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Feature request to disable standard buttons
« Reply #2 on: May 27, 2013, 10:18:16 AM »
I'm interested in the standard buttons that you might put on a browse line, so Insert, Change, Delete, View. I enable or disable them based on child records or other conditions.

Mark

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Feature request to disable standard buttons
« Reply #3 on: May 27, 2013, 09:38:32 PM »
there is a template option already for these - although perhaps not where you would expect.
Go to the "Form" tab, and you can set the condition for each button type there. These conditions apply to in-row buttons as well as buttons below/above the browse.

It doesn't "disable" the button, it removes it completely - which provides a better visual look I think.

cheers
Bruce

markster

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • Email
Re: Feature request to disable standard buttons
« Reply #4 on: May 28, 2013, 12:07:37 PM »
I'm aware of the condition option, but that doesn't give me the look I want. I have some rows that have the icons enabled and some that are disabled. Using the condition option, you have only the option of showing an icon or showing nothing. To me, the resultant field widths make the browse look irregular. I would rather show both the disabled and enabled icons.

Mark

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Feature request to disable standard buttons
« Reply #5 on: June 12, 2013, 11:18:38 PM »
done in 7.12. See the release notes (aka Version History) when it's up.