I have a schema that looks like:
<Check>
<Guid>1</Guid>
<PhoneNumber>43434</PhoneNumber>
<PersonalID>1</PersonalID>
<IspContract>1</IspContract>
<DelegationPaper>1</DelegationPaper>
<IzaaTijariyya>1</IzaaTijariyya>
</Check>
I need to get the Guid field value from the k2rom. I wrote:
Strx = wlti.ProcessInstance.XmlFields("Guid ").Value
Where the strx is the string where I want to place the value
And the wlti is the worklistitem
But it doesn t work.
Please need help
Page 1 / 1
Hi melhem,
Please have a look at: http://forum.k2workflow.com/viewtopic.php?t=872
This should point you in the right direction.
A simple Search on the forum for 'XMLField' yielded 32 results.
Looks like we've spoiled you too much with quick responses...
Please search for a solution before posting a question.
Regards,
Ockert
Please have a look at: http://forum.k2workflow.com/viewtopic.php?t=872
This should point you in the right direction.
A simple Search on the forum for 'XMLField' yielded 32 results.
Looks like we've spoiled you too much with quick responses...
Please search for a solution before posting a question.
Regards,
Ockert
You are right I've searched the forum and found more than 32 results. But most of them have mentioned the solution without showing the schema. And causes there are so many posts on that problem I didn t know what is the solution. I ve tried:
strcon = prinst.XmlFields.Item("FormData").Value
and
strcon = SourceCode.K2Utilities.XMLFieldMod.SetXMLValue("DocumentVal", "Check/PersonalID", "PersonalID") ' (sFormData, "WorkItemData/Approver", "new value")
and
prinst.XmlFields.Item("FormData").Value = sFormData
and
wlti.ProcessInstance.XmlFields.Item("Guid").Value = "as"
and
SourceCode.K2Utilities.XMLFieldMod.GetXMLValue(wlti.ProcessInstance.XmlFields("DocumentVal").Value, "Check")
And
wlti.ProcessInstance.XmlFields("IspContract").Value = 1
but nothing works
Any Way I would like to thank you for the quick responses.
Thanks
strcon = prinst.XmlFields.Item("FormData").Value
and
strcon = SourceCode.K2Utilities.XMLFieldMod.SetXMLValue("DocumentVal", "Check/PersonalID", "PersonalID") ' (sFormData, "WorkItemData/Approver", "new value")
and
prinst.XmlFields.Item("FormData").Value = sFormData
and
wlti.ProcessInstance.XmlFields.Item("Guid").Value = "as"
and
SourceCode.K2Utilities.XMLFieldMod.GetXMLValue(wlti.ProcessInstance.XmlFields("DocumentVal").Value, "Check")
And
wlti.ProcessInstance.XmlFields("IspContract").Value = 1
but nothing works
Any Way I would like to thank you for the quick responses.
Thanks
Personally I found the easiest way to work with XML fields and XPaths is to use the Data Manipulation event. This will generate the correct XPath and parameters for the methods to be used.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.