Skip to Content

HTML Viewer and Main window communication in personas

Hi,

I have written code for a custom table in HTML Viewer(iFrame). Now I want to pass selected table row data to a text field present in "main window". How I can accomplish this?

Thanks,

Tez.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 11, 2018 at 06:26 AM

    Hi,

    Any suggestions, please.

    Thanks,

    Tez

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 21, 2018 at 03:54 PM

    Hi Tez,

    I'm not sure if this is the same, but if you are reading from a SAP table you could use the following example code.

    //Top table (Status with Status Number)
    
    var zTable = session.findById("wnd[0]/usr/tabsTABSTRIP_0300/tabpANWS/ssubSUBSCREEN:SAPLBSVA:0302/tblSAPLBSVATC_E");
    var zRow = 1;
    var zColumn = 1;
    var zColName = zTable.getColumnName(zColumn);
    var zValue = zTable.getCellValue(zRow, zColName);
    session.utils.log('zValue =>' + zValue);session.utils.log('zColName => ' + zColName + '. zColumn => ' + zColumn + '. zRow => ' + zRow);

    Result:

    Add comment
    10|10000 characters needed characters exceeded