Hi all,
i have an one setup form.

As shown in the picture above, EOS record same header and line value 4 row i want to when i click generate setup it will come.
line 4 how to hard code i'm wondering.
Header : MPEoSSetups.
Line : MPEoSLevels.
in the "generate setup" dialog i have an calculation ID its mandatory that calculation ID field come in the "MPcalculation" table.
public void clicked()
{
DialogField fld;
Dialog dlg = new Dialog("Generate setup");
MPEOSLevels copyFrom, newlines;
MPEoSSetups header;
MPCalculations Calculations;
MPCalculationId calc;
int ct;
fld = dlg.addField(extendedTypeStr(MPCalculationId));
if(dlg.run())
{
calc = fld.value();
if(calc)
{
while select Calculations
where Calculations.MPCalculationId == calc
{
select firstonly copyFrom
where copyFrom.MPEoSSetup == MPEoSSetups.MPEoSSetup;
if(copyFrom)
{
// copyFrom.MPEoSRangeId = "1";
// copyFrom.Description = "0-2";
// copyFrom.NumOfDays = 15;
// copyFrom.insert();
i'm wondering how to make that happen here.
}
}
}
}
super();
Thanks