Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
15%
200 - 500 GB
30%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
15%
> 2000 GB
22%
Total votes: 27

Baanboard at LinkedIn


Reference Content

 
update.occ()
By patvdv at 26 Feb 2008 - 21:57

update.occ()

Syntax

void update.occ()

Description

The 4GL engine automatically detects changes a user makes to a field. However, it cannot detect changes to field values made in the program script. When you modify a field of the main table in the program script, you must call update.occ() to switch on the update.status flag of the 4GL engine.  This ensures when that the database is next updated, the modifications are saved to the database. The database update action can be initiated either by the user or within the script (use execute(update.db)).

Before the update.db command is executed, the user can undo the changes with the recover.set command. If you do not want users to be able to undo changes, you can force an immediate update by calling execute(update.db) in the script.

Context

4GL library function.

You can use this function only in 4GL scripts, and only in choice and field sections of those scripts.

Example

 choice.cont.process:
 on.choice:
         do.all.occ(update.occurrences)

 functions:
 function void update.occurrences()
 {
         tiitm001.special = 9999
         update.occ()              | Sets flag to indicate change
 }

See also

do.occ()

Related topics


0
No votes yet


All times are GMT +2. The time now is 20:56.


©2001-2018 - Baanboard.com - Baanforums.com