Keyword setmode

SUGGESTED

Hello, I don't understand what does the keyword "setmode" do, there is no help available on eclipse or on the internet. Can someone please explain it to me?

Parents
  • 0
    SUGGESTED

    Good day, Setmode is used during the import of data using an import template. It is used to change the mode of certain masks/variables events during the loading of data from the file to the screen. Normally there is no need for you use or change it as it proprietary to Sage X3 system calls and will generally be added where needed by the generated WW* source code of the import template. Its also legacy commands, hence why it is not in the help file. 

Reply
  • 0
    SUGGESTED

    Good day, Setmode is used during the import of data using an import template. It is used to change the mode of certain masks/variables events during the loading of data from the file to the screen. Normally there is no need for you use or change it as it proprietary to Sage X3 system calls and will generally be added where needed by the generated WW* source code of the import template. Its also legacy commands, hence why it is not in the help file. 

Children
  • 0 in reply to Regard Hulsbos

    Hello, thank you for your answer. What do you mean by: "[...] change the mode of certain masks/variables events"?

    I am reading IMPSMOS script (import for "miscellaneous issues", object SMO) and in fact the only thing I can notice is that if I comment out

    Setmode INBAFF,IAFFCOD,IAFFMASK,IAFFCHP,IAFFIND,IAFFTXT,IAFFRANG,IAFFOPT1,IAFFOPT2
    [...]
    Setmode

    dialog boxes (infbox etc.) start to work, otherwise they don't.

  • 0 in reply to tc43

    It enables/disables the screen UI "Onevent" triggers which the user normally receives when data is entered through the UI. It allows for data loads to be streamlines making them more efficient.