How To #5 – What makes you forget me ? #baanhowto
What makes you forget me ?
These are not my words, its “api.mode” whose trying to remind everyone, that the predefined variable exists and is really of use most of the times in BaaN customisations.
Being a tools consultant worked on multiple sites, Baan flavours and clients across the globe, one thing I have noticed is, “api.mode” is totally been forgotten at 5/10 clients I have visited.
Developers duplicate the entire session just to avoid a popping error message, when a session is running in a job or when AFS is used, despite of the fact that they know about “api.mode”, but missed to use it.
below is just a reminder and usage of “api.mode”
check.input: if not api.mode then // Popup the message else // Log the error message to error log endif
Its that simple, If the value of the variable is 0, that means the application is not running at the background and has the UI.
Another programming feature highly missed out are the application locks, despite of the fact that people know that it exists. Will discuss more about the locks in future posts.