Jump to content

Writing a substring from a characteristic name to a table column


---
 Share

Recommended Posts

I want to add the first few characters of each characteristic name (up to the first space character) to a column of the chr table file.
I know that generateTableColumn() iterates through all the characteristics and calls a user-defined function for each of them.
But how can I access the name of the currently processed characteristic from within that function?

From the post settings of a characteristic I can get the substring I want with the following command:

strElement(1," ",getActual().identifier)

But of course this doesn't work anywhere else as getActual().identifier then no longer returns a valid name.

In the end my code needs to run from an external PCM file, so I need a different way to get that characteristic name. Any ideas?

Edited
Link to comment
Share on other sites

Assign it a VAR ? 

e.g.  CHR1 = strElement(1," ",getActual().identifier) , CHR2 = strElement(1," ",getActual().identifier)

 Then call CHR1 CHR2 at end as needed.

 Also if you have Calypso 2024 or later perhaps excel functions can help with generateTableColumn()

I no longer have PCM license or I would dig deeper.

 

Link to comment
Share on other sites

 Share

×
×
  • Create New...