Does the “reappearing” property of the “Shadowneedle” Unbreakable Arrow function?

In Adventurers League play, it is possible to find a “Shadowneedle” (Unbreakable arrow), which has this special text :

One of twenty unbreakable arrows crafted with Shadowsong [A flavored Oathbow that could be found in Adventurers League play in the past, and is still tradeable today], when this arrow is nocked onto the Oathbow and leveled at an opponent, a gentle hum fills the wielder’s mind, steadying their hand and steeling their focus (this feature has no mechanical effect). When [the Shadowneedle is] fired from Shadowsong, the wielder may say the words “Needles, return to your thread” to make this arrow (and any other in its set loosed from the wielder’s hand) reappear in the wielder’s quiver.

However, ammunition are apparently considered as Consumables in general, and the Dungeon Master’s Guide has a section on such items :

Some items are used up when they are activated. A potion or an elixir must be swallowed, or an oil applied to the body. The writing vanishes from a scroll when it is read. Once used, a consumable item loses its magic.

Does that mean that a Shadowneedle, even when shot from Shadowsong, loses its magical properties and thus won’t fly back when the words are spoken ? Or am I (hopefully) missing something, making the “reappearing” property of the Shadowneedle function properly ?

Proving that Rice’s theorem does not apply to a property

This is related to an assignment, but I would still appreciate help in formalising proof either through private message or on this topic.

The question is about if Rice theorem applies to certain property. For example for a structural property such as number of states. I would argue that:

  • The property is decidable through its definition in encoded form.
  • The property is irrelevant to the language, because given the same language we can easily find another TM that does not have this property, ie one with empty states, so the property is not a language property, and hence Rice Theorem does not apply, since by definition, Rice theory only applies if it is a non trivial language property.

To me, this seems to be a good argument, but the question is assign a substantial mark of 10, and I feel like this is not enough for 10 marks, am I missing out some rigorous argument that I need to include to make my explanation crystal clear?

Cannot seem to access Calculated column in Display Template via Managed Property mapping

Here is my situation:

I have a test/development site on SharePoint Online/Office 365 called TestSite3, and within that site a sub-site called TestBlog3 (a Blog site for making Posts).

I want to use a Content Search Web Part on the homepage to query all Post items from the blog, and then sort them by a custom event date value, but then if event date is not specified (it will be optional), use the post’s created date.

I have also made a custom Display Template in which I have the following managed property mappings:

<mso:ManagedPropertyMapping msdt:dt="string">'Picture URL'{Picture URL}:'PublishingImage;PictureURL;PictureThumbnailURL','Link URL'{Link URL}:'Path','Line 1'{Line 1}:'Title','Line 2'{Line 2}:'LastModifiedTime','Line 3'{Line 3}:'BodyOWSMTXT','Line 4'{Line 4}:'RefinableDate03','SecondaryFileExtension','ContentTypeId','IsAllDayEvent'</mso:ManagedPropertyMapping> 

In the Post content type, I have added two custom columns:

  • ZTest3Date: a Date column that is optional to the user to specify, supposed to function as an ‘event date’ for posts about events coming up
  • ZTest3Calculated: a Calculated column returning a Date. What I want is for it to return the event date (ZTest3Date) if it is set, otherwise return the post’s created date (Created).

Here is the formula I have in ZTest3Calculated: =IF(ISBLANK(ZTest3Date),Created,ZTest3Date)

I have seen formulas use brackets [] around the column names, but when I try saving the formula with that it automatically removes them, leaving the above.

I go into the site’s search schema to look at the Managed and Crawled Properties. I use ‘z’ in the search box to filter them down. The ZTest3Date column I made shows up in Managed Properties as ZTest3DateOWSDATE. There is no Managed Property for the ZTest3Calculated column.

In Crawled Properties, I see ows_ZTest3Calculated, ows_ZTest3Date, and ows_q_DATE_ZTest3Date.

I can put ZTest3DateOWSDATE into my Display Template in Line 4 and it works, but that’s only half my solution; I want to handle when there is no event date set.

Since ZTest3Calculated is not available as a managed property, I understand that it is recommended to map the crawled property to one of the pre-set columns SharePoint provides, so I mapped ows_ZTest3Calculated to RefinableDate03.

I have re-indexed the Post list and waited a while, but it does not seem to be working; I have also tried assigning an alias to RefinableDate03 and updating the Display Template, still no luck. When I debug the JavaScript code I put in my display template file to read what is coming into Line 4, it is blank always, whether or not the event date is set. So either the RefinableDate03 mapping isn’t working, or my ZTest3Calculated column isn’t working. Or something else I’m not aware of.

Sorry this is so long, but I feel like supplying the context and my setup is important. I have driven myself crazy with this over the past few days, and would appreciate if someone might have some knowledge of what I’m missing.

I appreciate any help, and thank you for reading all this!

Cannot seem to access Calculated column in Display Template via Managed Property mapping

Here is my situation:

