Hey,
I have a problem with a form, i'm using code to add a row in a repeating table. But i want to set the row that's been added to a value of a field in the form.
Here you see the code to add the row:
string myNamespace = NamespaceManager.LookupNamespace("my");
using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode(
"/my:ProductSystemIdentification/my:group5", NamespaceManager).AppendChild())
{
writer.WriteStartElement("group6", myNamespace);
writer.WriteElementString("field1", myNamespace, "comment1");
writer.WriteElementString("field2", myNamespace, "comment2");
writer.WriteElementString("field3", myNamespace, "comment");
writer.WriteEndElement();
writer.Close();
Now instead of comment 1- 2 -3 I want a value from the form, how can i set a value from the form to a variable ?
The values are located here: "my:ProductSystemIdentification/my:ProductAdmin/my:Version" and so on..
It can't be that hard i think ? But i don't find the right solution, I tried some different options from the form but I always get errors.
Can someone please help ? Thanks