Area field

How can I insert a field with the area of a polyline?

In the field categories there is 'getarea' field but it doesn't seem to work...