Alpha Video Training
Results 1 to 5 of 5

Thread: Controlling Updating of Detail View

  1. #1
    Member
    Real Name
    John Shattuck
    Join Date
    Feb 2009
    Posts
    72

    Default Controlling Updating of Detail View

    I have a grid with an updateable Detail View. Depending on the values in an existing record, I sometimes want the Detail View to not be updateable. Is there an easy way to do that, or do I have to do it field-by-field?

  2. #2
    Member
    Real Name
    Garry M Flanigan
    Join Date
    Jul 2004
    Location
    Melbourne, Australia
    Posts
    909

    Default Re: Controlling Updating of Detail View

    I am not entirely sure what you want to do but maybe you should look at the CanInsertRecord and CanUpdateRecord events.

  3. #3
    Member
    Real Name
    John Shattuck
    Join Date
    Feb 2009
    Posts
    72

    Default Re: Controlling Updating of Detail View

    Using CanUpdateRecord is one of two ways I am handling it now (the other way is by setting "Enable expression" field-by-field). However, using CanUpdateRecord does not prevent users from changing a field's value. I have to put code within CanUpdateRecord to prevent the changes from being saved (which users do not like after they changed a field's value). I'm looking for an easy way to control access to all the fields in the Detail View before the user tries to change a field.

  4. #4
    "Certified" Alphaholic
    Real Name
    Gaby Hernandez
    Join Date
    Sep 2008
    Posts
    1,170

    Default Re: Controlling Updating of Detail View

    Hi shattuck49
    See if the attached gets you closer to your goal. It uses your original idea (enable/disable fields) but from the DV part's watch event.
    Attached Files Attached Files

  5. #5
    Member
    Real Name
    John Shattuck
    Join Date
    Feb 2009
    Posts
    72

    Default Re: Controlling Updating of Detail View

    Thanks for the input. Using the Watch Event was something I had not thought of. I am also going to test an idea I have using System Events.

Similar Threads

  1. Saving Detail (DBF-View) w/o closing Detail after submit
    By brainwater in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 04-13-2011, 09:29 AM
  2. Detail View from Grid or Detail View from Hyperlink on Grid
    By Turnbullca in forum Application Server Version 10 - Web/Browser Applications
    Replies: 2
    Last Post: 03-06-2011, 05:42 PM
  3. Detail View
    By kdankwah in forum Archived Wishlist
    Replies: 2
    Last Post: 09-09-2010, 08:45 PM
  4. Error updating row in view
    By lgrupido in forum Alpha Five Version 10 - Desktop Applications
    Replies: 3
    Last Post: 06-18-2010, 12:43 AM
  5. Grid View with Detail View To Add New Records
    By Jeff Benson in forum Web Application Server v7
    Replies: 2
    Last Post: 05-26-2006, 11:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •