Skip to Content
avatar image
Former Member

Personas 3.0 SP5 ALV GRID Issue

Hi All,

I am trying to get the values of 2 columns based on the row selection.

I wrote a small script like below which is working fine for normal table control but it doesn't work for ALV grid.

I am not getting the current row selected Num using PROPERTY 'selectedRowsAbsolute'.

Do I miss something? Your Expert Inputs needed.

var sRawRow = source.selectedRowsAbsolute;
var sRow = sRawRow.replace(/;/g, ''); // removes semicolons,
var nRow = Number(sRow); // converts the line number string into a JS number
var sRollgrp = source.getCellValue(nRow, "ZZROLLING_NUMBER");

var sRollnum = source.getCellValue(nRow, "ZZASIA_SAMPLE");


alert(sRollgrp);

alert(sRollnum);

I again tried with a different script, but still, I am not able to capture the row value of ALV grid.

I am getting 98** as row number selected which is wrong. Is there any note missing? Below is my screenshot of my script and error.

looking for expert advice.

note: I already assigned this script to the onclick event.

Thanks and Regards

Ranjith Rupireddy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 31 at 04:15 PM

    Hello Ranjith ,

    I would have a look at the scripting API available here.
    Then check whether the correct method is being used.
    Maybe you can add alerts to the log, so then see what is being found by such methods?

    Regards,
    Cris

    Add comment
    10|10000 characters needed characters exceeded