K2DataGrid doesn´t display XML field at run-time

Last post 10-10-2007, 8:48 by blake. 6 replies.
Sort Posts: Previous Next
  •  01-12-2007, 4:04 PM 13440 in reply to 13439

    K2DataGrid doesn´t display XML field at run-time

    I'm using Version 3.6090.1.0.

    I'm Binding the K2Datagrid with the XML Field through the properties DataField and DataXPath, and it works fine, the K2DataGrid assumes as columns the elements of the XML.

    Strange Behaviour:
    - When the Xml Field is still empty the K2Datagrid displays an empty record.
    - When the Xml Field has been populated the K2Datagrid disappears.

    I can see in the xml Data In workspace - Process Instance Data that the XML was populated.

    Is this a known bug, or am i missing something?
  •  03-02-2007, 3:02 PM 13439

    K2DataGrid doesn´t display XML field at run-time

    Rui,

    I have the same type of problem. I have two forms.
    One the first form the k2datagrid is bound to an XML field. The user fills out that form and then my process leads to another form with the exact same k2datagrid on it. However, now when second form is loaded the grid is not displayed. It is as if the control does not exist on the page.
    I have verified all of my xml bindings and still can't figure out it.
    I also verified that the XML data is getting saved by viewing my process instance data - it is there - the grid just isn't working right.

    The strange thing is that it WAS working for a while and then stopped.

    I have opened a support ticket but we have yet to resolve the issue.
    I will update this thread with any resolution/workaround that support gives me.
  •  03-09-2007, 11:00 13441 in reply to 13440

    K2DataGrid doesn´t display XML field at run-time

    thanks for the information. My workaround was to transform the xml into a dataset and binding it to a regular datagrid.
  •  03-09-2007, 1:31 PM 13442 in reply to 13441

    K2DataGrid doesn´t display XML field at run-time

    After looking at the issue with support I accidently discovered that a textbox on my form that is linked to another XML field is what was causing the problem. This text field was bound to an XML field whose datatype was set to date/time. After I changed the datatype for my textbox not to be a date - my k2datagrid displayed as it should.


    You want to see if you have any XML fields with a date datatype.
    I hope this helps.
  •  09-20-2007, 1:39 PM 18777 in reply to 13441

    Re: K2DataGrid doesn´t display XML field at run-time

    Rui,

    I am back to square one on this issue.  After resolving the issue with the date datatype in my XML and getting the datagrid to appear (for a while) my k2datagrid has now disappeared again.

    Can you go through how you transformed the XML in your K2 process into a dataset to use with your .net datagrid?

     Thanks,

     SDixon

  •  09-20-2007, 9:23 PM 18785 in reply to 18777

    Re: K2DataGrid doesn´t display XML field at run-time

    I have attached an example of how I previously transformed a K2 XML field into a regular .NET datagrid.

    I hope this helps.


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  10-10-2007, 8:48 19117 in reply to 18785

    Re: K2DataGrid doesn´t display XML field at run-time

    This problem can occur when the K2DataGrid is bound to an xml field in the process that includes elements that are of a data type other than string.  It is possible to workaround the problem by changing the non-string xml elements in the process xml field to string data types.


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.

View as RSS news feed in XML