Posts Tagged sharepoint
note to self: populating a SPFieldUserValue object
SPFieldUserValue user = (SPFieldUserValue)item.Fields["Field Display Name"].GetFieldValue(item["FieldName"].ToString());
SPFieldUserValue user = (SPFieldUserValue)item.Fields["Field Display Name"].GetFieldValue(item["FieldName"].ToString());
I’ve been working a lot lately. We’re talking, 12-14 hour days + weekends. It’s a little crazy, but that’s how life is.
I’m taking a little break to write something that doesn’t end in semi-colons! Here’s my interesting fact for the day: Did you know that Sharepoint has a Javascript stack that you can chain on to run functions on the body tag’s onload called _spBodyOnLoadFunctionNames? A simple JavaScript call to _spBodyOnLoadFunctionNames.push(‘FunctionName’); attaches your function to load on page load. Amazing.
I’ve been at work far too long.
annoying, javascript, onload, sharepoint, suicidal tendencies
Fusion theme by digitalnature | powered by WordPress, Installed by Installatron.
Entries (RSS) and Comments (RSS) ^