I am still unable to get past this, something is not working. If BorrowStatus is answered 1, then my fee is to be calculated at AIssue * 0.002, if this amount ends up being greater than 1000 the fee should be set to $1,000. If this amount ends up being less than $100 the feel should be set to $100, if neither of those apply, the fee should just remain at the AIssue * 0.0002
----- dataroot.Receipt.Fee::calculate: - (JavaScript, client) --------------------------------------
var dataroot.Receipt.Fee = 0 // clear the fee value
if (dataroot.P1.SReport.BorrowStatus == 1) then
dataroot.Receipt.Fee = dataroot.P1.SReport.AIssue.rawValue * 0.002;
if (dataroot.Receipt.Fee > 1000) then
dataroot.Receipt.Fee = 1000 // maximum value
endif // maximum value
// test for below minimum fee
if (dataroot.Receipt.Fee.< 100) then
dataroot.Receipt.Fee = 100 // minimum value
endif // minimum value
endif // Qstn1
$.rawValue = dataroot.Receipt.Fee //set the field value
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs