<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Global variables for dashboard - Projects				            </title>
            <link>https://www.simhubdash.com/community-2/projects/global-variables-for-dashboard/</link>
            <description>All about SimHub!</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 16 Apr 2026 01:21:53 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Global variables for dashboard</title>
                        <link>https://www.simhubdash.com/community-2/projects/global-variables-for-dashboard/#post-9994</link>
                        <pubDate>Fri, 10 Jan 2025 14:35:21 +0000</pubDate>
                        <description><![CDATA[Newbie question here, unfortunately could not find any answer and ChatGPT is hallucinating. Or most likely I&#039;m doing something wrong.
My aim is to store some custom global properties in the...]]></description>
                        <content:encoded><![CDATA[<p>Newbie question here, unfortunately could not find any answer and ChatGPT is hallucinating. Or most likely I'm doing something wrong.</p>
<p>My aim is to store some custom global properties in the dashboard's session scope.</p>
<p>I want to access those properties in components and JS functions.</p>
<p> </p>
<p>I've tried the following methods to set values in the local script for a component, but which I could not access elsewhere in another component:</p>
<ul>
<li>$prop('GameData.SetCustomProperty')('myCustomProperty', 'My Custom Value'); </li>
<li>$prop('GameData.SetCustomProperty')("myCustomProperty"), 'My Custom Value');</li>
<li>root; (as seen in &lt;a href=&quot; <span style="color:#aaa">removed link</span> "&gt; <span style="color:#aaa">removed link</span> </a>)</li>
</ul>
<p>I've added minimal update intervals for the components with bindings, which has no effect. I can get the root value (a simple counter, which is updated in a function) to be updated more than once after loaded.<br /><br /><br />Furthermore, I would like to to know how far advanced a car is the current lap in terms of km distance. Any tips?</p>]]></content:encoded>
						                            <category domain="https://www.simhubdash.com/community-2/projects/">Projects</category>                        <dc:creator>RoJoJo</dc:creator>
                        <guid isPermaLink="true">https://www.simhubdash.com/community-2/projects/global-variables-for-dashboard/#post-9994</guid>
                    </item>
							        </channel>
        </rss>
		