I'm going mad over a query I need for my project
purchTable = this.purchTable;
if (purchTable)
{
str intentLetterId_IT = purchTable.IntentLetterId_IT;
select intentLetter.RemainAmountMST() from intentLetter
where intentLetter.IntentLetterId == intentLetterId_IT
&& intentLetter.RecId == purchTable.RecId;
if (intentLetter)
{
Amount remainAmountMST = intentLetter.RemainAmountMST();
info(strFmt("RemainAmountMST: %1", remainAmountMST));
}
}
I keep receveing the error
Join Expected on the select statement
I tried something but I couldn't find the right way.
Either you use a join
or you use a RecId type parameter for that purchTable.RecId like you did for intentLetterId_IT.