cancel
Showing results for 
Search instead for 
Did you mean: 

Display result in a pop-up window

former_member215739
Participant
0 Kudos

Dear Personas Team,

I'm building a dashboard, and my goal is that user doesn't have to leave the main dashboard, the result should be displayed in a separated pop-up or window.

For example: I have a script button on the main dashboard:

On Button.click, I call the transaction ME23N in background and want to display the screen result of ME23N in a pop-up (which means: the dynpro should be displayed on the separatedpop-up).

Can I archive this?

Thanks for your help.

Best regards,

Thanh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member215739
Participant
0 Kudos

Hi Cristin,

Many thanks for your answer, I also did the same way to show result.

However, in other scenarios, for example:

User enter vendor number on the screen, can click on the button:

- Open Items -> in background transaction is called, vendor number is entered, flag open item is marked, the ALV List is shown. And I want to show this ALV List in a pop-up. Maybe there is a quick method just to paste this ALV List in the pop-up, instead of using javascript - loop for all rows and then build a HTML table with myWindow.document.write ... It would be great if I can just take the whole screen and paste it in the pop-up...

This is my screenshot to illustrate my idea 😄

Best regards,

Thanh

cristin_charbonneau
Participant
0 Kudos

Hi Thanh.

I have done something similar, however, I wrote back information from previous screens to a label object on my portal. I used variables to store the information and then set the label text to the variable.

I did a quick modification and wrote the same information to a new window.

If storing the values you want to display to variables isn't working, you could try using session.utils.put() and session.utils.get().

I hope this helps.

Cristin

//put the success message from the status bar to a variable
var successMess = session.findById("wnd[0]/sbar").text;
//clicked the back button to return to the portal
session.findById("wnd[0]/tbar[0]/btn[3]").press();
//set the label text to be the success message
session.findById("wnd[0]/usr/lblPersonas_151024995030657").text = successMess;

//try this
var myWindow = window.open("", "MsgWindow", "width=200,height=100");
myWindow.document.write("<p>" + successMess + "</p>");