cancel
Showing results for 
Search instead for 
Did you mean: 

Can't set Personas HTMLViewer Content in the SAP GUI

former_member402454
Discoverer
0 Kudos

I am trying to add an SAPUI5 tree as a htmlViewer window next to a standard SAP screen viewable from the SAP GUI.  I have everything working wonderfully from the webGUI, however when I try it from the SAP GUI, 7.40, patch level 8, anytime I set the content field of the HTMLViewer, I get a messages saying "Object doesn't support this property or method". 

I have simplified the code (a lot) to show the problem, in this scenario, I am just trying to display the word "Testing" as content in the HTMLViewer.  This works fine when I execute the script in the webGUI, but it gives me the error on the SAP GUI.  I have "/.*" and "(http|https):\/\/*" listed, and this does not seems to be the same case as when the HTMLViewer hits a whitelist problem.  Here is my super-simplified script:

//session.findById("wnd[0]/usr/htmlViewerPersonas_1463578215093").setProperty("content","Testing");   //I've tried it both ways

session.findById("wnd[0]/usr/htmlViewerPersonas_1463578215093").content = 'Testing';

Please help

Thanks,

Jeff

Accepted Solutions (1)

Accepted Solutions (1)

clemens_gantert
Active Participant
0 Kudos

Hello Jeff,

this seems to be a defect in the SAP Gui for Windows (I tried it myself in the same GUI release and it didn't work for me either). Please open a CSS incident for component BC-FES-WIN.

Thanks,

Clemens

clemens_gantert
Active Participant
0 Kudos

Hello Jeff,

I just got a repsonse from the WinGui development team. The corresponding fix is currently planned to be included in SAP Gui, 7.40, PL9.

Thanks,

Clemens

former_member402454
Discoverer
0 Kudos

Thank you very much.  I hadn't put the OSS Message in yet, I was first going to upgrade to Personas 3.0 SP03, we are on SP02 now, but it is good to know that it is an expected SAP GUI fix.

Thanks,

Jeff

Answers (0)