11-07-2013 09:15 AM
how can I add the same channel from Group1 into Group2 by coding?
11-07-2013 09:35 AM
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,
11-07-2013 09:43 AM
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.
11-07-2013 10:02 AM
Can you clarified more, i did not understand well the problem.
Regards,
11-07-2013 12:02 PM
I got the Solution.
Thanks