Hi,
I have a input field Amount of type Bigdecimal.
i have to sum the column data Amount; after that the total is passed to Amount(Bigdecimal) input field.
The code for calculation is as follows:
public void onActionTotalOfAmount(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionTotalOfAmount(ServerEvent)
int NodeSize = wdContext.nodeCtx_Claim_Create().size();
float Amount = 0;
for(int i=0;i<NodeSize;i++)
{
Amount = Amount + wdContext.nodeCtx_Claim_Create().getCtx_Claim_CreateElementAt(i).getCtx_Amount();
wdContext.currentContextElement().setCtx_Total(Amount);
}
But when i am passing the Amount to input field(Bigdecimal) the error is type missmatch.
Please tell me that how to convert the Amount(float) to Amount (big decimal).
Regards