ListManagerAddItem method

Discuss issues and ideas you have to configuring displays with PowerVision
cconner_aie
Posts: 93
Joined: Thu Jun 11, 2015 10:12 am

ListManagerAddItem method

Post by cconner_aie » Thu Mar 30, 2017 2:42 pm

Is there an example on how to use the ListManagerAddItem method? Specifically how to assign values to CustomListData.
Coleby Conner
Controls Engineer, Anderson Industrial Engines
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: ListManagerAddItem method

Post by boyce » Thu Mar 30, 2017 2:59 pm

Yes, I think this is what you are looking for:

viewtopic.php?f=7&t=1033&p=2743&hilit=lists#p2743
Boyce Schrack
Enovation Controls
cconner_aie
Posts: 93
Joined: Thu Jun 11, 2015 10:12 am

Re: ListManagerAddItem method

Post by cconner_aie » Thu Mar 30, 2017 3:04 pm

That uses an activity to add items rather than scripting, I should have specified.

Regardless, I got it to compile using the following:

Code: Select all

CustomListData data;
	
data.WriteInt32(CustomListColumn.Column_1, 1);
data.WriteString(CustomListColumn.Column_2, "test");
ListManagerAddItem(ListDataType.TesetList, data);
Thanks!
Coleby Conner
Controls Engineer, Anderson Industrial Engines
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: ListManagerAddItem method

Post by boyce » Thu Mar 30, 2017 3:11 pm

I wasn't talking about the List and Graph Demo, the link has "DEMO - CustomListData in Script" configuration. The code is similar to yours and it has a little more.
Boyce Schrack
Enovation Controls