1. Says I have 2 tables and one form
TestForm - a form made out of temporary table I will have a grid
Test Table - temp table
Table 1 - regular table with data inserted
Data in table 1
now we dont have data in test table as it is a temp table, so there will be no data in the form too.
now in form int method we have
insert method as
Now when we open the form we will get the form as:
//Here we have to insert the data
Or you can also do like :
dont return a value
write the inserttemp method as
void inserttemp()
{
//TestTable TestTableloc;
Table1 Table1;
while select Table1
{
TestTable.age = Table1.age;
TestTable.insert();
}
//return TestTableloc;
}
Please make sure TestTable is a form datasource not table buffer
and in init
public void init()
{
super();
element.inserttemp();
}
TestForm - a form made out of temporary table I will have a grid
Test Table - temp table
Table 1 - regular table with data inserted
Data in table 1
now we dont have data in test table as it is a temp table, so there will be no data in the form too.
now in form int method we have
insert method as
Now when we open the form we will get the form as:
//Here we have to insert the data
Or you can also do like :
dont return a value
write the inserttemp method as
void inserttemp()
{
//TestTable TestTableloc;
Table1 Table1;
while select Table1
{
TestTable.age = Table1.age;
TestTable.insert();
}
//return TestTableloc;
}
Please make sure TestTable is a form datasource not table buffer
and in init
public void init()
{
super();
element.inserttemp();
}