ViewPanel does not honor Time Zone on Date-only field - jsf

We have an app running on 8.5.3 servers (windows) with a field set as Date-only in the Notes backend. No time component gets saved. There is a list style Xpage with a ViewPanel that displays these dates from a Notes view data source, and a form that opens from a link in that view that also shows the same field in the linked record. We are in North America.
After UTC midnight, which is 7 pm Eastern, all of the date column values shown in the view will roll back to the previous day. The linked document in the form-oriented Xpage still shows the proper date as can be seen in a Notes client, and in a Notes info box showing hidden field values.
The XSP application property setting for "Time Zone" has no effect on this behavior.
I added time zone to the display format pattern (MM/dd/YYYY vv) in the viewPanel and also to the field in the form's panel, and both are showing the same time zone, GMT -4. So the date displayed in the viewPanel is in error, as far as I can tell.
I also have verified the same behavior on a Domino 9 server. Is there a workaround for the view list or should we try it on 8.5.2?

Related

How to add two related forms in a notes view?

Ok,I have a situation where I need to display a view that contains field value from two forms which is connected via a "CVNo" field. At first I thought it was simple and dived in. I added the form names in the view selection formula of the notes view and then created columns and assigned their respective values, but what happened was the output I got from doing so is a very jumbled and cluttered view. Based on my understanding the notes view displayed the column values from each form differently. I don't know how to do this or if this possible in notes view. All help and suggestions and are very appreciated.
In Lotus Notes view you cannot display documents connected to each other by a custom field. The only connection which can be displayed in Lotus Notes view is parent->response document hierarchy.
And please note that you do not create view that displays values from forms. You create view to display field values from documents, which are filtered to be shown in this view.
If you have documents, with field Form, one Form1 and another Form2, then create a view with selection formula:
SELECT Form = "Form1" | Form = "Form2"
Every row in the view represents a document (either with Form1 or Form2 value in the Form field).
And every column may contain a field name or #-formula to evaluate with every shown document to display a value in this column.

SharePoint Webpart dropdownlist autopostback isn't functioning correctly

I have built a webpart that basically displays all the items in a SharePoint list based on a set of criteria.
One of these criteria's is a date, a year specifically. The user is supposed to select the date from a dropdown list in the web part and the view area below will populate with all the items from that specific year.
That part works. The SPQuery grabs the data just fine and displays it in the format desired. The issue I am having is with the autopostback option on the dropdownlist.
It doesn't remember the current selectedindex, it remembers the PREVIOUS selected index. If I chooes 2014, the page loads but nothing changes, if I then choose 2013, the 2014 stuff appears, if I then choose 2010, the 2013 items appear, if I go back and then select the 2014, the 2010 stuff appears. It's always 1 behind and I have no idea why.
I've tried assigning a ViewState variable in the SelectedIndexChange to remember what was selected, but that too always seems to be one step behind. I can't seem to get the CURRENT selected index.
Does anyone know what's going on here?
Your question is more ASP.NET problem than SharePoint. Check MSDN to see page life-cycle. New values of controls are available after the onLoad event of Page. So just move your code to e.ge. onPrerender event.

How to set textfield only with Month and year from calender in CRM

After selecting calendar in campaign form , I need to set text field only display Month/Year
instead of Day/Month/Year. How can I do this?
I attached a screen shot below:
Here its Day/Month/Year, but I need Month/Year.
I suspect that the date-time field is formatted according to the system settings (be that picked from CRM or the user's computer). Not sure if it's editable other than that. I'll take a look at it later today.
In case it's not possible to customize the date format of a single field you've got three options (listed in increasing order of control but also of implementation workload).
Set the system settings according to your wishes.
Add custom fields and control the looks in these.
Create a web resource that behaves exactly as you wish.

How to clear any column sorting in PickList

Does any of you know how to clear any column sorting before opening a view in a picklist?
I have a view with columns that can be sorted if they are clicked.
The information about the view is now sorted by a column is kept.
If I change away from the view and click on my button which includes a picklist that shows the view. Then the column sorting is remembered.
How can clear any column sorting in the view?
I have tried the method resortview but can’t get that to work.
I think you can disable this in your Notes Preferences.
Choose from menu File - Preferences - Basic Notes Client Configuration and disable the option "Retain View column sorting"
Caution: This setting affects any Lotus Notes Database, it is a global setting for your Notes client.

Hide field in SharePoint alert email

How can I hide a field in a SharePoint alert?
I have a custom event list (Calendar). I have a field (of type Note - aka Multi-line text) whose XML contents I generate manually in an event receiver. All my calendar views use this field as the Title for the Month, Week, and Day views.
I have a web part I include on the page that runs a jquery script that converts the XML title into a background color and mouseover text.
The problem is that this field and its ugly xml show up in sharepoint alerts. If I set the field to Hidden=true then it does not show up in the email, but it is no longer available to select as the Title for the Month, Week, and Day views when creating a new View. This is not acceptable as users need to be able to create views and be able to select this field as the title.
Is there another way to prevent this field from showing up in emails, along the lines of ShowInDisplayForm, ShowInEditForm, etc?
Would editing the fields in the alert template fix your issue?
http://blogs.msdn.com/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
"To exclude some fields from being rendered in the email, you should include them in the <DigestNotificationExcludedFields> and <ImmediateNotificationExcludedFields> section."
Can you set another field to have that XML and have the jquery script run against that field instead? That would leave the Title field to be used normally.

Resources