How many years was "The Wizard of Oz" a Broadway musical before the MGM movie version was made?

History Trivia: How many years was "The Wizard of Oz" a Broadway musical before the MGM movie version was made?