我正在从SharePoint检索数值。我想要做的是从列表中添加值。但是,当我从 SharePoint 调用该列时,我不确定如何获取它。
到目前为止,我有这个:
//Column List from SharePoint which has a numeric value
if (item["ows_Amount_x0020__x0028_LC_x0029_"] != null)
{
str.AppendLine("<td bgcolor='#FFFFFF';align='right';> " + Convert.ToDecimal(item["ows_Amount_x0020__x0028_LC_x0029_"]).ToString("N0") + "</td>");
}
//Location where I want to put in the Sum
str.AppendLine(" <tr style='color:#ffffff; font-weight:bold'><td bgcolor='#0096D6'>Forecast USD</td></tr>");