on 01-12-2021 8:54 PM
Hi Experts,
I ran scripting to save a table from a transaction. That works great too. For another transaction, selection parameters must first be set in a mask. As soon as the table is loaded and a button in the toolbar is clicked in the scripting program, I get the error message: "The control could not be found by id." Therefore I cannot save the table via scripting.
The scripting tracker doesn't show me a menu button, but a shell.
The scripting code works for the first table:
session.findById("wnd[0]/usr/shell[0]").pressToolbarContextButton("&MB_EXPORT")
In the second table I record the following command, which however outputs the error:
session.findById("wnd[0]/usr/shell[1]/shellcont[0]/shell").pressToolbarContextButton("&MB_EXPORT")
What am I doing wrong? How can I find out what the difference between the two tables is, why the toolbar is only inaccessible for one table?
Is there a way to give the mouse coordinates to click as a command?
Thank you very much for your support.
Many Greetings, Chris
Hello togehter,
I have found a solution.
By chance I am only one step back from the table to the selection mask, and then scripting worked.Unfortunately, I don't know why I have to call up the table first, then leave it and then call it up again so that the toolbar can then be addressed.
@Stefan: The transaction itself is of no use as a statement because it is an individual one.
Many thanks for your support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.