• Richard Kruk
    June 16, 2017 at 2:12 am #4390

    Hi

    I am struggling with this issue (see attached screenshot):

    If I select a value in my dropdown, the onChange is triggered and I handle it in my code. What I need is to know which record is changed (1st, 3rd or nth), because for that row I need the name value to fill in the date.

    All I get in my function is the value of the dropdown I selected

    Code of the function:

    this.testMe = function(control, item) {
    console.log(item);
    }

    This is offcourse a simplified version of what I need in real life, but it comes down to: How do I get the entire row data in my function once the OnChange is triggered of the dropdown?

    SPARK Support
    June 16, 2017 at 8:45 am #4393

    Hi Richard,

    The On Row Selected By User event provided access to the entire row data.

    Through the individual control, you do have access to the other controls in the same row:

    me.ui.getSibling(“Text1”).getData();

    If you need to manipulate the contents of the row based on the Single Select, use this method to access the data of each control in the row.

    Regards,

    Stephen P.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search