Get text from field in a tablebox

woeterwoeter Member Posts: 11
hello,

I want to put the text from a field in a tablebox, in a variable.
Like:
I have a tablebox with No, Name, Address. I give focus on the second field on the second line. If I push a button (ok) the text should be put in a variable (txtField).

Some help !
thx

Comments

  • ara3nara3n Member Posts: 9,257
    onpush trigger set txtfield := No, or Name or what ever you want to set.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • WaldoWaldo Member Posts: 3,412
    Probably that's the problem ... I don't think he knows what field is activated ... .

    There should be a complex workaround ... something like:
    - OnBeforeInput (column in tablebox): put the value in a temporary variable ... so every time you select a cell, the value is copied into a variable.
    - OnPush (button): put the value of the temp var into your supposed-to-be-var...

    This probably isn't the only way to go...

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
  • woeterwoeter Member Posts: 11
    how do you put the variable in an other form?
  • WaldoWaldo Member Posts: 3,412

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.