Hi,
Could you let us know where this display method is residing. If its on the form, please move it to the table InventTrans and cache it on the init method of InventTrans datasource. Also I feel this query can be optimized by reducing the number of joins and introducing fieldlist(like selecting only RecId from tables invDim and invOrigin).