I have a grid that contains 3 fields: x,y and z and are filled according to the selected line in the grid. I also have a button above the grid, when clicked a new form appears that contains the same fields x and y but empty. What i need to do is that when i click the button these two fields needs to be filled with the same data as the grid. This is what i did:
void clicked()
{
Args args;
FormRun formRun;
super();
args = new args();
args.record(projCostTrans);
args.name( formstr( Updatee ) );
formRun = classFactory.formRunClass( Args );
formRun.init();
formrun.run();
formrun.wait();
formRun.detach();
TmpTable_ds.research();
TmpTable_ds.executeQuery();
ProjCostTrans_ds.refresh();
ProjCostTrans_ds.executeQuery();
}
public void init()
{
ProjCostTrans projCostTrans;
super();
projCostTrans=element.args().record();
TmpTable.x=ProjCostTrans.x;
TmpTable.y=ProjCostTrans.y;
TmpTable_ds.research();
TmpTable_ds.executeQuery();
}
when i debug i can see that the tmp table is filled but the form is still empty, is it something about refresh? plus does my code contain extra things that are not needed?
*This post is locked for comments
I have the same question (0)