Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

insertInstance fails on second row

$
0
0

InsertInstance function doesn't seem to work on Row1[2] and beyond but it works for Row1[0] and Row1[1].

 

Basically insertInstance generates errors whenever there's more than 1 row instances premade inside Designer.

 

Error: Index value is out of bounds

 

Picture below is of object hierarchy.

 

Each "+" button calls the addRow function inside the script object

ButtonFunction.addRow(this);

Script Object

function addRow(object1)

    {

        var currentObj = object1;   

        if (currentObj.parent.parent.instanceManager.count < 100)

        {

                var rowNum = currentObj.parent.parent.index;

                currentObj.parent.parent.instanceManager.insertInstance(rowNum);

        }

    }

 

How can I fix this?


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>