Home > BaaN, How to, HowTo, Infor > How To #5 – What makes you forget me ? #baanhowto

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.

Quick Submit

Advertisements
Categories: BaaN, How to, HowTo, Infor Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: