Skip to main content

Execute SQL Query from Function Button

Comments

1 comment

  • Alberto Bruzzone

    You can use the following sentence to get the variable from the form id

    string docnum = TextEdit.GetFromUID(pVal.Form, "8").Value;

    Then use it in your query adding the variable 

    string query = "SELECT Docentry  FROM ORDR where Docnum = " + docnum;

     

     

    0

Please sign in to leave a comment.