OnClick

Sort:
You are not authorized to post a reply.
Author
Messages
khart
Advanced Member
Posts: 25
Advanced Member
    I am able to use OnClickCheckBox and OnRowClick to trigger events but is there an Event to know the exact field a user clicked on the row if you are using OnRowClick?
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      This will give you which row was selected:

      function dme0_OnRowClick()
      {
      var oDME = page.objects["dme0"]
      var rowRecordAry = oDME.getRowRecord()
      }

      I'll try to find how to tell which field within the row and get back to you.
      David Williams
      David Williams
      Veteran Member
      Posts: 1127
      Veteran Member
        Per Lawson:

        Remarks
        getRowRecord returns an array containing a field object for each field. A field object has the properties name (field name) and value (field value). The current row is used if a row argument is not passed.

        Example
        var oDME = page.objects["data0"];
        var rowRecordAry = oDME.getRowRecord();
        var oField = rowRecordAry[0];
        var fieldName = oField.name;
        var fieldValue = oField.value;

        David Williams
        khart
        Advanced Member
        Posts: 25
        Advanced Member
          Yes, thanks I had found that bit of code also and I can return the entire row but i'm trying to only return the individual section of a row that the user clicks on......
          You are not authorized to post a reply.