General X++ Development
How do I get a form datasource from a form extension?
How do I get a form datasource from a form extension?
1 answer
Write an answerGet the datasource from the form runtime.
FormDataSource salesTableDs =
this.dataSource(formDataSourceStr(SalesTable, SalesTable));The point is to work with the form's actual datasource instance. Creating a new table buffer does not give you the row that is currently active on the form.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer