DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

add the same channel

how can I add the same channel from Group1 into Group2 by coding?

0 Kudos
Message 1 of 5
(5,804 Views)

Sergio,

 

 

'----------------------------------------------------------------------

' Define the Channel to copy

Dim

oChnToCopy

Set

oChnToCopy = Data.GetChannel("Group1/CHANELNAME")

' Define the target Group

Dim

TargetGroup : Set TargetGroup = Data.Root.ChannelGroups("Group2")

' Add he channel to the group containing the properties

TargetGroup.Channels.AddChannel(oChnToCopy)

 

 

'--------------------------------------------------------------------------------------------------

 

You just need to defined the Channel Name to copy and the target group name.

 

Regards,

 

 

 

0 Kudos
Message 2 of 5
(5,800 Views)

thanks for the quick response Naoa,

 

This is what I do:

 

I select the channels Ex.(channel1,channel2) from the listbox and click a go button and the channels display into group1 on the dataportal, but when I selected channel2 and channel3; the only channel the it appears into group2 is channel3, I need channel2 in group2 as well.

0 Kudos
Message 3 of 5
(5,798 Views)

Can you clarified more, i did not understand well the problem.

 

Regards,

 

0 Kudos
Message 4 of 5
(5,795 Views)

I got the Solution.

 

Thanks

0 Kudos
Message 5 of 5
(5,791 Views)