Initially, tried writing a separate web part which loads a .Net File Dialog user control box but it was turning out to be complex so left the approach as time was limited
Then, tried the out of the box Page Viewer Web Part but it has the limitation wherein you can't dynamically load the network path and in order to attain it, one needs to write a custom Dynamic Page Viewer Web Part which is another time consuming and complex customization.
After some investigation, I found a much simpler way to achieve this.
- Wrote a dynamic Java Script which queries the Network Path from AX Table
- Pass the store parameter to it
- Loads the UNC Path dynamically on the fly based on the store parameter
Tip: Initially, I was using the ClientScript.RegisterStartupScript method to register the script block but landed into the same issues this bloke was facing when trying to load from webpartzone.
, ScriptManager came to my rescue here.Below is the button in action on our portal Site (Role Center Page) which loads the network Report path