Modify SharePoint view of lookup field that can have multiple values - sharepoint

I am trying SharePoint for first time. So please be nice to me. Here is what I am trying to do.
Lets say I have a List where I have values as shown below
Lesson Days
----------------------
Tennis Monday,Wednesday
Swim Saturday
Golf Sunday,Saturday.
Above Days is lookup field that can take multiple values.
How can I modify the view to look as below
Lesson Days
----------------------
Tennis Monday
Wednesday
Swim Saturday
Golf Monday
Sunday
Saturday
Looks like we can code, but I have no idea how to do this.
Also it would be awsome if we have sequence number for multiple values. Something like this
Lesson Days
----------------------
Tennis 1.Monday
2.Wednesday
Swim 1.Saturday
Golf 1.Monday
2.Sunday
3.Saturday
Edit: Based on further search looks like I need to do Client side rendering. I found this link
SharePoint 2013 Client Side Rendering: List Views
I am still struggling to understand this. Need much simple example on how to do this. Will appreciate any hint/help on getting this started.

To start this might help. Using Sample 1, changing the field name and the render function you can easily get the view version without sequence.
If you want a custom order on the days you have to change the EditForm for your days field to change the way the user inserts the days. That will be the hard part since if you do so, you have to either get the values for the lookup field by urself (using the javascript client api or rest calls) or use the default sharepoint lookupfield and customize it (I would not recommend this). To save the custom values back to the days field this example will help (using the registerGetValueCallback function)
You can include your script with a script webpart on the view page/edit page or use the jslink property on the webpart property section miscellaneous to include a javascript file containing the csr code.

Related

How do i write more complex code in Lotus Notes views

i currently work on a project where i have to write a programm which processes raw data from a
Notes Database into an excel file using Lotus Script. The Database contains time information about how long different devices have been lend out. The output from my script looks like this:
June
Device
Counter
Times(Minutes)
Times(Hours)
--------
--------------
--------------
--------------
TestDevice1
3
270
4,5
TestDevice2
2
210
3,5
I am finished with the programm itself, now i need to have the same Output inside a Lotus notes View. I am very new to lotus notes and i have no idea how to do this. I know that it is possible to use Lotus Formula to programm. But i cant find anything about the language and how to use it. Maybe someone here can help.
You can look at the online documentation provided by HCL "About Designing Views"
Pay particular attention to "Selecting which documents display in a view" and "Creating columns in a view" (and its subsection "
Adding programming to columns").
That should give you a few ideas of how to progress.
You can get close.
Make a view to display the Device, Counter, Times, and Times columns, unsorted.
Once you figure that out, create a new column that displays the month. (Hint: See #Text formula.)
Now change it to subcategorized by month by changing the month column to be the first column, and then edit the column properties to give it a width of 1 or 2, not resizable, and make it a category column with twisties shown.
This will get you close. Instead of the month followed by column titles followed by the data, you will get column titles followed by the month followed by the data per month.

Send notification/email 7 days before given date

I have table with employees. It contains some information and also date of birth. Is it possible to send notification/email (directly from excel) let's say 7 days in advance to know that he/she will have birthday soon?
I found some tutorials, but all require Visual Basic. Unfortunately, it is for my sister without any knowledge of programming.
Yes, it is possible to do this via Word's mail merge feature. But since this would require quite a few manual steps (presumably on a daily/weekly basis), I'm afraid it's not what your sister is after. You could code a similar feature in VBA but that would still require her to open the document regularly to run the macro so perhaps it would be quicker and simpler to just check a filtered employee list.
If you want a closer look at mail merge, try this. You could use a helper column to identify which birthdays are close (e.g. using this) and filter on that column, then you show only those whose birthdays are in the next x days.

Dynamics CRM FetchXML - Birthday is today

Is it possible using FetchXML to find out the Contacts who's birthday is for today? For example 4/1/2000, 4/1/2001, 4/1/2002?
I don't want to write custom code to do this if possible
Thanks in advance
Unfortunately that's not possible without additional coding... General approach is to add 2 fields - day of birth and month of birth, populate it during creation/update of a record and use mentioned fields after.
Have you tried
<condition attribute="birthdate" operator="today"/>
EDIT:
One way to accomplish this would be to create a recurring workflow job that runs a custom activity daily that sets an attribute to true for all the people whose birthday is today.
Another option might be to create a retrieve multiple plugin that changes the query criteria dynamically, but you might need to also include additional attribute(s) to just keep track of the month and day separately from the year.

how to call and sort data in a view?

I have two view, one is sorting 2011 data and the other one is sorting the 2012,
2013 is coming and I think, create another view is not good. Then I tried to code a formula to call the data in my database and send to view but it's not working .
please help me :)
I think your best option is to create another view. Notes doesn't do well with dynamic view selection formulas.
Another alternative to consider is to use categories to group data by year. You could then set up an embedded view that shows only a single category, which could be determined by a drop-down field that shows the available years.
A solution I have used when dealing with weekly or monthly date is to use an agent to create a new folder every week and to put the correct documents in the folder. But this is a lot of work and if there is a high volume of data you can run into problems with some of the internal limits of the Notes database structure. Someone with expert level knowledge of Notes can probably manage this, but I do not recommend it as a general solution -- and certainly not for yearly data.
Adding a view once a year is really not that bad. It's two minutes of work every 12 months, just copying and renaming the previous year's view and changing the selection formula.

One Day Description View for SharePoint 2010 Calendar

I am attempting to create a Menu web part that will display just the description of a daily calendar event within the entire web part. Each day there would be a different menu, so ideally each day there will be a new description being displayed within the web part. This seems like a simple request, but I haven't been able to find any resources online that allow this. Basically I just want to show just the description of the calendar event for the day. Is this at all possible?
-SB
you would be required to create a dataviewwebpart and you have to tweeks its xslt so that it filters out the results for the day
you can refer the following post to learn basics of dataview weparts
http://sarangasl.blogspot.com/2009/12/sharepoint-list-web-service.html

Resources