I have a form where I need to populate my grid. (I'm using TMP table)
I made a class containing all the methods I need to populate the grid. I thought about placing all my methods in a class because I'll be re-using some of the methods in report generation.
Basically, the logic is when I click my generate button in the form it will call the methods to populate the grid where it inserts to the tmp table and sets the tmpdata.
public void generate() //code in class
{
ttsBegin;
.
.
.
TmpTable.insert();
TmpTable.setTmpData(tmpTable);
ttsCommit;
}
void clicked() //code in form
{
Class class = Class:construct();
class.generate();
TmpTable_ds.research();
TmpTable_ds.refresh();
}
I already made it work when all of my methods are in my form, but now I moved everything to a class.
As I'm calling my methods in the class, the grid is not populating. So I think that the data source is not being properly called. How can I use my data source from my form into my class?
*This post is locked for comments
I have the same question (0)