morpheus
20th December 2002, 07:48
Hello,
There is a maintain session (form type 2). I maintain n records at one go. The records are not saved till the end, but you still can NOT maintain a duplicate record!! There is nothing in the program script. What is this functionality!?
Refer session - tcmcs0145m000, and many other such sessions.
:confused:

shah_bs
21st December 2002, 03:06
Underlying each BAAN Session, there is concept called the 'Standard Program'. The basic functionality of Insert/ Delete/ etc. are handled by the combination of the Standard Program and the underlying database design.

You can refer to what happens by looking up 'Flow of Standard Program' in the on-line help at the following link:

Flow of Standard Program (http://www.baanboard.com/programmers_manual_baanerp_help_4gl_features_flow_of_standard_program)


So, in your example, the Standard Program invokes a check on the database to ensure that a duplicate cannot be entered.


Note, however, that you have no access to the 'code' of the standard program - it merges into your customized code when the compiler is invoked.


Hope this helps.

morpheus
21st December 2002, 06:28
Thanks.
I also thought, there must be some standard functionality of BaaN, which is called up to make such checks, as there is nothing in the program script for such sessions. But, just wondered whether there was something more than this!!
:)

KlayVessel
2nd January 2003, 07:57
Originally posted by shah_bs
Note, however, that you have no access to the 'code' of the standard program - it merges into your customized code when the compiler is invoked.

This no longer happens -- as of Baan 4 and later. The 'standard program' is a 3GL and/or DLLs in the tt package. All 4GL scripts are DLLs now, so the "merging" happens at runtime. In Triton 3 and earlier the compiler (possibly std_gen?) did merge in the 'standard program' code to form a standalone 3GL object. This is an important difference as in the later case, code enhancers, such as QKEY (http://www.fullscope.com/qkey.htm), could not exist.