NetTalk Central

Author Topic: User Notification  (Read 3644 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
User Notification
« on: March 21, 2013, 11:59:23 AM »
Hi
I have browse where based on the content of the record and the user’s privileges, the user may or may not have permission to change or delete the record.  The record can processed in other ways, thus it cannot be filtered from the list. I need to show a message to the user, if he attempts to change or delete such a record. I could add the validation code in the _sendFile procedure of the web handler then redirect to a message page if the validation fails. But that looks ugly. I was wondering if there was a way to do the validation in the PreUpdate and PreDelete routines in the form and set the alert message. When the user accepts the popup message they return to the browse and never show the form.   For example, I can set the alert message in the PreDelete which appears, but I do not know how to stop the delete.

Thanks
Rob

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11270
    • View Profile
Re: User Notification
« Reply #1 on: March 22, 2013, 07:02:52 AM »
Slight change of your question - but are your Change and Delete buttons "in row" or under the browse?

Putting them in-row in this case might be better because then you can see immediately which records can be edited, and which not.

cheers
Bruce

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: User Notification
« Reply #2 on: March 22, 2013, 08:47:13 PM »
Hi Bruce,
The change and delete button are below the browse, however I can put then into the browse row, then evaluate a condition to enable or disable the button on the row when needed. OK I have the equation, but in the NetWebBrowse template,  the change and delete buttons fields  do not have disable condition field to disable the button like the regular row button does.  What do I do?
Thanks
Rob

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: User Notification
« Reply #3 on: March 24, 2013, 01:34:20 AM »
try adding to normal delete button. I think the logic flows through to the browse rows buttons as well.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11270
    • View Profile
Re: User Notification
« Reply #4 on: March 25, 2013, 02:25:49 AM »
Kevin is right. The conditions for Change and Delete on the form tab, are applied at the Row level.

cheers
Bruce