‎06-16-2015 12:35 PM
Hello,
For reasons I do not understand "Insert Array" does not insert the table value when the first action the user does is to use the application menu to insert a row into a empty table. If the user does not insert a row into a empty table "Insert array" works, I can insert data into the table value.
So what does the right click application meu actually insert into the empty table control that stops "Insert array from working?
‎06-16-2015 02:31 PM
Hello,
Stopped using "Insert Array" and changed over to "Build Array" to add data (rows) to a table. So far everything is fine.
‎06-16-2015 03:48 PM
‎06-17-2015 07:25 AM
Hello,
I have a code snippet where I found the issue. I use a property node to read the value of the table, I was using "Insert Array" to add another array (a row) to the data and put it back in the table control with a property node.
In order for me to get the code to work reliably had to change the "Insert Array" to a "Build Array" (which is in the code snippet) . The issues with using "Insert array" would happen it the user used the "Insert Row" option from the "right click menu" of the Table control. When this happened "Insert Array" could no longer add another row to the end of the data. So when I changed to "Build Array", the code always worked.
Here is a portion of the text from "Insert Array"
When you wire an array to this function, the function resizes automatically to display index inputs for each dimension in the array. If you do not wire any index inputs, the function appends the new element or subarray to the end of the n-dim array. If the index input is larger than the array size, the function does not insert anything into the input array.
The underlined text above is how I was using Insert array and expected it to always work that way
‎06-17-2015 09:01 AM
‎06-17-2015 09:29 AM
Hello,
Due to the size of the code and the nature of its use I cannot put all of the code in this forum. I was probing the output from the property node and never saw a blank row. However ever since I changed from "Insert Array" to "Build Array" array the code works all of the time. So I guess "by observation" I will use "build array" in place of "Insert Array" whenever I need to add to the end of a Array.
‎06-17-2015 09:57 AM