Example:
Tags:banana,authenticated Site:”http://server/Pages/AFolder”
Using REST
http://server/_api/search/query?queryText=’Tags:banana,authenticated Site:”http://server/Pages/AFolder”‘
Bruce Ng's software development blog
An archive of solutions of programming problems I have faced in my career
Example:
Tags:banana,authenticated Site:”http://server/Pages/AFolder”
Using REST
http://server/_api/search/query?queryText=’Tags:banana,authenticated Site:”http://server/Pages/AFolder”‘
And this article: https://sharepointgotchas.wordpress.com/2014/11/18/using-rest-to-query-data-by-filtering-on-taxonomy-field/
The filtering works using CAML query.
If the application only uses English language, it’s possible to strip all control characters from the data before doing other string operations.
Use the Regex to do so
data = Regex.Replace(data, @”[^x20-x7F]”, “”);
This line will remove all characters that are not in the range 0x20 to 0x7F in the ASCII table.
Then proceed to do string operations as per normal.
The example processes values read by EPPlus, might be useful in other situations, too.
public DateTime GetDate(object valFromExcel)
{
if(valFromExcel is DateTime) return valFromExcel;
if(valFromExcel is double) return DateTime.FromOADate((double)valFromExcel);
return Convert.ToDateTime(valFromExcel);
}
var context = new SP.ClientContext.get_current();
var web = context.get_web();
var list = web.get_lists().getByTitle(listTitle);
var listItem = list.getItemById(listItemId);
context.load(listItem);
context.executeQueryAsync(
function() {
var workflowStatusField = listItem.get_parentList().get_fields().getByTitle(workflowTitle); //get workflow status field
var workflowStatusValue = listItem.get_item(workflowTitle); //get workflow status field value
success(workflowStatusValue);
},
error
);
To solve this, set InitialValue to the required field validator.
If you set a default value to a dropdown list and then disable the dropdown list, the validator will not work correctly. Use a hidden field and use javascript to update it every time the dropdown list’s value is changed, then configure the validator to check the hidden field instead.
To get it to work, you have to jump through hoops by downloading the SharePoint guidance library thingy as some source code and build it yourself, then deploy it to the GAC of your environment, then add reference to Microsoft.Practice.SPG.AjaxSupport.dll, then use a SafeScriptManager in the usercontrol of your SharePoint webpart.
Maybe it’s better to build the thing using pure HTML and javascript?
Use SharePoint Manager to get the column’s GUID
Then write a console app to remove this column. Multiple column of the same name will break code.