Net Sales by Geographic Area along with Long-Lived Assets by Location (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Apr. 30, 2017
Apr. 30, 2016
Apr. 30, 2017
Apr. 30, 2016
Jul. 31, 2016
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers $ 103,635 $ 82,237 $ 263,845 $ 232,972  
Long-lived assets 26,965   26,965   $ 25,483
United States          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 23,223 11,420 49,928 45,335  
Long-lived assets 12,934   12,934   11,004
Taiwan          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 13,654 6,686 39,208 22,757  
Long-lived assets 404   404   243
Philippines          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 14,582 9,100 32,975 25,982  
Long-lived assets 100   100   186
Malaysia          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 8,318 4,619 21,447 14,621  
Long-lived assets 3,040   3,040   3,146
Thailand          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 5,251 6,640 17,217 16,924  
Hong Kong / China          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 14,943 16,621 31,464 40,654  
Germany          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 6,615 7,297 20,694 18,201  
Long-lived assets 8,512   8,512   8,457
Singapore          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 5,197 8,150 17,464 15,853  
Long-lived assets 442   442   784
All Other Countries          
Segment Reporting Information [Line Items]          
Sales to unaffiliated customers 11,852 $ 11,704 33,448 $ 32,645  
Long-lived assets 462   462   484
Japan          
Segment Reporting Information [Line Items]          
Long-lived assets 842   842   878
China          
Segment Reporting Information [Line Items]          
Long-lived assets $ 229   $ 229   $ 301