I have a datasource created with an unique id x
After my operations , i want it to be destroyed or nullified , and then recreate it with the same ID again.
what is the best way to do it ?
My current implementation:
create a datasource with ID x
do operations
destroy datasource()
try to re create DataSoruce with ID x : this give an error saying
Cannot change configuration property 'ID' to "X"after the component has been created.
After my operations , i want it to be destroyed or nullified , and then recreate it with the same ID again.
what is the best way to do it ?
My current implementation:
create a datasource with ID x
do operations
destroy datasource()
try to re create DataSoruce with ID x : this give an error saying
Cannot change configuration property 'ID' to "X"after the component has been created.
Comment