I have a test/development site on SharePoint Online/Office 365 called TestSite3, and within that site a sub-site called TestBlog3 (a Blog site for making Posts).

I want to use a Content Search Web Part on the homepage to query all Post items from the blog, and then sort them by a custom event date value, but then if event date is not specified (it will be optional), use the post’s created date.

I have also made a custom Display Template in which I have the following managed property mappings:

<mso:ManagedPropertyMapping msdt:dt="string">'Picture URL'{Picture URL}:'PublishingImage;PictureURL;PictureThumbnailURL','Link URL'{Link URL}:'Path','Line 1'{Line 1}:'Title','Line 2'{Line 2}:'LastModifiedTime','Line 3'{Line 3}:'BodyOWSMTXT','Line 4'{Line 4}:'RefinableDate03','SecondaryFileExtension','ContentTypeId','IsAllDayEvent'</mso:ManagedPropertyMapping> 

In the Post content type, I have added two custom columns:

  • ZTest3Date: a Date column that is optional to the user to specify, supposed to function as an ‘event date’ for posts about events coming up
  • ZTest3Calculated: a Calculated column returning a Date. What I want is for it to return the event date (ZTest3Date) if it is set, otherwise return the post’s created date (Created).

Here is the formula I have in ZTest3Calculated: =IF(ISBLANK(ZTest3Date),Created,ZTest3Date)

I have seen formulas use brackets [] around the column names, but when I try saving the formula with that it automatically removes them, leaving the above.

I go into the site’s search schema to look at the Managed and Crawled Properties. I use ‘z’ in the search box to filter them down. The ZTest3Date column I made shows up in Managed Properties as ZTest3DateOWSDATE. There is no Managed Property for the ZTest3Calculated column.

In Crawled Properties, I see ows_ZTest3Calculated, ows_ZTest3Date, and ows_q_DATE_ZTest3Date.

I can put ZTest3DateOWSDATE into my Display Template in Line 4 and it works, but that’s only half my solution; I want to handle when there is no event date set.

Since ZTest3Calculated is not available as a managed property, I understand that it is recommended to map the crawled property to one of the pre-set columns SharePoint provides, so I mapped ows_ZTest3Calculated to RefinableDate03.

I have re-indexed the Post list and waited a while, but it does not seem to be working; I have also tried assigning an alias to RefinableDate03 and updating the Display Template, still no luck. When I debug the JavaScript code I put in my display template file to read what is coming into Line 4, it is blank always, whether or not the event date is set. So either the RefinableDate03 mapping isn’t working, or my ZTest3Calculated column isn’t working. Or something else I’m not aware of.

Sorry this is so long, but I feel like supplying the context and my setup is important. I have driven myself crazy with this over the past few days, and would appreciate if someone might have some knowledge of what I’m missing.

I appreciate any help, and thank you for reading all this!

The property or field ‘ItemCount’ has not been initialized. It has not been requested or the request has not been executed

I have the following code inside our server-side event receiver, the code should connect to a sharepoint online list and get the total number of items, here is the code:-

   try    {      currentItem["Status"] = "Pending";      if (currentItem.ContentType.Name.ToLower().Contains("project"))         {             using (ClientContext context = new ClientContext("https://***.sharepoint.com/"))            {              string s = "***";              SecureString passWord = new SecureString();              foreach (var c in s)              passWord.AppendChar(c);              context.Credentials = new SharePointOnlineCredentials("admin@****.onmicrosoft.com", passWord);              List list = context.Web.Lists.GetByTitle("Project");              context.ExecuteQuery();              var countItems = list.ItemCount;            }          }    }    catch (Exception e)    {      var errormessage = e.Message;    } 

but i am getting this exception:-

Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException was caught   HResult=-2146233079   Message=The property or field 'ItemCount' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.   Source=Microsoft.SharePoint.Client.Runtime   StackTrace:        at Microsoft.SharePoint.Client.ClientObject.CheckUninitializedProperty(String propName)        at Microsoft.SharePoint.Client.List.get_ItemCount()        at OrderManagement.EventReceiver1.EventReceiver1.ItemUpdated(SPItemEventProperties properties)   InnerException:  

So can anyone advice how i can fix this issue?

SPServices.SPAutocomplete cannot read property ‘find’ of undefined

I have created a SharePoint page and inserted text box using content editor web part with title of FilterTextBox

<input type="text" title="FilterTextBox"/> 

and I have inserted below script using Script Editor web part

<script language="javascript" type="text/javascript">     $  (document).ready(function() {         $  ().SPServices.SPAutocomplete({              sourceList: "Country",             sourceColumn: "Title",             columnName: "FilterTextBox",             ignoreCase: true,             numChars: 3,             slideDownSpeed: 1000,             debug: true         });     }); </script> 

but I get the following error when page load

Uncaught TypeError: Cannot read property ‘find’ of undefined

what might be wrong with my code ? thanks .

Modifying WebPartPage in SharePoint Online changes ContentType property

