Цитата:
Сообщение от
Stitch_MS
А не лучше ли создать новый display метод на таблице с детализацией?
X++:
display Comment comment()
{
ActionTable actionTable;
Comment comment;
if (this.Comment != '')
{
comment = this.Comment;
}
else
{
select firstonly Comment from actionTable
where this.ActionId == actionTable.ActionId;
comment = actiontable.Comment;
}
return comment;
}
у меня OuterJoin
условие вывода скорее такое
X++:
if (this.RecId)
{
comment = this.Comment;
}
else
{
select firstonly Comment from actionTable
where this.ActionId == actionTable.ActionId;
comment = actiontable.Comment;
//но в том-то и беда что записи this в этом случае нет - this.ActionId всегда будет ""
}