Alpha Video Training
Results 1 to 2 of 2

Thread: controlling record changes

  1. #1
    Jos Schaars
    Guest

    Default controlling record changes

    Before a record is saved by the user, I want to validate several fields and eventually force him/her to make corrections for the record to be saved.

    I don't want to use the CanSaveRecord event of the table/set because cancelling then reverts all changes and the users would have to start all over again.

    Also the CanWriteField event of the fields isn't an option because the validation of some fields depend on other fields and can't be really done until all fields are filled in.

    For a form I can use the CanSave event, popup a message and activate the (first) offending field. But I miss an equivalent for the browse view.

    Any suggestions?

    Jos

  2. #2
    "Certified" Alphaholic
    Real Name
    Tom Cone Jr
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    23,300

    Default RE: controlling record changes

    Controlling data entry through browse layouts, or embedded browse objects, is much more difficult than with forms because (as you mention) the same events are not exposed for us.

    I'll be watching this thread, but I'll be surprised if there's an easy solution.

    I often resort to making my embedded browses read only, using them for navigation only. A button push can open a called form to collect information for the next row using a table based form. It's clumsier to be sure, but its controllable.

    -- tom

Similar Threads

  1. Controlling Tabs
    By Paul Main in forum Alpha Five Version 6
    Replies: 7
    Last Post: 03-29-2005, 04:53 AM
  2. Controlling Toolbar
    By jwolfe11 in forum Alpha Five Version 5
    Replies: 2
    Last Post: 01-20-2003, 05:15 PM
  3. Controlling buttons....
    By Mike Gillhoolley in forum Alpha Five Version 4
    Replies: 5
    Last Post: 04-24-2002, 08:30 AM
  4. controlling page breaks
    By Steve Pick in forum Alpha Five Version 4
    Replies: 5
    Last Post: 03-17-2001, 03:22 PM
  5. Controlling cursor in Xbasic
    By Kristal Mayne in forum Alpha Five Version 4
    Replies: 2
    Last Post: 04-27-2000, 10:00 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
  •