<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to add meta point as context to itself]]></title><description><![CDATA[<p dir="auto">Heya,</p>
<p dir="auto">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.</p>
<p dir="auto"><img src="https://camo.nodebb.org/522b1eb97fb38b407375241541ac84deb8dffd2d?url=https%3A%2F%2Fi.imgur.com%2FBYmaTWj.png" alt="0_1558033082192_8559359a-d95a-45f2-b931-f64d42c449b1-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">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.</p>
<p dir="auto">I'm I missing something?</p>
<p dir="auto">Thanks<br />
Ian</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.mango-os.com/topic/4214/unable-to-add-meta-point-as-context-to-itself</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 18:19:58 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4214.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 May 2019 18:50:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to add meta point as context to itself on Fri, 17 May 2019 16:06:34 GMT]]></title><description><![CDATA[<p dir="auto">You can find the button on the data point details page, next to the current value.</p>
<p dir="auto">There is also the <code>/rest/v1/runtime-manager/force-refresh/{xid}</code> REST endpoint (which is what that button is calling).</p>
<p dir="auto">Then there is the <code>RuntimeManager</code> context object in scripts, which also has a function to trigger a refresh of a data point (or even a data source) if supported, like so:</p>
<pre><code>RuntimeManager.refreshDataPoint("DP_XID"); //.refreshDataSource("DS_XID")
</code></pre>
]]></description><link>https://forum.mango-os.com/post/22177</link><guid isPermaLink="true">https://forum.mango-os.com/post/22177</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Fri, 17 May 2019 16:06:34 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to add meta point as context to itself on Thu, 16 May 2019 20:04:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/phildunlap" aria-label="Profile: phildunlap">@<bdi>phildunlap</bdi></a></p>
<p dir="auto">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.</p>
<blockquote>
<p dir="auto">Hitting the refresh button on a meta point triggers a script execution.</p>
</blockquote>
<p dir="auto">Where is this button?  This might have potential.</p>
<p dir="auto">Thanks<br />
Ian</p>
]]></description><link>https://forum.mango-os.com/post/22171</link><guid isPermaLink="true">https://forum.mango-os.com/post/22171</guid><dc:creator><![CDATA[iperry]]></dc:creator><pubDate>Thu, 16 May 2019 20:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to add meta point as context to itself on Thu, 16 May 2019 19:53:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi iperry,</p>
<p dir="auto">The meta point should already be in its context, then, under the variable <code>my</code></p>
<p dir="auto">A meta point cannot trigger its own execution on context update, to avoid infinite loops. Setting a value to a meta point just saves that value. Hitting the refresh button on a meta point triggers a script execution.</p>
]]></description><link>https://forum.mango-os.com/post/22170</link><guid isPermaLink="true">https://forum.mango-os.com/post/22170</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Thu, 16 May 2019 19:53:52 GMT</pubDate></item></channel></rss>