on 03-18-2014 12:40 PM
Hello, dear helpers,
If the User has opend session.FindById("wnd[0]/usr/cntlCC_REP_COCK/shellcont/shell/shellcont[1]/shell") - This is the wrong list.
and the User has marked lines in the wrong list there is an error in this Code
selrows = session.FindById("wnd[0]/usr/cntlCC_REP_COCK/shellcont/shell/shellcont[0]/shell").selectedRows
error:"The control could not be found by id."
How can i check the right list?
look at shellcont[0] / shellcont[1] in the code
One solution is with "On Error Resume Next"
but i looking for a direck Check, similar as
myfindbyid= session.getFindbyIdName
Regards,
Emil
Hello Emil,
look here: http://scn.sap.com/docs/DOC-49101
This solution describes how to check the existence of an object. On the one hand you can avoid the error message "control can not be found" and on the other hand you can check the using of the correct control.
Hope it helps. Let us know.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.