CustomListData members/functions

Discuss issues and ideas you have to configuring displays with PowerVision
ADE
Posts: 18
Joined: Mon Oct 06, 2014 7:00 pm

CustomListData members/functions

Post by ADE » Tue Nov 18, 2014 2:22 am

Hey,

I am looking at using the Lists feature to hold some information however I cant seem to work out how to use these lists effectively in scripting. I think the main issue that I am having is that I dont know what functions/members the list objects have. For example i know that the following code will allow me to write values to my list.

Code: Select all

CustomListData data;
	
data.WriteInt(CustomListColumn.PollingList_Target, target);
data.WriteDouble(CustomListColumn.PollingList_NewValue, newValue);

error = ListManagerAddItem(ListDataType.PollingList, data);
However I dont know how to read the individual values in the list once I have written to them. For example if I wanted to read the first column and the first entry in that column how would I do that? I was thinking something like this? (I know this doesnt work though).

Code: Select all

int target;
CustomListData data;

ListManagerGetItem(ListDataType.PollingList, 0, data);
data.ReadInt(CustomListColumn.PollingList_Target, target);
If someone could give me some advice on how to access this value, or some examples that would be awesome. Or even better if someone could give me a list of all of the functions available for CustomListData. eg data.***

Thanks

ADE
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: CustomListData members/functions

Post by stalley » Thu Dec 11, 2014 10:19 am

Hello ADE,

I apologize, somehow I missed seeing your post. Have you found the answers to your questions?

I would like to point you to this post about lists viewtopic.php?f=7&t=1033. It has some places where you can start to get information, including a sample config.

Also, in PowerVision 2.7, patch 4, the Function Reference tab has more information than previous versions.

Please let me know if you need further assistance.
Sara Talley
Software Engineer
Enovation Controls
ADE
Posts: 18
Joined: Mon Oct 06, 2014 7:00 pm

Re: CustomListData members/functions

Post by ADE » Sun Dec 14, 2014 10:40 pm

Hey Sara,

No issues thanks for the reply. I did find that thread, and it had the information I needed. :)