Skip to Content

Personas 3.0 SP5 ALV GRID Issue

Oct 05, 2017 at 10:48 AM


avatar image

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");



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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers