General X++ Development
How do I get the current record from a form datasource in X++?
How do I get the current record from a form datasource in X++?
1 answer
Write an answerUse the datasource cursor.
CustTable custTable = CustTable_ds.cursor();If you already have the datasource buffer available in the method, just use that buffer. Do not run another database select just to figure out which row the user is sitting on.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer