Right. So you go in, and go through scanner, it goes off, they say pat down, you can say no, and leave the air port. You do not have to consent to a pat down. Not consenting does mean that you know you won't be flying.
Yes, it was detaining him that was the problem and why it's unconstitutional.