• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. moinmoin
    3. Topics

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 10
    • Posts 32
    • Groups 0

    Topics

    • M

      Return svg in HTML component

      Watching Ignoring Scheduled Pinned Locked Moved Development general discussion
      2
      0 Votes
      2 Posts
      3k Views
      M
      Say I have some .js in WebContent/resources. Now this code can generate svg via Raphael.js and also return it as a string. Now I thought of doing <script type="text/javascript">someFunction(someArg)</script> where the `someFunction' returns the "<svg>...</svg>" string. This naive approach does not work. What is needed so that the HTML component div has the svg as a child? Am I missing something? Best Regards, moinmoin
    • M

      Multiple selection and move in Point Hierarchy

      Watching Ignoring Scheduled Pinned Locked Moved Development general discussion
      4
      0 Votes
      4 Posts
      3k Views
      M
      I also implemented it a while ago using jsTree. If someone is interested (since it is an old Mango 1.12.4) just PM me.
    • M

      Custom event creation best practice

      Watching Ignoring Scheduled Pinned Locked Moved Development general discussion
      7
      0 Votes
      7 Posts
      4k Views
      M
      My last post was kind of confused - must be because it was just before lunch break... I got it to work by now, though. I used the EventManager and my existing acknowledge actions. The 'missing link' was my misunderstanding that the private EventManager.setHandlers() is not a 'simple' setter, but instead creates the runtimes from EventHandlerVO's for a given EventInstance. With it, I was able to generate a Map<Integer, List<EventHandlerRT>> that maps events to their handlers. The acknowledge actions of the EventHandlerRT's matching a given eventId are then run in the manner of the existing actions. I do not know whether my approach is a wise one - it works atm, but untested. Thanks for the event manager hint Matthew. Best Regards, Michael
    • M

      Custom Views: Relative Positioning

      Watching Ignoring Scheduled Pinned Locked Moved Development general discussion
      2
      0 Votes
      2 Posts
      2k Views
      M
      Dear Mango Users and Developers, We are running Mango M2M 1.13. We are trying to produce a custom view with relative positioning of elements, so that the graphical view may be viewable on displays for which it was not optimized (i.e. it should scale on resizing). I created a toy graphical view with a button and found the corresponding <div> element. I noticed the style field inside the div element: <div> id="c4" class="selectable" onclick="markViewComponent(this, event);" style="position: absolute; left: 394px; top: 114px; z-index: 0;" > Now I wanted to ask if someone already thought on / implemented already a relative positioning feature. If not, could you give me hints or tips on where to look next? I am thinking of something along the lines of style="position: relative; ...". But then this is not relative to window size but to its "normal" position AFAIK... I would like to get more familiar with Mango and web development in general by solving this problem. Ideally, there should be the ability to set the positioning from the settings editor in p.u. (per unit), e.g. x=0.5, y=0.6, z=0 relative to the current browser window size. As it is now, there are three forms for absolute positioning in the simple point settings editor. If I was more proficient in JavaScript and knew the Mango system better I would also consider calculating the positions on the fly after the window has been resized, i.e. update absolute position values for each view component (?). Best Regards, Michael
    • M

      [SOLVED] Acknowledge *ALL* events

      Watching Ignoring Scheduled Pinned Locked Moved User help
      4
      0 Votes
      4 Posts
      2k Views
      M
      Hi Matthew, I totally agree on the points that you mentioned. I did as I said in my original post and dumped the events table without data from the MySQL data base. I then reimported the empty events table and all works well. Would be nice if the "users" could do something similar as you suggested via "ack all" if They Know What They Are Doing... but that would only be convenience in this case. Marking as solved since there is no priority and procedure works in the few cases where an "ack all" is needed. Thanks Michael
    • M

      Merge two Mango data bases

      Watching Ignoring Scheduled Pinned Locked Moved User help
      5
      0 Votes
      5 Posts
      3k Views
      M
      Just thinking aloud whether the following could work: Turn off auto-increment and delete the ids on a destination db pointvalues table. Then import the old db data. Delete the ID column from the destination db. Then re-create the ID column with auto-increment and primary key. The thing that breaks of course are the pointvalues annotations (what is their use?) and the image file names. Is this correct? I would greatly appreciate some advice/help. Thanks, Michael
    • M

      Get data point names from MySQL data base

      Watching Ignoring Scheduled Pinned Locked Moved User help
      4
      0 Votes
      4 Posts
      3k Views
      M
      Thanks for the answer. Just so that I am not drawing wrong conclusions: To get the name of a data point, I have to query for his xid (e.g. DP_123456) to get the blob and deserialize this blob in some way as part of that will contain the name. I think I asked the wrong question. My goal is to query the data point values by its name. Ideally, the data point name would have an entry similar to data source tables. Currently, I see no way around to get there. Or is there even any? I already experimented to deserialize the blob files from inside my programming interface, but the db package does not support blobs atm.
    • M

      Custom function definitions for server-side script components

      Watching Ignoring Scheduled Pinned Locked Moved User help
      2
      0 Votes
      2 Posts
      2k Views
      M
      Dear All, this is a followup on [url=http://mango.serotoninsoftware.com/forum/posts/list/1070.page]this post. I want to explore the capabilities of Rhino JavaScript inside the server-side script' components under graphical views'. I already did a little bit of JavaScript within a `Meta data source'. I found out [url=http://mango.serotoninsoftware.com/forum/posts/list/206.page#907]here that one can define convenience functions to the "/WEB-INF/scripts/scriptFunctions.js" file. That works nicely after a restart for the Meta data sources. Now I wonder how I can make these function definitions available for the mentioned server-side script components under Graphical views. Thanks and Kind Regards, Michael Bach
    • M

      Custom graphical views best practice

      Watching Ignoring Scheduled Pinned Locked Moved User help
      2
      0 Votes
      2 Posts
      2k Views
      M
      Dear Mango Team, I need to create aggregate daily, weekly and monthly reports. I already got reports using cron patterns to work as expected. What I need though, is a report that also includes some numerical values for a certain data point, e.g. min, max, average etc. I found that in the Point details' section under Statistics'. I would need those statistics for a custom time period such as 00:00:00 to next 00:00:00 instead of "last n time periods". I thought of using a Server-side script' in the Graphical views' section. I already looked into the source, but could not find my way around. Can you give me a hint on where to start? Thanks, Michael Bach Edit: Ok, first off: sorry for all the noise of my post(s). It is a kind of self-helping. I can solve my "problems" shortly after posting here. Maybe they are at least helpful for others. I found a partial solution by using `Data range > Relative to report time > Previous 1 day' to create a report for the last day (00:00:00 to 00:00:00). Additional hints are much appreciated though. For example: Is there a way to exclude the charts from reports, so that only statistics are shown? Is there a way to get the statistics inside the server-side scripts' in the Graphical views' section?
    • M

      [SOLVED] Mango logs value only when it changes

      Watching Ignoring Scheduled Pinned Locked Moved User help
      4
      0 Votes
      4 Posts
      3k Views
      M
      Ah, thanks for clearing that up. Using that point (pun intended) of view, it makes perfect sense.