I am using the SharePoint Online CSOM library to change an ImageLink property in a WebPartPage. I first check-out the page, make any changes, and then check-in the page. When I check-in the page, the page’s content type shown in SharePoint Online changes from “Web Part Page” to “Wiki Page”. If I re-read the page, the ListItem’s ContentType field is indeed set to a Wiki page ID (“0x0101080091497901794A9E4E8282666A11DAE0AD”). I’m stumped as to what is causing this.

Here’s my C# code:

using (SP.ClientContext context = SharePoint.GetClientContext(site.Url, siteCollection)) {     string serverRelativeUrl = site.GetServerRelativeUrl(url);     SP.File csomFile = context.Web.GetFileByServerRelativeUrl(serverRelativeUrl);     context.Load(csomFile);     context.ExecuteQueryWithRetry();      LimitedWebPartManager limitedWebPartManager = csomFile.GetLimitedWebPartManager(PersonalizationScope.Shared);     context.Load(limitedWebPartManager);     WebPartDefinitionCollection webPartDefinitionCollection = limitedWebPartManager.WebParts;     context.Load(webPartDefinitionCollection, wpdc => wpdc.Include(         wpd => wpd.Id,         wpd => wpd.WebPart,         wpd => wpd.WebPart.Properties));     context.ExecuteQueryWithRetry();      bool pageChanged = false;     bool webPartChanged = false;     foreach (WebPartDefinition wpd in webPartDefinitionCollection)     {         string imageLinkUrl = wpd.WebPart.Properties.GetField<string>(@"ImageLink");         if (!String.IsNullOrEmpty(imageLinkUrl))         {             bool linkChanged = LinkHandler(ref imageLinkUrl);             if (linkChanged)             {                 wpd.WebPart.Properties[@"ImageLink"] = imageLinkUrl;                 webPartChanged = true;             }         }          if (webPartChanged)         {             wpd.SaveWebPartChanges();             pageChanged = true;         }     }      if (pageChanged)     {         context.ExecuteQueryWithRetry();     } }  

SSOM – How to set a custom property value when add webpart programmatically

I want to set a custom property value when add web part programmatically.

Who is the property of System.Web.UI.WebControls.WebParts.WebPart object ?

This is my code for add web part in page:

            using (SPLimitedWebPartManager manager = oWeb.GetLimitedWebPartManager(newPage.Url, PersonalizationScope.Shared))             {                 try                 {                     string wPartURL = oWeb.Site.Url + "/_catalogs/wp/ClientViewProjects.webpart";                     XmlTextReader reader = new XmlTextReader(new StringReader(oWeb.GetFileAsString(wPartURL)));                      string err = null;                     System.Web.UI.WebControls.WebParts.WebPart wp = (System.Web.UI.WebControls.WebParts.WebPart)manager.ImportWebPart(reader, out err);                     wp.ChromeType = PartChromeType.None;                     manager.AddWebPart(wp, "Header", 0); //See the description below for how to determine Zone                     manager.SaveChanges(wp);                 }                 catch (Exception ex)                 {                     LOG_STRING += string.Format("В сайт с URL:{0}{1} {2}", oWeb.ServerRelativeUrl, ex.ToString(), Environment.NewLine);                 }                 finally                 {                     manager.Web.Dispose();                 }                  newPage.CheckIn("Checked in by Code");                 newPage.ListItem.File.Publish("Publishing major version");             } 

How exactly the “Tearing” property works?

There is some ambiguity in Tearing property.
Dark Heresy Rulebook states that:

These weapons roll two dice for Damage and choose the highest.

Rogue Trader, Deathwatch and Only War are agreed that:

These weapons roll one extra die for damage, and the lowest result is discarded.

For most weapons it’s quite simple because of damage like 1d10+something. But, what if we have more dice in damage? Should I roll additional die for every base damage die, or only for entire damage roll?

For example, Angelus bolter from Dark Heresy supplement Inquisitor’s Handbook has 2d10 damage and (like all bolt weapons) Tearing quality. Lets presume that my character shot a heretic with this bolter, and now I must determine inflicted damage. Should I roll 2d10 twice, and discard lowest in both, or I should roll 3d10, and discard the lowest one?

Get Property value and display to people search result

This is for SharePoint 2013.

I’m new in this domain.

I have to realise an intranet with SharePoint 2013. I want to display a property in people search results.

I followed this post, it works well, I display the “location”.

But the problem is that it displays the value that is in “Central Administration –> Manage User Profiles”.

And I want to display the value that is in “Edit Profile” when you click on the name of someone (when you use the search for poeple e.g) and you go in his “Edit Profile”.

ps : sorry for my bad english.

EDIT :

This is the value in ProfAdminEdit.aspx (Central Administration –> Manage User Profiles). I display “C2” but I want the other value.

enter image description here

This is the value in EditProfile.aspx (in search navigation, I search e.g Lee and when I click on his name, I arrive on his personal site and there, I can “edit” his profil, I want the value that is here and not the value “C2”)

enter image description here