cancel
Showing results for 
Search instead for 
Did you mean: 

Personas 3.0: The loading event of the screen seems not working sometimes

Former Member
0 Kudos

Hi Personas 3.0 experts,

I am customising several tcode screens, and I noticed the following issue:

1. Script code inside "onLoad" is not run SOMETIMES: (I used our own tcode)

   I made a script to call a FM to load some data from backend and display them on UI. I put this code in the "onLoad" or "AfterRefresh" event of the screen. But what I noticed is that SOMETIMES when the screen is shown, the data from backend are not shown on UI. If I then click a button with no code, data are shown (ie the FM is called).

2. A table moved out from a tab is not shown.  (I used an existing tcode IW32)

  This is a similar case: I have moved a table out from a tab of a tcode and only display this table on the UI, and rest of the tabs and contents are hidden. However, when the screen is launched, the table area is ALWAYS empty, until I click a "dummy" button (ie with no code), then the table is populated with the data.

Is this a known issue in Personas 3.0? Appreciate any quick reply!

Dong Zhu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I have to close this question. Judd's idea can be helpful to try.

Br,


Dong

Answers (1)

Answers (1)

0 Kudos

Dong,

It sounds like the same problem I had.  I added a small script at the end of my main script to refresh the screen after 2 seconds.  But I had to set the script to run "onLoad" not "AfterRefresh".  "AfterRefresh" would continually loop the refresh script.

function doTask(){

  sap.personas.scripting.executeScriptInternal({src:''});   

}

setTimeout(doTask,2000)