Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Channel Surfer

Type mismatch occurred when setting the "rowDecorationComponentName" field of a "ZoomRowList" node

#Roku Developer Program


Running zoomRowListDefaultLayoutTest sample project given in Roku documentation, just add extra rowDecorationComponentName parameter.

base xml file

<component name="ZoomRowListTestScene" extends="Scene">

<script type="text/brightscript"
uri="pkg:/components/ZoomRowListTestScene.brs" />

<ZoomRowList id="theZoomRowList"
rowDecorationComponentName="DecorSimpleGridItem" rowZoomHeight="450"
rowHeight="250" rowItemZoomHeight="300" rowItemHeight="250"
spacingAfterRow="50" rowItemZoomYOffset="200" rowItemYOffset="20"/>

<Label id="scrollingStatusLabel" text="scrollingStatus: false"
translation="[100,20]" />
<Label id="rowItemFocusedLabel" text="rowItemFocused: 0, 0"
translation="[500,20]" />
<Label id="rowFocusedLabel" text="rowFocused: 0"
translation="[900, 20]" />


DecorSimpleGridItem component xml

<?xml version="1.0" encoding="utf-8" ?>
<component name="DecorSimpleGridItem" extends="Group">

<field id="rowContent" type="node" onChange="rowContentChanged"/>

<script type="text/brightscript" uri="pkg:/components/DecorSimpleGridItem.brs" />

<Label id="itemtitle" width="500" height="100" translation="[0,0]"/>


itemComponentName working fine but rowDecorationComponentName makes pblm.(normally type mismatch error occur when we put wrong type like string instead of float width="abc")
if anyone got the solution pls post a sample code.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.