RobotStudio event

PC SDK UIListView problems


Hello,

I am trying to get a UIListView to display through the PC SDK. I have noticed a few problems with the event args that come through when the ListView is displayed. I am using RW5.14.02.

1. The ListItems array removes all spaces in each item. Here is my array:
CONST listitem list1{5}:= [["","Item 1"],["","Item 2"],["","Item 3"],["","Item 4"],["","Item 5"]]];
It comes through as an array of 5 items but the items are without spaces like so:
{Item1, Item2, Item3, Item4, Item5}


2. The BtnArray removes all spaces as well. Here is my array:
CONST string my_btnArray{5}:=["btn 1","btn 2","btn 3","btn 4","btn 5"];

It comes through as an arry of 5 items, but the strings have no spaces like so:

{btn1, btn2, btn3, btn4, btn5}
3. If I have a list of 12 items or more, the eventargs come through with an ABB.Robotics.GenericControllerException. See image below.
image

Here is the list I sent in the UIListView:
CONST listitem list2{15}:= [["","Item 1"],["","Item 2"],["","Item 3"],["","Item 4"],["","Item 5"],["","Item 6"],["","Item 7"],["","Item 8"],["","Item 9"],["","Item 10"],["","Item 11"],["","Item 12"],["","Item 13"],["","Item 14"],["","Item 15"]];
None of these errors occur when viewing the UIListView on the flexpendant.

Thank you for the help.



sehe2012-02-03 17:17:14

Comments

  • DanS
    DanS ✭✭
    We had this same problem occur today with a listbox of 17 items.  Wonder is ABB has any plans to fix this?