Tag Info

New answers tagged

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.


0

There is a SPLongOperation class you can use. SPLongOperation Class on MSDN I would suggest that Workflows are typically for long-running, asynchronous tasks (that is, control is returned to the user via the GUI while workflow does its work), and that something like an event receiver is probably more suited to short tasks like yours. Using event receivers ...



Top 50 recent answers are included