Public views
-
I'm having trouble getting access to the public views. I don't really know much about this stuff, and I can't seem to figure out what URL I should use to get where I need to be.
Thanks,
-Mike -
Hi Mike,
Start with the URL for any page that you can access in Mango, such as the login page. Replace the file name part (e.g. login.htm) with "public_view.htm". The "Remote views" section of help page describes the parameters that need to be sent to the public view page (i.e. viewId or viewName).
Finally, when you edit the view you need to set the "Anonymous access" level to something other than "none". Note that when you are editing the view, the url in your browser will give you the correct viewId value.
-
Thanks, I'll give it a shot.
-
No such luck. I seem to get an error in Tomcat which says "No mapping for [/public_view.htm] in DispacherServlet with name 'springDispacher' " and I get a "Page not found" in mango.
-Mike
-
Sorry, i should have asked earlier: what version are you using? The Open version does not include public views. That functionality is only in the commercial version.
-
Aaahh... All is now clear. I'll have to buy the upgrade. Is the commercial version transferable? When I'm done playing with it on my laptop can I move it to my server?
Thanks,
-Mike -
There also seems to be no indication of this function not being included in the open version.
-
Yes, instances are transferable. And you are correct; we'll need to consider how to make it clearer that it is a commercial feature.
-
Is this a function that is available with the free downloaded version? According to the license page on the Mango site, > The product formerly known as Commercial Mango is now the official (and only) Mango M2M.
I am asking this because I followed the steps (including changing the src=""), but the remote view I see is the Mango thermometer, not my custom view page. -
There is no longer a commercial version.
The current version is 1.12.0 and has all capabilities and features.
Look at the example at the bottom of the general help (welcome) page in your instance of Mango. It should help you.
BR
-
I feel that I have followed all of the required steps:
-Create graphical view
-Set anonymous access to "read"
-create an html file with the following code:```
<div style="position:relative;width:80px;height:150px">
<iframe frameBorder="0" style="position:absolute;width:450px;height:300px" scrolling="no" allowTransparency="true"
src="http://localhost:8080/public_view.html?viewXid=GV_630560"></iframe>
</div>However I get the following error message:> Specified view was not found or is not anonymously viewable. Do you have the correct viewId, viewName, or viewXid parameter? Is there something else that I am missing? Thanks.
-
Have you tried using the viewId or viewName parameters to see if it's a problem with the viewXid?
-
I figured it out, the problem was with the "localhost". I changed it to my IP address and it works fine.
Not sure why the "localhost" was the problem, as the error message means that mango recieves the request for the public view and sends back the message (rather than a HTTP not found error or something like that).
-
Another instance of Mango?
-
Nope, just 1.