Hi Rúben,
Web blocks can't access the information of the screen, so you need to create an input in your web block and send the Restaurant Id, so you can use it there.
You can find more details about communication between web blocks and screens in this link: https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Reuse_UI/Pass_Data_Between_Blocks
Let me know if this helps,
Pedro