A teenage boy will face court charged with attempt to murder after allegedly stabbing a supermarket worker.