Hi David,
Thank you for looking into this. Here is the repeat pattern:
Scenario 1: change the render-modes
a- First create a screen [1] that is a top level screen (all screens above are server-static having nothing but <subscreents ...>
b- Create a js file [2]
c- Create a vuet template [3]
d- Observe how it renders normally showing you "The message is: Hello There"
e- Now keep everything the same, but change FROM render-modes="js,vuet" TO render-modes="all"
f- Observe how it no longer renders and shows "The message is:".
Scenario 2: include as a sub screen
- follow the above steps a to c
- include this screen in another screen [4]
- Observe how again it does not work and shows "The message is:". In other words, you cannot include a "vue,js" screen inside an "all" screen (I think ?)
That is what I mean by being unable to mix modes. I'm not sure if this makes sense or should I elaborate some more?
[1]
<?xml version="1.0" encoding="UTF-8"?>
<screen xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="
http://moqui.org/xsd/xml-screen-2.1.xsd"
render-modes="js,vuet">
<widgets>
<render-mode>
<text type="js" location="component://pysurance/screen/dynamic/Items.js"/>
<text type="vuet" location="component://pysurance/screen/dynamic/Items.vuet"/>
</render-mode>
</widgets>
</screen>
[2]
define("Items", {
data: function () {
return { msg: "Hello There"}
},
});
[3]
<p class="h2">The message is: {{ msg }}</p>
[4]
--
Taher Alkhateeb