Expression boxes are for display purposes only. They do not store values.
If you want to store a value which is not in your main data source, create a secondary data source for it.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
is it possible to store data, which in an expression box, in a field without
doing a java or xml code?