Scenario: I've created two simple forms. The Form1 is a simple StringEdit control with a button. The Form2 is a set of different controls and buttons and Form2 opens after clicking the button of the Form1.
What I need: What I need is the Form2 initialized with the value set in the StringEdit control of the Form1.
I tried to do it assigning DataSource and DataField to the StrinEdit control and it worked:
void clicked()
{
Args args;
FormRun formRun;
;
args = new Args();
args = element.args();
args.name(formStr(Form3));
args.record(SMAServiceOrderTable);
formRun = ClassFactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.wait();
super();
}
public void init()
{
SMAServiceOrderTable serviceordertable;
super();
serviceordertable = element.args().record();
}
But this works when a DataSource and a DataField is associated to the StringEdit. Could someone explain me how should I build it to pass the value of Form1 to Form2 when is an ExtendedDataType?
Thank you.