Tag Info

New answers tagged

0

If you are using client-side coding to get the list items, I would think you are using a CEWP? If not, it might be easier to do so if you are just working with this one list. Here is the code for you if you decide to give SPServices a try. I use this within a CEWP myself for my list manipulation: <script type="text/javascript" ...


0

You should have already a "content type" column; it is enough to make it visible in your form.


1

Yes you must use content type for this case! Go to Site Setting and site content type then Create 2 content type for each them and create them columns! So create a list and go to list setting and Advance setting so Choice Allow management of content types? Yes. Add from existing site content types then add your content type. Then Go to form setting and then ...


1

There is a FieldMultiLineText class in CSOM which is equivalent to SPFieldMultiLineText class of Server object model.You can try the below code : dish.FieldValuesAsText["Ingredients"]; Also you have to include the FieldValuesAsText property in the load statement like below: context.Load(dishes,items=>items.Include(item=>item.FieldValuesAsText));


0

The larger thing to consider is where this content will live. Are these going to be tags associated in a managed metadata term set or are these going to just be choice options? In either case, you'd want to get a distinct list of these terms and either import them into managed metadata or create them as list items in a centralized list. The library where ...


1

Not quite sure what you mean, but I'm guessing you have at least one item in your list with the values you explain, set to a field of type Text. If this is the case you can convert the field to MultiChoice through PowerShell, like this: $field = $list.Fields.GetFieldByInternalName("MyField") $field.Type = "MultiChoice" $field.Update() You also have to add ...


1

Are you changing the list columns/content types within deployments? If not, then you could change your solution so that it only deploys list definitions and then write a feature receiver to instantiate the list from the definition. In a similar situation, I used code like the below (SP2013 but should work in 2010) if (oWeb.Lists.TryGetList("ListName") == ...


0

You can create a Site Column based on "Hyperlink with formatting and constraints for publishing" type (you might need to activate Publishing Infrastructure feature on site collection and site level).. Than go to List Settings -> Under columns -> Add existing Site Column.. Select the newly created column.. (This column type isn't available in List Columns) ...


0

You can use Content Types in this case, make two Content Types.. One as Player and other as Manager.. The common columns will exist in both Content Types and the unique ones will exist in respective.. Each Content Type has its own Display, New and Edit forms so you don't have to worry about forms here.. Also you can see all of them in a single list as ...


0

Dave, the only way i can think of is adding jQuery script on your new form that checks the values, since this is a custom logic depending on the field value.


1

Found the solution. All it took was replacing this bit of code: var h3 = '<h3>' + oListItem.get_item('Title') + '</h3>'; var div = '<div>' + oListItem.get_item('Floor') + '</div>'; var content = $(h3 + div); content.appendTo("#accordion").show(); with this bit of code var newDiv = "<h3> " ...


2

About the first one: since it is a note field, I suppose that that is the actual content of the field. SharePoint automagically formatted your text when you inserted it into the list. About the second one. Again, expected. The user will be returned as an instance of the FieldUserValue class. Cast it to read the actual info. For example: //Note: will give ...


1

For the user you need to get the LookupValue property and then use toString(). objFieldUserValue.LookupValue.ToString(); Microsoft.SharePoint.Client.FieldUserValue Title For the NoteField try to get the property Text. NoteField properties


1

You can add the attribute ToolbarTemplate="None" in the View element <View BaseViewID="1" ... ToolbarTemplate="None" ...


2

Technically you can delete all of the views for the list and you will get a 404 if you try to access via the url. The list does technically still work if you are accessing it another way (like COM) though.


0

I think list validation is only to prevent users insert wrong values. To achieve this, I would advise you to use a workflow that checks the column values and set the values you want. Another solution is to use an event receiver and let this set a value (based on the conditions you want) when an new item is added. This can be put for example in the ...


2

Make sure to not use SPContext.Current in the FeatureReciever, this will be NULL in powershell (due to lack of HttpContext basically). This is one of the most common cause of errors in FeatureReceivers


2

I would suggest that you break the whole thing into two features, first one to deploy the List Template and second one to create the instance of the list based on template.. On the later one, you will need to define Feature Activation Dependency of List Template feature.. Both features can be hidden and you just need to activate the Feature that creates ...


0

In REST, adding 'Id' to the column works as long as your specifying the Id. LookupColumn: "docItem" "docItemId" : 1


0

Typical, spent days and days trying to resolve this, i post here and then manage to resolve it myself. After reading some Microsoft documentation it would seem all examples i've seen on the internet miss out one key thing, Inside the tag or tag for where you want the webpart to appear there needs to be the tag and then all of the above (minus the tag i ...


1

A cleaner way would be to create a new View with all necessary filters and use it on the pages(as Webpart) and apply JSLink to the web part properties. JSLink: You could always add a conditional check within the JS but that might offset the paging and result in empty cells. For ex. customItemHtml: function (ctx) { var _taskStatus = ...


0

You cannot achieve this by using your "Fruit" column alone. The best workaround i can think of is to try creating another Calculated column called say "Order". Set formula in the calculated column to such that if Fruit Column is Orange , Set "Order" column as 1 etc , depending on the order you want to specify. Now in your view OrderBy that calculated ...


0

No, there is not. (I'm assuming that with "drop down menu" you mean a choice column) If you order by the choice column, the view will always be ordered alphabetically, either ascending or descending. The only workaround that comes to my mind is adding a numeric prefix before each value, eg: 01 - apple 02 - orange 03 - banana 04 - grapefruit


0

I don't think it will work by adding the web part to the Schema.xml. Try using a feature receiver instead to create the web part and add it to the page with SPLimitedWebPartManager. See [MSDN: Add a WebPart to schema.xml][1] for example code.


0

In the CAML Query, you need to set the view XML as: camlQuery.set_viewXml(q);


0

I figured it out. It seems the trick is in the setup. The data type at the bottom of the column setup must be changed to 'Number' rather than 'Single line of text'. The forumla should look like this: =IF(Status="Complete","<img src=https://website.com/teams/ Business Change/SiteAssets /Images/changelogo.png>","Not Run")


0

Did you try this? http://blogs.technet.com/b/jay/archive/2013/06/17/how-to-display-images-in-a-calculated-column-of-a-sharepoint-list.aspx Hope this will help you.



Top 50 recent answers are included