I can tell it is dative from "einem" , but why, i.e. how is the glass the indirect article
"aus" = dative. Automatically. Don't even think about another case. It's dative. Here's a list of dative prepositions:
Hope that helps!
thanks. I'll learn the other dative prepositions too.