Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

PWA 2010 RemoveResourceCustomFieldsRow

$
0
0

hello 

please find the below code 

  SvcResource.ResourceDataSet resourceDs = resourceClient.ReadResources(string.Empty, false);

            Guid resVimal = new Guid("eb536541-e934-45fa-a9c6-8189fb4aa3d9");
            resourceClient.CheckOutResources(new Guid[] { resVimal });
            foreach (SvcResource.ResourceDataSet.ResourceCustomFieldsRow row in resourceDs.ResourceCustomFields.Rows)
            {
                if (row.MD_PROP_UID == ResourceDepartmentUID && row.RES_UID == resVimal && row.CODE_VALUE == ResourceDepartmentValue)
                {
                    resourceDs.ResourceCustomFields.RemoveResourceCustomFieldsRow(row);
                 //   resourceDs.ResourceCustomFields.del
                    //resourceDs.ResourceCustomFields.rem
                    break;
                  //  row.CODE_VALUE = ResourceDepartmentValue;
                }
            }
            resourceClient.UpdateResources(resourceDs, false, false);
            resourceClient.CheckInResources(new Guid[] { resVimal }, true);

the above code is not removing the department value, can any one please guide me for the same

thanks

vimal


regards Vimal


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>