I am using share point custom web part, i want to retrieve all the dates of single recurring calendar event.
For example i have created a calendar recurring monthly event that will last from December 2013 to December 2016
i am able to retrieve dates for one year only, that is from December 2013 to December 2014 only and not able to retrieve other dates using Collaborative Application Markup Language query
Related
I was assigned a project at work to develop a Macro that would automatically take financial data from an Excel table and generate credit notes and invoices for customers. I have the Macro developed already it is working the way it should, but the issue I am running into is with the language that is used for each invoice.
When generating credit notes, the Macro is taking the the invoices month of issue from the financial data table and displaying then as them as the months where credit was issued to the customer. i.e., a customer is requesting a partial refund on transactions from a period of time (say Feb.2019 - Apr. 2019) it will be displayed as:
February 2019 (02-19) -20.20
March 2019 (03-19) -32.03
April 2019 (04-19) -24.21
The problem is that my primary working language is English, but my company works in several European marketplaces and the invoices and credit notes have to be displayed in the language of the market where the customer is located.
So if an Italian customer requests an invoice, the months displayed must be listed as
Febbraio 2019 (02-19) -20.20
Marzo 2019 (03-19) -32.03
Aprile 2019 (04-19) -24.21
However, when running the Macro it still displays the issuing months in English when it should be displayed in the language of the market. The entirety of all invoices and credit notes created with this Macro are generated in the correct language, but since the Macro is taking the issuing months from the data table it automatically displays them in English.
Is the any way to ensure that it displays the issuing months in the required language?
I already know that the language settings can be changed for the entire workbook, but I still run into the same problem as I would have to manually change the issuing language each time I run the Macro to ensure the issuing month is correct?
To format a date in another regional setting you need to change the number format of the date for the desired range of cells. Eg. format the cell pressing Ctrl+1 to get the following dialog, and choose the regional setting ("Gebietsschema") for the country you desire.
Image 1: Change the regional setting for the date (sorry for the German screenshot).
Alternatively use the Range.NumberFormat property to format the cell with VBA:
.NumberFormat = "[$-it-IT]d mmmm yyyy;#"
Note that these both work if your dates are real date values but don't work if your dates are text. If they are text you need to change them into real dates.
Issue: We have created a MS Flow to trigger, when an item is created in SharePoint list (On-Prem) and in flow (On-Cloud) returns the date field value as One day before of actual date value.
eg: If I have a Due Date field in SharePoint List and created new items with a Due Date valueas 6/28/2019, but at the time of Flow trigger it returns the Due Date value as 6/27/2019.
And I have configured the Sharepoint App server(On-Prem), Database server(On-Prem), MS-Flow (Online) to IST time zone, but still I'm facing the issue.
Regards,
Tharma KS
I am trying to calculate a school year from date of birth and would like SharePoint to update as and when necessary.
I know this is possible in Excel but wondered if there was a work around for Now or Today in SharePoint.
The code I am using is:
=IF([Date of Birth]="","","Year "&MAX(0,DATEDIF(DATE(YEAR([Date of Birth]+122),9,1),NOW(),"Y" )-4))
Any help would be greatly appreciated.
Sample forum to get year count between dates.
=VALUE(TEXT(NOW(),"yyyy"))-VALUE(TEXT([Date of Birth],"yyyy"))
if there was a work around for Now or Today in SharePoint.
Not by just using a Calculated Column. A Calculated column is only updated with the item is created or edited.
You can add JavaScript to the page to update the displayed school year each time a page loads, but you would need to add this to each of the list's forms and Views. The exact JavaScript solution depends on your SharePoint version. Can you update your question with the version? (2010, 2013, 2016, SharePoint Online - classic UI, SharePoint Online modern UI, etc.)
As the title says i have a infopath form where i want to run a extra action on submit if the time is greater than 18:00 but it can be any date.
I tried using 2 separate fields but that upset SharePoint (the data goes into a SharePoint calender hence not using 2 separate fields)
Thanks for your help
Lewis
I have several reports in SharePoint that are served by SQL Server Reporting Services in SharePoint Integrated mode. Some of these reports need to be automatically generated on the last day of the month. While SSRS itself has a "last day of month" option, SharePoint doesn't have this capability in its scheduling options.
What is the best way to add this capability? I don't mind writing code, or installing something, or enabling something I don't know about.
SPMonthlySchedule can only run on a specific date. Afaik you cannot configure it to run on the last day of the month.
I would create a timer job running daily, and doing the report if today is the last day of the month. Create a SPJobDefinition with a SPDailySchedule to achieve this.
Here is a howto.
if(DateTime.Now.Month != DateTime.Now.AddDays(1).Month)
{
//Do report
}
IMO, I would look into writing a Timer Job. I wrote one for a bi-weekly data import. I'm sure you could do an EOM report generation with it.
Search google for SPMonthlySchedule (timer job class in the SharePoint object model).
This is pretty old but I just had the same problem.
An easy way to do this is set up 3 subscriptions for the report.
Have one email out the report on the 31st of Jan, Mar, May, Jul, Aug, Oct, Dec
Have one email out the report on the 30th of Apr, Jun, Sep, Nov
Have one email out the report on the 28th of Feb
Note that this does not take leap years into consideration.