When taking the Multiple Textstring data from a Document (e.g. from the database, not the XML cache), each line is delimited by a newline.
You could use string.Split to loop through each line?
string PropertyData = uQuery.GetDocument(childDoc.Id).GetProperty<string>("checkboxOptions");
foreach (var line in PropertyData.Split('\n'))
{
// use 'line' to build up your XML
}
ucomponents: Multiple textstring
Hi,
Can anyone help me loop items from ucomponents multiple textstring in code-behind?
I can get values like this:
string PropertyData = uQuery.GetDocument(childDoc.Id).GetProperty<string>("checkboxOptions");
I am building a xml output used in a /base call.
I want each item in PropertyData added as a node in <page> like this
<node>Anticipate environmental litigation</node>
<node>License to operate</node>
<node>Follow legislation</node>
<node>Other law requirement</node>
<node>Resource Shortage</node
Hi Peter,
When taking the Multiple Textstring data from a Document (e.g. from the database, not the XML cache), each line is delimited by a newline.
You could use string.Split to loop through each line?
Cheers, Lee.
Thanks Lee, it worked.
is working on a reply...