Announcements
Table1 table1 = _table1;
[ExtensionOf(classStr(Class1))]
final class Class1_Extension
{
public str fieldD;
public boolean canGenerateValue(Table1 _table1)
{
fieldD = Table3::find(_table1.CustAccount).FieldD;
if (!_table1 || _table1.Field1 == NoYes::Yes || !fieldD)
{
return false;
}
switch (_table1.Type)
{
case Type::A:
return Parameters::find().FieldX && Table2::find(_table1.Id).FieldA;
case Type::B:
return true
}
return false;
}
public void generateValue(Table1 _table1)
{
str value;
//logic
Table1 table1Count;
select count(RecId) from table1Count
where table1Count.Id2 == _table1.Id2;
if(table1Count.RecId == 1)
{
//logic
if(//logic)
{
//logic
value = //logic
}
else
{
//logic
value = fieldD + todayDate + //logic;
}
}
return value;
}
}
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156