cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0: selectedRows from table within a tab

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Note 2143927 solved this problem.

0 Kudos

please make sure that your installation is upto date : 2050325

0 Kudos

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

clemens_gantert
Active Participant
0 Kudos

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

0 Kudos

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!

clemens_gantert
Active Participant
0 Kudos

Hello Gabriela,

would you pleaese open an CSS ticket for the table selection not being highlighted. component: BC-PER.

Thanks,

Clemens

Answers (0)