Skip to Content
avatar image
Former Member

How to get selected Row/Cell value in i5Grid

Hi Friends,

Can anyone help to how to find the selected Row/Cell value of a i5Grid object. I am able to register the event handlers which are getting invoked on row/cell selection. But I want to know how can I get the value of selected Cell/Row. I would like to add selected Items from one i5Grid to another one.

So want to know how can I get and set the value of i5Grid object.

MII version 14.0 SP4 Patch

Thank in advance

Shaji Chandran

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 25, 2014 at 11:14 AM

    Hi Shaji,

    you can use the following JS functions which are available in Script Assistant.

    .

    In the following Format.. in Java script

    Grid.getGridObject().getSelectedCellColumn()

    Grid.getGridObject().getSelectedCellRow()

    ...

    you can get selected Cell value like this.

    var col_no=Grid.getGridObject().getSelectedCellColumn();

        alert(Grid.getGridObject().getSelectedCellValue(col_no));

    Regards,

    Sriram


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 25, 2014 at 11:33 AM

    Hi Shaji,

    You can find all the getter and setter methods for i5Grid here:

    i5Grid Object Methods - i5Grid - SAP Library

    Regards,

    Rohit Negi.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Yes Sriram.

      I really appreciate your help/effort for this query.

      Looking for an oppurtunity to help you back:)

      Thanks

      Shaji