Workflow Soluiton

 View Only
Expand all | Collapse all

How to display a grid of data from a Custom Data Class in WF 7.1 SP2?

  • 1.  How to display a grid of data from a Custom Data Class in WF 7.1 SP2?

    Posted Apr 18, 2013 12:10 PM

    Dear All,

    I have created a WebForm Project to allow me to edit the data in a Custom Data Class and I have been following various WorkflowSwat videos to accomplish this:

    2013-04-18_16h47_03.png

    It seems to be easy to add data straight from a standard data class, but when it gets to Custom data classes, it is a bit of a pain.

    the "Get Resource Component" is configured to just get the contents of the one data class from the Resource and trying to reference the actual data in the one data class that I am bringing back is not funny.

    Looking at the "Copy the Data class line into the Row CBT" configuration, I see:

    2013-04-18_17h02_30.png

    I had tried to use the ClassData[first]->DataRows[first]->DataElements[first]->FieldName, but on further examination, this returned the NAME of the Data Element and NOT the data!

    I need to put the data into the GridCBT, but I cannot find WHERE I can reference the data in the data structure (even though I seem to be able to find it in the Debugger.

    What am I doing wrong? How can I get the data out of this data class and into my grid?

    With the trouble that I have been having, I am concerned that I might need to create a manual Table Generator, but since this is an SMP Data class and replication is involved, this might be an issue.

    Kindest regards,

    QuietLeni



  • 2.  RE: How to display a grid of data from a Custom Data Class in WF 7.1 SP2?

    Posted Apr 19, 2013 12:59 PM

    I worked out the answer to this - the component does not generate the links to the Values, only the FieldNames, so I have put in an idea in:

    https://www-secure.symantec.com/connect/ideas/can-we-please-change-workflow-webservice-generator-include-direct-access-data-well-fieldname-d

    I read the data by parsing the DataElements themselves, which is much harder to do!

    Hope that this helps someone else.