add data into temp table datasource
I'm sorry, but we can't find the bug in your code without knowing anything about your implementation.
Please show us your code and tell us what you found when you debugged it. For example, did you verify that some data was inserted and that the form is able to display the data (e.g. temporary making the table a regular one)?
By the way, you're asking in a general D365 forum, not an F&O forum. Please use
Finance forum next time.