Sage X3 Input Box

Here how to open an Input Box and get the value inserted by the user

Local Integer OK
Local Char VALEUR

#SOH = Object Sale Order
Call SAICAR(VALEUR,"Title of window","Field caption","SOH",0,0,"",OK) From GESECRAN 

Infbox VALEUR + " " + num$(OK)

Here the screenshot of the Input box as per the previous code example:

Sage X3 Input Box

The value inserted is stored in the variable VALEUR and to know which button is clicked you can refer at the variable OK:
OK = 2 button OK is clicked
OK = 1 button Fine is clicked

Leave a Reply

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

You are commenting using your 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