you can create a separate feature where you can open the downloaded pdf and use gotoFeature function to switch between them.
Thanks for your response.
I followed your steps and created a new custom feature to open the downloaded pdf file.
This new custom feature has just another amx page which has a golink to open the locally stored downloaded pdf file.
From the main feature i used a new custom bean method to use gotofeature method and it successfully takes me to the new amx page.
There, on the new amx page I also added a custom button to go back to the Order Feature.
This button has another bean method which uses gotofeature method to go back to the main feature.
But yet again it stucks on the new page and doesnt go back to the previous feature.
Are you suggesting something like have a remote url in the new feature? I am trying that now.
I would appreciate your comments and corrections.
I have used goLink component and I have passed the local path of the cache folder where the pdf is downloaded on the android mobile device.
PDF opens successfully on the default pdf reader of the mobile phone which is the google drive pdf reader.
Then when I hit back button, control passes over to the new amx page created on the new feature.
There I have this back command button which calls new custom bean method to go ahead and call gotofeature method with the primary order feature.