WARNING - This is an advanced topic for users who are familiar with how to change attribute strings in Certify (usually the Map administrators).
Question: How
do you handle a scenario where the fullname of a window keeps changing.
<FULLNAME>Sys.Process("glxLifeAdmin").VBObject("frmMain").Window("MDIClient",
"",
1).VBObject("frmCashInpu_1")</FULLNAME><NAME>VBObject("frmCashInput_1")</NAME>
<FULLNAME>Sys.Process("glxLifeAdmin").VBObject("frmMain").Window("MDIClient",
"", 1).VBObject("frmCashInput_2")</FULLNAME><NAME>VBObject("frmCashInput_2")</NAME>
And
these windows will have button cmdCancel
<FULLNAME>Sys.Process("glxLifeAdmin").VBObject("frmMain").Window("MDIClient",
"",
1).VBObject("frmCashInput_1").VBObject("cmdCancel")</FULLNAME><NAME>VBObject("cmdCancel")</NAME>
<FULLNAME>Sys.Process("glxLifeAdmin").VBObject("frmMain").Window("MDIClient",
"",
1).VBObject("frmCashInput_2").VBObject("cmdCancel")</FULLNAME><NAME>VBObject("cmdCancel")</NAME>
The
WndCaption Attribute however is the same for both. How
can we use this attribute to identify the button.
Answer: The answer is to use this Window Attribute String:
<FULLNAME>Sys.Process("glxLifeAdmin").VBObject("frmMain").Window("MDIClient",
"", 1).VBObject("frmCashInpu*</FULLNAME><NAME>VBObject("frmCashInput*</NAME>
Please note that in the above example, the ")" was intentionally left out from VBObject("frmCashInput*.
We are essentially asking Certify to find an object whose Name property starts with
VBObject("frmCashInput
If we use the close parenthesis, we are asking TE to find an
object whose Name property starts with VBObject("frmCashInput and ends
with ). Depending on the Name property of the object in question, both could be correct.