Quantcast
Channel: SCN : Discussion List - SAP GUI
Viewing all articles
Browse latest Browse all 3066

Personas 3.0: How to handle a table with dynamic id when navigating tabs?

$
0
0

Hi Personas 3.0 experts,

 

I am facing this issue.

 

 

Use case:

I am running a customised tcode made by us. It shows 4 tabs, and under each tab there is a table. What we want is to pick up a cell info when user clicks a row of the table under a selected tab.

 

The issue:

I implemented a script to pickup the cell info, and attach the script to the table under a tab, say tab-1. At the very first time to load the screen, user's click works fine as expected. But if after loading the screen, user first click other tabs and then select tab-1, now nothing happens when user click the table row.

 

Cause:

I found out that whenever user clicks the other tabs and back, the id of the table under the tab-1 got changed. Thus, the "new" table does not have the script func attached, and the script cannot find the table object with the original id.

 

Can this be solved using the "control overwrite rule"? If so, how do we set the rule for this issue? Below is an example data:

 

Screen: "myScreen"

Screen number: "1000"

Program: "myProg"

 

The id change follows this pattern:

 

Original id:   "/ABC/DEF/TBL/Shell"

The new ids: "/ABC/DEF/TBL[1]/Shell"

                     "/ABC/DEF/TBL[2]/Shell"

                     ....

The front part of the id keep the same, except the second last one changed everytime, like [1], [2], [3],....

How to write the rule for such an id?

 

Thanks.

 

Dong Zhu


Viewing all articles
Browse latest Browse all 3066

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>