|
|
Read custom fields using PSI
Hi,
This is urgent so I hope someone can help. Thanks.
I tried to display a dropdown list of a custom field's values, but kept
having
zero record return. Checked the database and saw my custom field in the
custom field table and its values in the lookup table. Not sure what I was
missing in the code but no record was returned. Below is my code in C#:
private CustomFieldWS.CustomFieldDataSet readCustomFieldDS =
new CustomFieldWS.CustomFieldDataSet();
private LookupTableWS.LookupTableDataSet lookupDS =
new LookupTableWS.LookupTableDataSet();
private void ReadCustomFields()
{
strCustField = "Classification";
DataView dataview = new DataView(readCustomFieldDS.CustomFields);
dataview.RowFilter =
readCustomFieldDS.CustomFields.MD_PROP_NAMEColumn.ColumnName +
" = '" + strCustField + "'";
if (dataview.Count == 0) return;
CustomFieldWS.CustomFieldDataSet.CustomFieldsRow rowCF =
(CustomFieldWS.CustomFieldDataSet.CustomFieldsRow)dataview[0].Row;
foreach (LookupTableWS.LookupTableDataSet.LookupTableTreesRow
row in lookupDS.LookupTableTrees.Rows)
{
if (rowCF.MD_LOOKUP_TABLE_UID == row.LT_UID)
{
ddlTitleClass.Items.Add(row.LT_VALUE_TEXT);
}
}
}
|
|
0
|
|
|
|
Reply
|
Utf
|
3/17/2010 12:00:01 AM |
|
ctd --
I would recommend you repost this question in the
microsoft.public.project.developer newsgroup and allow our developer friends
to assist you. Hope this helps.
--
Dale A. Howard [MVP]
VP of Educational Services
msProjectExperts
http://www.msprojectexperts.com
http://www.projectserverexperts.com
"We write the books on Project Server"
"ctd" <ctd@discussions.microsoft.com> wrote in message
news:56413B22-B913-4D2E-9793-3A33767E3F4C@microsoft.com...
> Hi,
> This is urgent so I hope someone can help. Thanks.
>
> I tried to display a dropdown list of a custom field's values, but kept
> having
> zero record return. Checked the database and saw my custom field in the
> custom field table and its values in the lookup table. Not sure what I
> was
> missing in the code but no record was returned. Below is my code in C#:
>
> private CustomFieldWS.CustomFieldDataSet readCustomFieldDS =
> new CustomFieldWS.CustomFieldDataSet();
> private LookupTableWS.LookupTableDataSet lookupDS =
> new LookupTableWS.LookupTableDataSet();
>
> private void ReadCustomFields()
> {
> strCustField = "Classification";
>
> DataView dataview = new
> DataView(readCustomFieldDS.CustomFields);
> dataview.RowFilter =
> readCustomFieldDS.CustomFields.MD_PROP_NAMEColumn.ColumnName +
> " = '" + strCustField + "'";
> if (dataview.Count == 0) return;
>
> CustomFieldWS.CustomFieldDataSet.CustomFieldsRow rowCF =
>
> (CustomFieldWS.CustomFieldDataSet.CustomFieldsRow)dataview[0].Row;
>
> foreach (LookupTableWS.LookupTableDataSet.LookupTableTreesRow
> row in lookupDS.LookupTableTrees.Rows)
> {
> if (rowCF.MD_LOOKUP_TABLE_UID == row.LT_UID)
> {
> ddlTitleClass.Items.Add(row.LT_VALUE_TEXT);
> }
> }
> }
>
>
|
|
0
|
|
|
|
Reply
|
Dale
|
3/17/2010 1:05:05 AM
|
|
See my reply in the Developer NG.
--
Stephen C. Sanderlin, Project MVP
VP of Technology
msProjectExperts
90 John Street, Ste. 404
New York, NY 10038
E: �� stephen.sanderlin@msprojectexperts.com
NYC:� (646) 736-1688 x26
PA: � (215) 538-5373
Cell: (267) 446-4064
Fax:� (973) 556-1191
http://www.msprojectexperts.com
�
Are You Project 2010 Ready?
Work Management Solutions for Individuals, Teams, and the Enterprise
"ctd" <ctd@discussions.microsoft.com> wrote in message
news:56413B22-B913-4D2E-9793-3A33767E3F4C@microsoft.com:
> Hi,
> This is urgent so I hope someone can help. Thanks.
>
> I tried to display a dropdown list of a custom field's values, but kept
> having
> zero record return. Checked the database and saw my custom field in the
> custom field table and its values in the lookup table. Not sure what I was
> missing in the code but no record was returned. Below is my code in C#:
>
> private CustomFieldWS.CustomFieldDataSet readCustomFieldDS =
> new CustomFieldWS.CustomFieldDataSet();
> private LookupTableWS.LookupTableDataSet lookupDS =
> new LookupTableWS.LookupTableDataSet();
>
> private void ReadCustomFields()
> {
> strCustField = "Classification";
>
> DataView dataview = new DataView(readCustomFieldDS.CustomFields);
> dataview.RowFilter =
> readCustomFieldDS.CustomFields.MD_PROP_NAMEColumn.ColumnName +
> " = '" + strCustField + "'";
> if (dataview.Count == 0) return;
>
> CustomFieldWS.CustomFieldDataSet.CustomFieldsRow rowCF =
>
> (CustomFieldWS.CustomFieldDataSet.CustomFieldsRow)dataview[0].Row;
>
> foreach (LookupTableWS.LookupTableDataSet.LookupTableTreesRow
> row in lookupDS.LookupTableTrees.Rows)
> {
> if (rowCF.MD_LOOKUP_TABLE_UID == row.LT_UID)
> {
> ddlTitleClass.Items.Add(row.LT_VALUE_TEXT);
> }
> }
> }
|
|
0
|
|
|
|
Reply
|
Stephen
|
3/17/2010 1:11:10 AM
|
|
|
2 Replies
1764 Views
(page loaded in 0.074 seconds)
Similiar Articles: Read custom fields using PSI - microsoft.public.project.server ...Hi, This is urgent so I hope someone can help. Thanks. I tried to display a dropdown list of a custom field's values, but kept having zero re... PSI custom fields update - changes task duration and finish date ...I have a custom field at the task level (IIf([Finish]<[Current Date ... Read custom fields using PSI ... How to update "Custom Priority" or "Custom Status" Task fields? Enterprise Custom Fields stored in Database? - microsoft.public ...Checked the database and saw my custom field in the custom field table and its values in ... Reading / writing / updating custom enterprise fields using PSI Hi While ... custom field for projects with tasks past due - microsoft.public ...Read custom fields using PSI - microsoft.public.project.server ... Tasks in Project Workspace - changing values in the Status field ... custom field for projects with ... Bi-Weekly Grouping Custom start date? - microsoft.public.access ...Read custom fields using PSI - microsoft.public.project.server ... Bi-Weekly Grouping Custom start date? - microsoft.public.access ... I've read a little about ... PWA view with a filter using text10 custom field - microsoft ...PWA view with a filter using text10 custom field - microsoft ... ... PWA view with a filter using text10 ... ... PSI custom fields update - changes task ... Custom PWA fields show no data in PWA - microsoft.public.project ...There are several custom fields provided by Team system including work item ID which ... com For Project Server Training: http://www.projectservertraining.com Read ... Formulas/custom field - microsoft.public.project>> Read the papers on "What Percent Complete Should I be, etc. >> >> For ... Custom Field Formulas: Phone Numbers The basics of creating a custom field using a formula ... customized timeline - microsoft.public.projectPSI custom fields update - changes task duration and finish date ... customized timeline - microsoft.public.project PSI custom fields update - changes task duration and ... Adding fields in Resource Assignment View - microsoft.public ...PSI custom fields update - changes task duration and finish date ... ... Gantt chart (which references the Task table I think) view. ... Assignment Data, Resource Data ... How to: Create a PSI Extension to Read Custom Fields in the RDBUsing a Project Server Interface (PSI) extension that queries the Reporting database (RDB) in Microsoft Project Server 2010 is the simplest way to list all projects ... Read custom fields using PSI, help, FAQ, forums, question, answer ...Read custom fields using PSI : Hi, This is urgent so I hope someone can help. Thanks. I tried to display a dropdown list of a custom field's values, but kept having ... reading custom fields using psi - VB.Net - SQL Server, .Net ...Hello: I am trying to retrieve this MSP_EpmCPTaskVar0.CFVal11 using the PSI call. This custom field is created for task. Read custom fields using PSI Project - Project Discussion List ...Hi, This is urgent so I hope someone can help. Thanks. I tried to display a dropdown list of a custom field's values, but kept having zero record return Answer : Read custom fields using PSI - GNT : your source for ...Read custom fields using PSI - answer - Hi, This is urgent so I hope someone can help. Thanks. I tried to display a dropdown list of a custom field's values, but kept ... 7/20/2012 8:03:10 AM
|
|
|
|
|
|
|
|
|