Dynamic Code pVal in B1 Respondida

Stefano Lanza

Good morning,

i need to understand wich variable can be use instead of pVal (normally used in Sdk) in Dinamic Code (c#), to get the line number

Example:

Matrix oMtx;
ComboBox oCmb;

oMtx=(Matrix)form.Items.Item("38").Specific;

oCmb = (ComboBox)oMtx.Columns.Item("U_TipoDoc").Cells.Item(pVal.Row).Specific;

Thank You

Comentarios

2 comentarios

  • Comment author
    Yaremi Miranda Lopez
    • Comentario oficial

    Answered in ticket.

  • Comment author
    Morten Lilbæk Pedersen
    • Editado

    Development answer:

    It is not possible to get the full pVal variables (UF - Dynamic Code events can come from item, menu and formData events so there is no common event)

    We have a common event among them called "eventData" that have properties:

    FormTypeEx
    BubbleEvent
    TargetRow
    SourceRow
    FormDataObjectKey

    Example:

    string ft = eventData.FormTypeEx;

    But other than those rest is off limit to the UF - Dynamic code.

    Note: SourceRow and Target row are used in line loops and can give you what row is being transferred from and to. In a none line loop scenario, they contain the same value as itemEvents pVal.Row

     

    0

Iniciar sesión para dejar un comentario.