We are developing the application In rhomobile ,we are using Barcode.take_barcode for scanning the Barcode.
we need to change the orientation to Portrait while scanning the Barcode.
Rhoelement will have the option to change the landscape to Portrait or viceversa ?, while scanning the Barcode
Before activating barcode may be you can try upsideDown method in ScreenOrientation api.
Checkout the rhoelements docs http://docs.rhomobile.com/rhoelements/screenorientation
I did not try this in an application, will try it when I get time
What device are you targeting ?