Post

2 followers Follow
0
Avatar

Unable to retrieve manager id in string or Char format.

DataTable dt = new DataTable();

            dt.Columns.Add("Name",typeof(string));

            dt.Columns.Add("Manager", typeof(string));

            DataRow dr;

          foreach (GenericEntity ge in qr.Entities)

            {

                dr = dt.NewRow();

                GenericEntity Manager = (GenericEntity)ge.Values[6];

                dr[0] = FieldValueToString(ge.Values[0]);

                dr[1] = FieldValueToString(Manager.Values[0]);

                dt.Rows.Add(dr);

            }

            dataGridView1.DataSource = dt;

            #endregion

            x.Logout();

Error 2 Cannot convert type 'Clarizen_ex.ClarizenSvc.FieldValue' to 'Clarizen_ex.ClarizenSvc.GenericEntity' C:\Documents and Settings\santhoshr\Desktop\cllllaaa\Clarizen ex\GetWorkItems.cs 75 41 Clarizen ex

Import from old forum Answered

Please sign in to leave a comment.

3 comments

0
Avatar

You need to take the Value from the FieldValue:

GenericEntity Manager = (GenericEntity)ge.Values[6].Value;

Clarizen Team 0 votes
Comment actions Permalink
0
Avatar

Sorry for asking a dumb question, what does this relate to?

Where can one work with this level of information?

Thank you,

Rob

Import from old forum 0 votes
Comment actions Permalink