XML 47 R35.htm IDEA: XBRL DOCUMENT v3.8.0.1
FAIR VALUE MEASUREMENTS - Fair Value of Financial Assets and Liabilities (Details) - USD ($)
$ in Thousands
Oct. 31, 2017
Jul. 31, 2017
Financial Assets:    
Short-term investments: $ 233,486 $ 210,694 [1]
Recurring    
Financial Assets:    
Total measured at fair value 274,033 268,519
Cash 91,912 80,534
Total cash, cash equivalents and short-term investments 365,945 349,053
Recurring | Commitments    
Financial Liabilities:    
Convertible preferred stock warrant liability 4,577 4,295
Recurring | Corporate bonds    
Financial Assets:    
Short-term investments: 185,757 160,634
Recurring | Commercial paper    
Financial Assets:    
Short-term investments: 36,768 36,084
Recurring | U.S. government securities    
Financial Assets:    
Short-term investments: 10,961 13,976
Recurring | Money market funds    
Financial Assets:    
Cash equivalents: 30,561 34,784
Recurring | Commercial paper    
Financial Assets:    
Cash equivalents: 9,986 23,041
Recurring | Level I    
Financial Assets:    
Total measured at fair value 30,561 34,784
Recurring | Level I | Commitments    
Financial Liabilities:    
Convertible preferred stock warrant liability 0 0
Recurring | Level I | Corporate bonds    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level I | Commercial paper    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level I | U.S. government securities    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level I | Money market funds    
Financial Assets:    
Cash equivalents: 30,561 34,784
Recurring | Level I | Commercial paper    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level II    
Financial Assets:    
Total measured at fair value 243,472 233,735
Recurring | Level II | Commitments    
Financial Liabilities:    
Convertible preferred stock warrant liability 0 0
Recurring | Level II | Corporate bonds    
Financial Assets:    
Short-term investments: 185,757 160,634
Recurring | Level II | Commercial paper    
Financial Assets:    
Short-term investments: 36,768 36,084
Recurring | Level II | U.S. government securities    
Financial Assets:    
Short-term investments: 10,961 13,976
Recurring | Level II | Money market funds    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level II | Commercial paper    
Financial Assets:    
Cash equivalents: 9,986 23,041
Recurring | Level III    
Financial Assets:    
Total measured at fair value 0 0
Recurring | Level III | Commitments    
Financial Liabilities:    
Convertible preferred stock warrant liability 4,577 4,295
Recurring | Level III | Corporate bonds    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level III | Commercial paper    
Financial Assets:    
Short-term investments: 0 0
Recurring | Level III | U.S. government securities    
Financial Assets:    
Short-term investments: 0  
Recurring | Level III | Money market funds    
Financial Assets:    
Cash equivalents: 0 0
Recurring | Level III | Commercial paper    
Financial Assets:    
Cash equivalents: $ 0 $ 0
[1] See Note 3 for a summary of adjustments related to the adoption of the new revenue recognition standard.