Hi

I want to do a calculation on a variable before displaying it in the form when clicked on the Query button.

p_session.set_value(p_block_name => 'DEFAULT',
p_attribute_name => 'A_TOTAL',
p_value => total/1000);

How do I get the value of total divided by 1000 upon clicking on the Query button in portal form??