CAPITAL Office Business Software
CAPITAL Support Forum
FAQSearchMembersGroupsRegisterProfilePM'sLogin/Out
Field Scripts

 
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation
View previous topic :: View next topic  
Author Message
Vince
Guest





PostPosted: Mon Jul 31, 2006 5:14 pm    Post subject: Field Scripts Reply with quote

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?
TIA
Vince
Back to top
COBS Tech Support



Joined: 09 Sep 2005
Posts: 651

PostPosted: Wed Aug 02, 2006 5:18 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB Template by Vereor
Protected by Anti-Spam ACP