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

    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

    moinmoin

    @moinmoin

    0
    Reputation
    936
    Profile views
    32
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    moinmoin Unfollow Follow

    Latest posts made by moinmoin

    • Return svg in HTML component

      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

      posted in Development general discussion
      M
      moinmoin
    • RE: Return svg in HTML component

      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

      posted in Development general discussion
      M
      moinmoin
    • RE: Multiple selection and move in Point Hierarchy

      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.

      posted in Development general discussion
      M
      moinmoin
    • Multiple selection and move in Point Hierarchy

      Dear Mango Users and Developers,

      how would I go about on implementing multiple point selection, e.g. via control-click, and moving of multiple point selections to another folder in the point hierarchy page?

      I gather from the pointHierarchy.jsp that a click on a point is handled by the onTitleClick function in TreeNode.js. Now I am thinking whether this click could handle a key-modified click... Problem is mainly: old version, no doc. I am running a rather old version of mango 1.12.2 with dojo 0.4.2. Do you think it would be better to load a more recent dojo for this task? I tried loading a recent and compressed dojo in the pointHierarchy.jsp, but that one fails - I assume because dojo is already loaded in the parent tag:page. Did someone already implement a similar feature using the old dojo?

      Thanks and Best Regards,
      Michael Bach

      posted in Development general discussion
      M
      moinmoin
    • RE: Multiple selection and move in Point Hierarchy

      Dear Mango Users and Developers,

      how would I go about on implementing multiple point selection, e.g. via control-click, and moving of multiple point selections to another folder in the point hierarchy page?

      I gather from the pointHierarchy.jsp that a click on a point is handled by the onTitleClick function in TreeNode.js. Now I am thinking whether this click could handle a key-modified click... Problem is mainly: old version, no doc. I am running a rather old version of mango 1.12.2 with dojo 0.4.2. Do you think it would be better to load a more recent dojo for this task? I tried loading a recent and compressed dojo in the pointHierarchy.jsp, but that one fails - I assume because dojo is already loaded in the parent tag:page. Did someone already implement a similar feature using the old dojo?

      Thanks and Best Regards,
      Michael Bach

      posted in Development general discussion
      M
      moinmoin
    • RE: Custom event creation best practice

      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

      posted in Development general discussion
      M
      moinmoin
    • RE: Custom event creation best practice

      Hum. I get the picture. Thanks for the explanation! I do not think I could make it in a reasonable amount of time though. While your suggestion is a generic one, I just need to set a point on an ack event...

      In the meantime, I succeeded with another approach in adding an 'acknowledged' action to the EventHandlerVO (in the fashion of active and inactive actions) including saving (serialization). Next step would be to set the associated data point (in case of SET_POINT action) with a DWR method called from ackEvent() through the onclick in the green checkmark div.

      The further processing: eventId -> dataPointId associated with event -> eventHandler associated with event and dataPointId (how?) -> call SET_POINT actions derived from matching event handlers.

      The missing link is: How to test whether an event handler is associated with a given data point and a given event? Could you point me in the right direction?

      posted in Development general discussion
      M
      moinmoin
    • RE: Custom event creation best practice

      Hi Matthew,

      I see your point with the snake :) The acknowledgement would most certainly cause a point (preferably to be chosen by the user) to be set in a meta data source so I thought of the SET_POINT type event approach. As an aside, it would be nice to have the acknowledgement listed in the event log...

      Regarding implementation of your notification approach, would you add the notification to the event as a string or integer - that would then be tested by the event handler? Is there a notification mechanism implemented in Mango Automation 2.x where I could have a look at how experts would solve such a problem? Could you give me any hint implementation-wise?

      Thanks for your comment, much appreciated.

      Best Regards,
      Michael

      posted in Development general discussion
      M
      moinmoin
    • Custom event creation best practice

      Dear Mango Users and Developers,

      DISCLAIMER: Not sure whether this is the right place for my thread, but the section "Mango 1.12.5 and earlier" does not have a development subsection. Please move it to 'general discussion' if needed.

      I am using a legacy version of Mango M2M 1.12.2 and would like to enhance the event handler (+listener?) to handle acknowledge events that would be triggered if a user acknowledges an alarm (by pressing the green check-mark).

      I am trying it along the lines of the 'active' and 'inactive' events in the event handlers menu. I looked into various classes, e.g. EventHandlerVO, EventHandlersDwr, EventHandlerRT and related ones. I can already save an 'acknowledge' action in the event handlers .js interface.

      As a next step I need to create the 'acknowledge' event. I searched for an example of event generation, but could not find any. Could anyone point me to an example where an event is triggered? Where to begin?

      A gentle shove is much appreciated :)

      Best Regards,
      Michael Bach

      posted in Development general discussion
      M
      moinmoin
    • RE: Custom event creation best practice

      Dear Mango Users and Developers,

      DISCLAIMER: Not sure whether this is the right place for my thread, but the section "Mango 1.12.5 and earlier" does not have a development subsection. Please move it to 'general discussion' if needed.

      I am using a legacy version of Mango M2M 1.12.2 and would like to enhance the event handler (+listener?) to handle acknowledge events that would be triggered if a user acknowledges an alarm (by pressing the green check-mark).

      I am trying it along the lines of the 'active' and 'inactive' events in the event handlers menu. I looked into various classes, e.g. EventHandlerVO, EventHandlersDwr, EventHandlerRT and related ones. I can already save an 'acknowledge' action in the event handlers .js interface.

      As a next step I need to create the 'acknowledge' event. I searched for an example of event generation, but could not find any. Could anyone point me to an example where an event is triggered? Where to begin?

      A gentle shove is much appreciated :)

      Best Regards,
      Michael Bach

      posted in Development general discussion
      M
      moinmoin