on 03-26-2015 9:16 AM
Hi,
we are trying to select rows from a table by scripting.
If the table exists on a dynpro, like the overview in transaction VA05, it's possible to display and edit the option selectedRows.
But if the table is within a tab, the selectedRows and selectedColums values are undefined and not editable (screenshot).
Is this behavior a bug or do I have use a different way to access the table?
Here is my code example:
var objTable = session.findById("wnd[0]/usr/tabsTS/tabpTB02/ssubSUB_BODY:/MSG/R_U_KORVASSAP:1520/tbl/MSG/R_U_KORVASSAPTC_1520");
objTable.selectedRows="2";
Best regards
Christian
Note 2143927 solved this problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
please make sure that your installation is upto date : 2050325
I am facing the same problem - I can select a row via script as long as the table is not inside a tab.
I need to select a row of a table inside a tab.
The note mentioned above no longer applies: I'm using Personas 3.0 SP2 SP Level 324.
Is there a newer note that addresses this issue at this level?
Thank you,
Gabriela
Hello Gabriela,
is the tab in which the table resides the active tab when you execute the script?
If it's not then you have to make it the active tab, by
var oldSelectedTab = session.findById("id of tabstrip").selectedTab;
session.findById("id of the tab that contains the table").select();
.... your script content....
oldSelectedTab.select();
Best Regards,
Clemens
Hi Clemens,
yes, the table is inside the tab that is currently selected when I run the script.
As a matter of fact I am executing the script to test it from within the tab.
To be more specific it's the Item Detail tab of the VA01 transaction.
I just realized after further testing that the line is being selected but not getting highlighted. You may add to that if you have any insight, but for now, it serves my purpose as I don't need it to be.
Thanks!
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.