a!dropdownField( label: "Type Of Loan", labelPosition: "ABOVE", choiceLabels: cons!LM_LoanTypes, choiceValues: cons!LM_LoanTypes, value: ri!LM_CustomerDetails.loanid.typeOfLoan, saveInto: ri!LM_CustomerDetails.loanid.typeOfLoan, searchDisplay: "AUTO", required: true
a!floatingPointField( label: "Interest Rate", labelPosition: "ABOVE", value: if( ri!LM_CustomerDetails.loanid.typeOfLoan,rule!LM_LoanRates(LoanType: ri!LM_CustomerDetails.loanid.typeOfLoan )," " ), saveInto: ri!LM_CustomerDetails.loanid.interestRate, refreshAfter: "UNFOCUS", readOnly: TRUE,
i want to display interest rate through the type of loan with decision i have created.but it is not displaying
Discussion posts and replies are publicly visible
use this code as reference
a!localVariables( local!loanType, local!interestRate, { a!dropdownField( label: "Type Of Loan", labelPosition: "ABOVE", placeholder: "Select A Loan Type", choiceLabels: cons!TEST_LOANTYPES, choiceValues:cons!TEST_LOANTYPES, value: local!loanType, saveInto:{ local!loanType, a!save(local!interestRate,rule!TEST_LoanRates(LoanType:local!loanType)) }, searchDisplay: "AUTO", required: true ), a!textField( label: "Interest Rate", labelPosition: "ABOVE", value:local!interestRate&"%", saveInto: local!interestRate, refreshAfter: "UNFOCUS", readOnly:true() ) } )
can i use it with rule inputs for saving the data.i need to capture the data for processmodel.and if i use rule inputs for the above code interest rate is not displaying
even it should work with rule inputs
{ a!dropdownField( label: "Type Of Loan", labelPosition: "ABOVE", placeholder: "Select A Loan Type", choiceLabels: cons!TEST_LOANTYPES, choiceValues:cons!TEST_LOANTYPES, value: ri!loanType, saveInto:{ ri!loanType, a!save(ri!interestRate,rule!TEST_LoanRates(LoanType:ri!loanType)) }, searchDisplay: "AUTO", required: true ), a!textField( label: "Interest Rate", labelPosition: "ABOVE", value:ri!interestRate&"%", saveInto: ri!interestRate, refreshAfter: "UNFOCUS", readOnly:true() ) }
ya its working.In the decision I have given Wrong Input.Thanks for reply.