PlanLine (with property abstract: yes)
PlanLineTime (extends PlanLine)
PlanLineCounter (extends PlanLine)
I am trying to copy a line from PlanLine.
So I tried this in a Form where PlanLine is a Data Source:
{
PlanLine copiedLine;
where copiedLine.MaintenancePlan == OriginaRecId.value()
{
planLine.insert();
}
}
And this 👆 works!
But my Form got a bit bulky so I moved the logic into a class. And there I cannot do this:
{
PlanLine copiedLine;
where copiedLine.MaintenancePlan == fromMaintenancePlan.RecId
{
PlanLine newPlanLine;
newPlanLine.MaintenancePlan = newMaintenancePlan.RecId;
newPlanLine.insert();
}
}