XML 69 R58.htm IDEA: XBRL DOCUMENT v3.19.1
OTHER GAINS (LOSSES) , NET - Components of Other Gains (Losses), Net (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Apr. 30, 2019
Apr. 30, 2018
Other Income and Expenses [Abstract]        
Foreign currency exchange losses $ (33) $ 720 $ (601) $ (1,351)
Gains, net on trading securities 0 0 0 1,876
Other, net (81) (1,412) (231) (1,512)
Other gains (losses), net $ (114) $ (692) $ (832) $ (987)