Skip to Content
avatar image
Former Member

ALV grid selected row problem in Personas 3.0 SP5

Hi,

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

I wrote a small script like below which is working for normal table control but it's not working for ALV grid.

Do I am missing something? Experts 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 column 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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 04, 2017 at 05:29 PM

    Hi ,

    I again tried with 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 screen shot of my script and error.

    Thanks to look into this problem.

    Add comment
    10|10000 characters needed characters exceeded