At the moment I'm finding that content.getproperty on instances of datatypes using ntext return an empty string while I can actually see the data in the XML, e.g. <data alias="doctypeXXX"><![CDATA[11173,11324,11168,11181,11178]]></data> returns nothing while a datatype set to nvarchar looks like this: <data alias="doctypeXXX">11173,11324,11168,11181,11178</data> and returns 11173,11324,11168,11181,11178.
Do I need to do something differently in the getProperty call to access ntext types?
When the render control or its settings are changed from something using ntext to something using nvarchar, the values are not copied, merely over-written on next publish. A db query on affected cmspropertydata rows that updates the nvarchar value with the ntext value fixes this.
ntext vs. nvarchar
What are the differences with these two?
At the moment I'm finding that content.getproperty on instances of datatypes using ntext return an empty string while I can actually see the data in the XML, e.g. <data alias="doctypeXXX"><![CDATA[11173,11324,11168,11181,11178]]></data> returns nothing while a datatype set to nvarchar looks like this: <data alias="doctypeXXX">11173,11324,11168,11181,11178</data> and returns 11173,11324,11168,11181,11178.
Do I need to do something differently in the getProperty call to access ntext types?
Have you published the page again after making these changes?
I found the problem:
When the render control or its settings are changed from something using ntext to something using nvarchar, the values are not copied, merely over-written on next publish. A db query on affected cmspropertydata rows that updates the nvarchar value with the ntext value fixes this.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.