Announcements
[ExtensionOf(FormDataFieldStr(SalesTable, SalesLine, CodeXRecId))]
final class SalesTableFormSalesLineDS_CodeXRecId_Extension
{
public void modified()
{
Table1 table1;
Table2 table2;
FormDataSource formDataSource = element.datasource();
SalesLine salesLine = formDataSource.cursor(); // it errors here
next modified();
RefRecId CodeXRecId = salesLine.CodeXRecId;
select firstOnly CodeY, Id from table1
where table1.RecId == salesLine.CodeXRecId
salesLine.ItemId = table1.CodeY;
formDataSource.object(fieldNum(SalesLine, ItemId)).modified();
salesLine.CodeXRecId = CodeXRecId;
salesLine.Id = table1.Id;
}
}
FormDataObject formDataObject = any2Object(this) as FormDataObject;
FormDataSource formDataSource = formDataObject.datasource();
SalesLine salesLine = formDataSource.cursor();
FormDataSource formDataSource = element.datasource();
SalesLine salesLine = formDataSource.cursor();
[ExtensionOf(FormDataFieldStr(SalesTable, SalesLine, CodeXRecId))]
final class SalesTableFormSalesLineDS_CodeXRecId_Extension
{
public void modified()
{
Table1 table1;
Table2 table2;
FormDataObject formDataObject = any2Object(this) as FormDataObject;
FormDataSource formDataSource = formDataObject.datasource();
SalesLine salesLine;
next modified();
salesLine = formDataSource.cursor();
RefRecId CodeXRecId = salesLine.CodeXRecId;
select firstOnly CodeY, Id from table1
where table1.RecId == salesLine.CodeXRecId
salesLine.ItemId = table1.CodeY;
formDataSource.object(fieldNum(SalesLine, ItemId)).modified();
salesLine.CodeXRecId = CodeXRecId;
salesLine.Id = table1.Id;
}
}
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,382 Most Valuable Professional
nmaenpaa 101,156