Friday, October 3, 2014

How to find the window a screen belongs to

In any opened X3 screen you can find the name of the screen by simply entering any of its fields and pressing F6. This pops up the field info, part of which is the screen name. But how about the window this screen belongs to? Probably there is some offical method to do this, but as I am not aware of it, here is a hacky but effective way to find the window name.

When you have your screen opened, in the top menu you select ? > Diagnostic help > Window description. This opens the XML description of the window. You are only interested in the beginning of the second line of the XML. For example, in the Products function (GESITM) the file starts with:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<WIND NAM="OITM"    ... ... ...


So the very first attribute of the very first tag is the window name you are looking for.

Of course, for a standard object management function like GESITM you already know that the window name is most probably going to be "O" plus the object code. But the above technique might prove useful in case you need the window name of a screen that does not conform to this convention.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.