I am trying to modify the values of drop-down lists in an InfoPath form using the following code:
strTemp1 = K2.ProcessInstance.XmlFields("K2InfoPathSchema").Value
SourceCode.K2Utilities.XMLFieldMod.SetXMLValue(strTemp1,"my:myfields/my:IfResearchPM/my:PMApprove","Yes")
where "my:PMApprove" is the data source for a drop-down list
I do not get any errors during compilation but the value is not being set.
Any ideas?
Page 1 / 1
Try the following:
K2.ProcessInstance.XmlFields("K2InfoPathSchema").Value = _
SourceCode.K2Utilities.XMLFieldMod.SetXMLValue(strTemp1, "my:myfields/my:IfResearchPM/my:PMApprove", "Yes")
This is exactly the answer I need for a problem I am experiencing. Thank you for the solution.
Thanks for the solution.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.