• I
    iperry

    Hi Phil,

    Ahhh thanks! I figured it most have been something I missed.

    Setting "Script data point read permission" to "superadmin" worked!

    The /facepalm for me was that I was sure I had it working correctly before. I had created a script to create the handlers as they were going to be applied to a large number of data points (and event detectors). Likely I had missed this value in the script which has lead to some frustration. Whopps.

    This is the current version of Mango (3.5x).

    I haven't upgraded to the beta version yet as I usually shy away from these versions. ;) I also am trying to keep my version consistent with a few trials we have in progress until I can upgrade them all.

    Thanks again,
    Ian

    posted in User help read more
  • I
    iperry

    Heya,

    I am having some issues/confusion regarding the resources that are available in an (email) event handler.

    I have a test script data source that retrieves the point hierarchy and list of data points and prints their length:
    0_1558724609581_1afb94b6-18cd-43fa-baef-ceffde00e7c8-image.png

    When I copy the same code to an event handler script, the lengths are 0 (or undefined):
    0_1558724802490_e747b8b6-05ce-4205-9044-840408e422c9-image.png

    Is the configuration and data point query not available in the event handler?

    Aside: it's sometimes a challenge that the logging behaviour is not the same between a data source and event scripting. Unless logging is turned on in a data source script, log statements will not be displayed when validating the script. However, they will be displayed when validating an event handler script. This is kinda understandable considering there is no explicit switch for logging in the handler (which would be nice to have).

    This there something I am missing?

    Thanks
    Ian

    posted in User help read more
  • I
    iperry

    Hi @phildunlap

    Ahh, ok makes sense that meta point cannot trigger its own execution to avoid loops. I guess the way I read the overview in the pop-up help lead me to think that.

    Hitting the refresh button on a meta point triggers a script execution.

    Where is this button? This might have potential.

    Thanks
    Ian

    posted in User help read more
  • I
    iperry

    Heya,

    I am trying to create a meta data point so that once the user updates its value, a script is executed to update other points. According to the point details help, I should be able to add itself to the context once the point has been initially saved.

    0_1558033082192_8559359a-d95a-45f2-b931-f64d42c449b1-image.png

    Once the point has been created and saved, I see the point in the script context droplist but when I try to select it, nothing happens. I can add other points without issue but not the current point. I have refreshed the data sources page just in case but that didn't help. I thought the point needed to be enabled but that didn't help.

    I'm I missing something?

    Thanks
    Ian

    PS: the help window is a bit out-of-date as it refers to clicking a plus sign to add a point to the context.

    posted in User help read more
  • I
    iperry

    Hi @MattFox,

    Still here chugging along. Got about 3 different streams of development going for stuff, which seem to merge at times. heh

    Thanks for the clarification. After reading Jared's posting and bit of testing, it looks like I had been setting them incorrectly. It wasn't until I tried to use the variable name that I realized the issue. Whopps. At least updating the existing meta points I have isn't that big of a hassle, i.e. export > text replace > import.

    In the end the point data wasn't going to help me as I was hoping to get its hierarchical info. Guess I will need to query for that data.

    (The intention was if the setpoint associated to the alarm was set to -1, get the setpoint of the group it's in instead)

    Thanks again,
    Ian

    posted in User help read more
  • I
    iperry

    Heya,

    Can you clarify the use of the "variable name" on a meta data point please? Is the use of it limited to the context of the point?

    https://forum.infiniteautomation.com/topic/3033/using-json-store-for-data-point-tagging-can-it-be-done

    I reread Jared's posting (as I planned to use metadata of the meta point itself) and it dawned on me that I may have been setting it with a "bad" name. I had thought the variable name should be unique and had been using the same as the point name, i.e. name/variable name = "Temp 1 High Alarm".

    Is there any reason to change the default value of "my" for the variable name? Is there a naming convention I should use, i.e. camel case?

    Thanks
    Ian

    posted in User help read more
  • I
    iperry

    Heya,

    I have a modal pop-up which displays the latest data for a sensor (in this case temperature) but when there is no data, points are manufactured for the first and last dates in the range.

    0_1555540640661_ed5d4a99-3fae-405b-a97b-04523d43fcf4-image.png

    Is there a way to configure the chart to be empty if there is no data in the selected range?

    Note: I had thought this had been inquired about in another topic but could not find it to reference.

    My work-around is to have ng-if="pointsTemp.length > 2" in ma-serial-chart tag. I have a span which displays "No data in the selected range" if <= 2.

    Thanks
    Ian

    posted in User help read more
  • I
    iperry

    Heya,

    I am trying to determine the necessity for a property template on a Mango Persistent TCP data point. I noticed that when I export the json for a persistent point, there is no element for the template id. Other point types will at least have this element set to an empty string if not defined.

    The lack of the template id element would lead me to believe that the property template is not required. The data history will be the same as the point to which it is linked; the logging type of "All Data" will ensure this.

    Is this correct?

    Thanks
    Ian

    posted in User help read more
  • I
    iperry

    Thanks Matt, Phil... I will check out the swagger API interface. I will dive into the SQL queries too as I haven't looked at how the data is organized/stored yet.

    posted in User help read more
  • I
    iperry

    Heya,

    I am starting to build up a long list of property templates that I have made and now I am looking to delete some of the obsolete templates. Is there any facility for deleting templates? I have poked around the app and have yet been able to find any method for deleting templates.

    Is there a way to delete elements (templates, points, data sources, etc) using JsonEmport that I may have missed?

    Thanks
    Ian

    posted in User help read more