Easy way to change dpType of datapoint?

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
n.kuehl
Posts:28
Joined: Mon Mar 18, 2019 9:35 am

Easy way to change dpType of datapoint?

Post by n.kuehl »

Hello,

in our system I would like to "archive" whole datapoints. There are currently 100k+ datapoints (increasing) and each has a "done-bit". It takes some time to check them all and display it to a user, so i want to have two datapoint types: one for "not done" and another for "done".
(For fast filtering with
dpNames("*","myType_done")
etc... )
Is there a easy way to change the datapoint type of a datapoint? Or do i have to create it elsewhere and delete the original?

Thanks for your help!

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Easy way to change dpType of datapoint?

Post by leoknipp »

If you want to move a datapoint from one type to another one you have to
-- Delete the datapoint
-- Create the datapoint again for the other DP type

Please take into account that possibly historical data is lost if you do the steps described above, e.g. if the new DP ID does not match the old one and if the element IDs do not match.

Best Regards
Leopold Knipp
Senior Support Specialist

2 posts • Page 1 of 1