04-24-2017 07:35 PM
Do you have any documents on using the Table API? Specifically, I'm trying to create a custom column for a ring control. I'm getting stuck understanding how to use the API.
thanks in advance!
04-24-2017 07:49 PM
We are working on the documentation for the table. Are there any specific questions that you have?
In this case you will need to create a new column type for your new column that inherits from Column.lvclass ( C:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\NI\DCAF\Tag Editor Core\Table API\Column\Column.lvclass. )
And then you can add it to the Define Columns VI using the Define Custom Column.vi (This one is not on the pallet, we plan to add it once we have documentation to create Custom Columns).
C:\Program Files (x86)\National Instruments\LabVIEW 2015\vi.lib\NI\DCAF\Tag Editor Core\Table API\Column\Define Custom Column.vi
In this case the behavior of the Ring should be like the ENUM one you could probably use this one as a base. Still some VIs will need to be updated to work with the ring rather with an ENUM.
Also, you will need to pass the reference to the ring into the define columns VI.
I also added an Issue to GitHub to get this added to the table in the future.
https://github.com/LabVIEW-DCAF/TagEditorCore/issues/299
Best Regards
04-25-2017 10:43 AM
Thank you Benji!
So far, most of that is clear to me.
I'm stuck at getting the ring ref in. I see that there is an Enum Ref slot in the Column Descriptor CTL. I was expecting something like a generic control ref. What is the expected method for getting a custom control ref into the column definition for the custom column?
It's cool to get RIng into the core of the api, however, I'm hoping to understand how to make a generic custom column so that I can make other custom columns in the future. 🙂
Thanks again!
04-25-2017 10:45 AM
Do you maybe have an example of a custom column?
05-10-2017 06:02 PM
I don't have an example at the moment but probably can get one after NI Week.
Best Regards