Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3196

Visual Basic (.vbsd) Data Plugin. Is it possible to change Group Name?

$
0
0

I am working on a custom Data Plugin, that should import a file by using another DataPlugin, then make some adjustments (more specifically, add some meta-tag, change group names).

 

I was able to add the meta-tags I needed, but apparently I cannot modify group names.

 

Some notes on the plugin configuration (see also the attached picture)

  • Plugin compatible with USI 20.0
  • File reader: Filename only

Below you can find the basic structure of my script. I anticipate that I know some functionalities are not available in .vbsd files, but I was hoping it would be possible to load a file by using another plugin, and then perform operations such as group name updates.

I also tried to replace Root with Data.Root, but it doesn't work either.

 

Do you think there is a way to have those names updated?

 


 

Sub ReadStore(MyFile)

  

  ' Import File

  Call Root.ImportStore(MyFile, "MDF3") ' It works

 

  ' Add Meta-tags

  Call Root.Properties.Add("TagName", "TagValue") ' It works

 

  ' Rename Group

  Root.ChannelGroups(1).Name = Root.ChannelGroups(1).Properties("description").Value ' Not working

 

End Sub

 


 

Mdf_Metadata.png

 


Viewing all articles
Browse latest Browse all 3196

Trending Articles