I’ve been working on my first Web 2.0 App for the last week or so, and I’m almost finished with it. It’s a pretty simple app that does a HTTP GET to a commercial product’s API every 60 second, parses the returned JSON, processes the data and display the statistics in a pie chart which is used on the shop floor displayed on a 65" TV so that management and machine operators can view the current performance of the machine over the past hour.
There are two machines that each have a TV assigned to it and the app WebToolBar has two WebToolBarButtons, one for each machine. I have set Chrome to load the app on startup in full screen mode, but I would also like to be able to specify the machine to load in the URL so no one ever need to select ether of the two buttons. Managers from their desk accessing the app would select the button for the machine they want to view and currently the app by default sets the WebToolBarButton for machine 1 as pressed when shown and loads the Machine 1 view.
With that as background, Is there a way in the app URL that I can specify which of the two machines to load on startup/application WbePage.Shown and what would be the best way to go about doing that?