<?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[Any easy way to add a custom .js file to manage components in the HMI]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I've been recently trying to rework the way I manage multiple screens and whilst reading the documentation I found the reference to the REX HMI library. There is a lot of useful functions and I was wondering if I could implement automatic hiding of certain components depending on the alias they have by using the get() or $i() method.</p>
<p dir="auto">Correct me if I'm wrong if it is even supported to use the .hide() method on most of the components because I haven't managed to try to get it working yet. But if it is as it seems, my question shortly is how could I point to a custom .js script from the generated HMI in a consistent way upon recompiles.</p>
<p dir="auto">Also as a side note is there any known way to tell chromium to not ask for updates or translations of a site, it kind of throws off the kiosk look of a machine.</p>
<p dir="auto">Thanks in advance for any and all responses!</p>
]]></description><link>https://forum.rexygen.com/topic/91/any-easy-way-to-add-a-custom-js-file-to-manage-components-in-the-hmi</link><generator>RSS for Node</generator><lastBuildDate>Sat, 16 May 2026 18:07:05 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/91.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Feb 2020 19:54:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Tue, 24 Mar 2020 12:28:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a></p>
<p dir="auto">I wanted to add that it just works on the correct size sometimes, so I'm still glad and waiting for the fixes in the future version.</p>
]]></description><link>https://forum.rexygen.com/post/347</link><guid isPermaLink="true">https://forum.rexygen.com/post/347</guid><dc:creator><![CDATA[sadilekivan]]></dc:creator><pubDate>Tue, 24 Mar 2020 12:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Tue, 24 Mar 2020 09:25:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a></p>
<p dir="auto">Thanks, I have adjusted the page size, and it worked great.</p>
]]></description><link>https://forum.rexygen.com/post/346</link><guid isPermaLink="true">https://forum.rexygen.com/post/346</guid><dc:creator><![CDATA[sadilekivan]]></dc:creator><pubDate>Tue, 24 Mar 2020 09:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Tue, 24 Mar 2020 08:08:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/25">@sadilekivan</a><br />
Hi Ivan,<br />
our developers has fixed the issue with moving of the component on the edge of the screen - fix will be part of new release version.</p>
<p dir="auto">However the origin of this issue is that you didn't respect the page size in your design. See following screenshot: <img src="/assets/uploads/files/1585037223256-6bf6ca58-6504-4732-9349-f26e4952719a-image.png" alt="6bf6ca58-6504-4732-9349-f26e4952719a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I recommend to resize the page. You can use "Resize page to content..." feature in the Document Properties dialog.</p>
<p dir="auto">Regards, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/345</link><guid isPermaLink="true">https://forum.rexygen.com/post/345</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Tue, 24 Mar 2020 08:08:51 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Tue, 10 Mar 2020 11:21:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/25">@sadilekivan</a> Hi Ivan,<br />
thanks for sharing your project files - I was able to get the error as you described. I handed over your source-files to our developers. Once I have some information I will let you know.</p>
<p dir="auto">Regards, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/320</link><guid isPermaLink="true">https://forum.rexygen.com/post/320</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Tue, 10 Mar 2020 11:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Tue, 10 Mar 2020 09:53:34 GMT]]></title><description><![CDATA[<p dir="auto">Just for the reference, the example project with custom .js file can be found here: <a href="https://forum.rexygen.com/topic/93/responsive-design/4">https://forum.rexygen.com/topic/93/responsive-design/4</a></p>
<p dir="auto">Jaroslav</p>
]]></description><link>https://forum.rexygen.com/post/319</link><guid isPermaLink="true">https://forum.rexygen.com/post/319</guid><dc:creator><![CDATA[jaroslav_sobota]]></dc:creator><pubDate>Tue, 10 Mar 2020 09:53:34 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Wed, 04 Mar 2020 21:58:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/5">@cechurat</a></p>
<p dir="auto">Thanks for the advice with the virtual keyboard it works wonderfully. I rechecked yes the bug consistently happens on my raspberry screen and on my PC screen. I also rechecked the older projects and both raspberry and PC screens are loaded with the exact correct positions.</p>
<p dir="auto">Here is a full directory of my project:<br />
<a href="/assets/uploads/files/1583359111563-motorconnector.zip">0_1583359112176_MotorConnector.zip</a></p>
]]></description><link>https://forum.rexygen.com/post/312</link><guid isPermaLink="true">https://forum.rexygen.com/post/312</guid><dc:creator><![CDATA[sadilekivan]]></dc:creator><pubDate>Wed, 04 Mar 2020 21:58:55 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Wed, 04 Mar 2020 08:22:52 GMT]]></title><description><![CDATA[<p dir="auto">Hi Ivan,</p>
<p dir="auto">thanks for reporting this. However I'm not able to reproduce it - please, can you attach some testing example which show this bug? Which browser do you use? Chromium? Does it also happen on your host PC screen?</p>
<p dir="auto">@virtualKeyboard<br />
If you are using kiosk mode in Chromium just pass "virtualKeyboard" parameter along with the URL, i.e.:<br />
<a href="http://127.0.0.1:8008/hmi/index.html?virtualKeyboard=true">http://127.0.0.1:8008/hmi/index.html?virtualKeyboard=true</a></p>
<p dir="auto">Regards, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/311</link><guid isPermaLink="true">https://forum.rexygen.com/post/311</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Wed, 04 Mar 2020 08:22:52 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Sun, 01 Mar 2020 10:54:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/25">@sadilekivan</a> And while being close to refreshing HMI, can I set the virtual keyboard to be enabled from start?</p>
]]></description><link>https://forum.rexygen.com/post/310</link><guid isPermaLink="true">https://forum.rexygen.com/post/310</guid><dc:creator><![CDATA[sadilekivan]]></dc:creator><pubDate>Sun, 01 Mar 2020 10:54:57 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Sun, 01 Mar 2020 10:36:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/10">@jaroslav_sobota</a></p>
<p dir="auto">I tried to use the JS custom example you sent, but after a while got back to just the HMI designer when I found out about the relation operators for the expression type connection. I don't know how I missed that before. Anyways thanks.</p>
<p dir="auto">I do have a follow-up question, all the components are offset in the HMI to the center by a few pixels until the page is refreshed or any element used. This doesn't happen on my previous HMI projects and only occurs if the element has a set hide_by data point. Any way to automatically refresh the HMI right after it starts?</p>
<p dir="auto"><a href="/assets/uploads/files/1583058972440-rexhmibug.zip">0_1583058966098_rexhmibug.zip</a></p>
<p dir="auto">Although it is just a tiny detail, if the solutions complicated I'd ignore this inconvenience.</p>
]]></description><link>https://forum.rexygen.com/post/309</link><guid isPermaLink="true">https://forum.rexygen.com/post/309</guid><dc:creator><![CDATA[sadilekivan]]></dc:creator><pubDate>Sun, 01 Mar 2020 10:36:17 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Fri, 28 Feb 2020 17:36:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello Ivan,<br />
do I understand it correctly that you are trying to hide multiple elements in HMI using a single variable in your algorithm?</p>
<p dir="auto">Why not just define a single alias and use it as the hide_by Data point in all the elements which you intend to hide?</p>
<p dir="auto"><img src="/assets/uploads/files/1582911302023-rexygen-hmi-hide-multiple.png" alt="0_1582911301217_rexygen-hmi-hide-multiple.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1582911309401-rexygen-hmi-hide-element.png" alt="0_1582911308841_rexygen-hmi-hide-element.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Or am I missing something?</p>
<p dir="auto">Jaroslav</p>
]]></description><link>https://forum.rexygen.com/post/308</link><guid isPermaLink="true">https://forum.rexygen.com/post/308</guid><dc:creator><![CDATA[jaroslav_sobota]]></dc:creator><pubDate>Fri, 28 Feb 2020 17:36:32 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Thu, 27 Feb 2020 17:32:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/10">@jaroslav_sobota</a></p>
<p dir="auto">I am trying to keep All of the HMI elements and its settings in the HMI designer and continue on using it, I was just wondering if it's possible to add a side .js control the hide() feature of those elements. Sort of combining these two.</p>
<p dir="auto">For now I'm using elements in a hidden layer and their aliases to manage hide_by parameters of all other visible elements.</p>
<p dir="auto">My goal is to play around in JS to hopefully get aliases of all the elements in HMI, based on some prefix or suffix hide and unhide them. Ideally, then I could just add an element in the HMI designer and change its name to something like 3_$T and then it would automatically be hidden or not hidden depending on a value in the REXCORE.</p>
]]></description><link>https://forum.rexygen.com/post/307</link><guid isPermaLink="true">https://forum.rexygen.com/post/307</guid><dc:creator><![CDATA[sadilekivan]]></dc:creator><pubDate>Thu, 27 Feb 2020 17:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to Any easy way to add a custom .js file to manage components in the HMI on Thu, 27 Feb 2020 11:37:39 GMT]]></title><description><![CDATA[<p dir="auto">Hello Ivan,<br />
do I understand it correctly you are trying to build your very own HMI webpage? Or is your question indeed related to HMI Designer (based on the forum category)? Let me know.</p>
<p dir="auto">As for Chromium in kiosk mode, you have to use command line parameters when launching it, e.g.</p>
<pre><code>chromium-browser --disable-translate --noerrdialogs --disable-infobars --no-first-run --kiosk --user-data-dir=/tmp/hmi-chromium --start-fullscreen --disable-component-update --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' "http://127.0.0.1:8008/hmi/index.html"
</code></pre>
<p dir="auto">Best regards<br />
Jaroslav</p>
]]></description><link>https://forum.rexygen.com/post/306</link><guid isPermaLink="true">https://forum.rexygen.com/post/306</guid><dc:creator><![CDATA[jaroslav_sobota]]></dc:creator><pubDate>Thu, 27 Feb 2020 11:37:39 GMT</pubDate></item></channel></rss>