Hi all,
Need some advice on my custom Data Entity, whereby it is Build successfully, but when use it to Export, it has error processing message.
Firstly, I create a custom Data Entity with source is Sales Line, then added these computed field :
public static server str displayLineAmt1()
{
return SysComputedColumn::multiply(
SysComputedColumn::returnField(tableStr(M_SOLineEntity), identifierStr(SalesLine), fieldStr(SalesLine, SalesPrice)),
SysComputedColumn::returnField(tableStr(M_SOLineEntity), identifierStr(SalesLine), fieldStr(SalesLine, SalesQty))
);
}
and
public static server str displayLineAmt2()
{
M_SOLineEntity mSOLine;
SalesLine SalesLine;
select SalesLine where SalesLine.SalesId == mSOLine.SalesOrder && SalesLine.ItemId == mSOLine.ItemId;
return int2Str(SalesLine.SalesPrice * SalesLine.SalesQty);
}
My intention of building these 2 similar result is for learning only. For the 1st one, the approach is from Microsoft, but the 2nd one I saw from someone blog.
Also is it true, if we want to export Data Entity with calculated column, we should Skip Staging ? how about Virtual field ?
Thanks,