quote:
You don't alter any "control" in InfoPath -- only DOM nodes.
Yes, that's right. But a control is in a DOM node, isn't it? This node should be altered. For textboxes this is not a problem, and I thought it might be as easy in the case of dropdown lists - but it isn't.
For textboxes one simply writes:
XPathNavigator root = this.MainDataSource.CreateNavigator();
XPathNavigator name = root.SelectSingleNode("//my:name", this.NamespaceManager);
name.SetValue("XXXXXXXXXXXXXXX");
and I thought there's a similiar way to alter DDLs?
quote:
Set up your drop-down list to populate based on your MOSS list. Then when list is updated, your drop-down choices will automatically be updated.
This is not possible because I don't want the content of the list in my DDL. I just want to have a DDL with the
names of the columns of a MOSS list.
quote:
If this is not possible, create a secondary data source and point your drop-down list at that. Then use code to add or remove nodes from that data source. The repeating list of nodes will be the options your drop-down list displays.
I can't create a data source that points to nothing. IP wants always a distinct target. Should I choose something arbitrary and modify the .xsd file later? Are resource files in this context a possible way?