Hi now I dev x++ for Data Provider
1. Set up variable
ReturnReasonCode ReturnReasonCode;
str returnReasonCodeID;
str returnReasonDesc;
2. I try to filter data in table ReturnReasonCode to show with criteria ReasonCodeId = custInvoiceJour.ReturnReasonCodeId
returnReasonCodeID = custInvoiceJour.ReturnReasonCodeId ;
returnReasonCode = ReturnReasonCode::find(ReturnReasonCode.ReasonCodeId); // suspect this line error but what's wrong?
3. I show My string
if (returnReasonCode)
{
returnReasonDesc = returnReasonCode.Description; // Get the Description field from the ReturnReasonCode record
}
else
{
// Handle the case when the return reason code is not found
}
and of cause I didn't got error but nothing to show. what's wrong please help.