Addition of two rows values in table using formatted search
i have created one UDF field in market document rows, now in AR invoice i need to add the values in the UDF fields of two rows, want to show it in anather outside UDF in title. kindly suggest me some query to track that.
Ex:- i had entered two items in rows and
for first UDF row i have given 20
for second UDF row i have given 30.
now i need to show sum of the two UDF in two rows in title UDF.
kindly give me some query used for formatted search to do this task.