Accessing data in a matrixbox control

xavigepexavigepe Member Posts: 185
Hi. Is there a way to access the data in a matrixbox like you can do in Visual Basic: MATRIXBOX(ROW,COL) ?.

Thanks

Comments

  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    You can access the matrixheader if that is wat you mean

    CurrForm.Matrix.Matrixrec.Field

    I think report 82 does something like this.
  • krikikriki Member, Moderator Posts: 9,118
    If you mean
    To put information in a cell:
    Use the "OnFormat"-trigger of the cell
    and put something like
    Text := your value;
    
    I use this trigger, instead of the "OnAfterGetRecord()" of the matrix-box, because in this last trigger, the refresh of all the fields is not always correct. With the "OnFormat"-trigger of the cell, it is correct

    To get information from it. You need to intercept it in the "OnValidate" or "OnAfterValidate"-triggers of the cell. I always use the "OnValidate"-trigger because if I have an error in the "OnAfterValidate"-trigger, I get kicked out of the form.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.