Field Scripts
  • Vince

    Field Scripts

    by Vince » Mon Jul 31, 2006 5:14 pm

    When putting script behind a cardfile field the correct method is to 'Return' the data rather than use ScrRead().
    My question is. Should a save event fire when data has been returned?
  • COBS Tech Support
    Posts: 664
    Joined: Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Wed Aug 02, 2006 5:18 pm

    From a design point of view you should avoid changing field values in database fields using functions such as SCRWrite(), when placing scripts behind field formulas. Yes, changing a field may cause the 'save' event to trigger, and more so in later versions of CAPITAL which has a more sophisticated multi-user field locking mechanism for record management.

    If you need to change a field's contents its strongly recommended you do so inside the screen script instead, and monitor the change field focus event.

Who is online

Users browsing this forum: No registered users and 0 guests